Borderou de evaluare (job #732294)

Utilizator avatar demetriad-dagpag David Demetriad demetriad-dagpag IP ascuns
Problemă Ruleta1 ( clasa a 6-a ) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 15 sept. 2023 23:08:44 Scor 21

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:7:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 7 | freopen("ruleta1.in", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:8:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 8 | freopen("ruleta1.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:9:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 9 | scanf("%d", &n); | ~~~~~^~~~~~~~~~ main.cpp:11:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 11 | scanf("%d", &v[i]); | ~~~~~^~~~~~~~~~~~~ main.cpp:33:14: warning: 'not0' may be used uninitialized [-Wmaybe-uninitialized] 33 | not0 += (v[i] > 0); | ~~~~~^~~~~~~~~~~~~ main.cpp:6:42: note: 'not0' was declared here 6 | int i, ind, n, r = 0, isChanged = 0, not0; | ^~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb Numar elemente nenule incorect! 7
2 2009 ms 512 kb Time limit exceeded 0
3 289 ms 270 kb Numar elemente nenule incorect! 7
4 2008 ms 249 kb Time limit exceeded 0
5 2009 ms 249 kb Time limit exceeded 0
6 2009 ms 249 kb Time limit exceeded 0
7 2008 ms 249 kb Time limit exceeded 0
8 2009 ms 249 kb Time limit exceeded 0
9 2009 ms 249 kb Time limit exceeded 0
10 1 ms 520 kb Numar elemente nenule incorect! 7
Punctaj total 21