Borderou de evaluare (job #2092257)

Utilizator edward.codarceaEdward Codarcea edward.codarcea Data 21 decembrie 2017 14:35:07
Problema Sarac Sau Rege Status done
Runda ACS PC Winter Long Challange 2017 - 2018 (I) Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘void query(long int, long int, long int, long int, long int)’: user.cpp:26:6: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] if(a<=l & r<=b){ ^ user.cpp: In function ‘int main()’: user.cpp:45:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d %d",&n, &m); ^ user.cpp:45:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:43:15: warning: unused variable ‘k’ [-Wunused-variable] long a,b,n,m,k,p; ^ user.cpp:43:17: warning: unused variable ‘p’ [-Wunused-variable] long a,b,n,m,k,p; ^ user.cpp:41:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("saracsaurege.in", "r", stdin); ^ user.cpp:42:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("saracsaurege.out", "w", stdout); ^ user.cpp:45:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&n, &m); ^ user.cpp:47:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&v[i]); ^ user.cpp:65:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld",&a, &b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbOK10
20ms280kbOK10
3Depăşit432kbTime limit exceeded.0
4972ms280kbOK10
5Depăşit968kbTime limit exceeded.0
6752ms976kbIncorect0
7Depăşit972kbTime limit exceeded.0
8Depăşit972kbTime limit exceeded.0
9Depăşit968kbTime limit exceeded.0
10Depăşit972kbTime limit exceeded.0
Punctaj total30

Ceva nu functioneaza?