Borderou de evaluare (job #2509059)

Utilizator MateiAruxandeiMateiStefan MateiAruxandei Data 13 decembrie 2019 18:52:49
Problema Maxpal Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 80

Raport evaluator

Compilare: main.cpp: In function 'void citire()': main.cpp:8:19: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'int*' [-Wformat=] scanf("%ld",&n); ^ main.cpp:13:26: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'int*' [-Wformat=] scanf("%ld",&v[i]); ^ main.cpp:16:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if (i>1) ^ main.cpp: In function 'int main()': main.cpp:97:36: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat=] printf("%ld %ld",lg[1][n%3],rez); ^ main.cpp:97:36: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=] main.cpp: In function 'void citire()': main.cpp:8:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&n); ^ main.cpp:13:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&v[i]); ^ main.cpp: In function 'int main()': main.cpp:93:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("maxpal.in","r",stdin); ^ main.cpp:94:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("maxpal.out","w",stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
13ms131kbCorect!10
22ms131kbCorect!10
34ms131kbCorect!10
46ms131kbCorect!10
516ms131kbCorect!10
623ms225kbCorect!10
755ms245kbCorect!10
841ms131kbCorect!10
9104ms131kbTime limit exceeded0
10101ms131kbTime limit exceeded0
Punctaj total80

Ceva nu functioneaza?