Borderou de evaluare (job #767942)

Utilizator avatar AndreiSara Andrei Sara AndreiSara IP ascuns
Problemă Tetris (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 13 mar. 2024 21:35:32 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:13:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 13 | fscanf( fin, "%d%d%d", &m, &n, &s ); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:17:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 17 | fscanf( fin, "%d", &piesa ); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:41:13: warning: 'turnmin' may be used uninitialized [-Wmaybe-uninitialized] 41 | if ( h[c] + 1 > hmax ) // retinem inaltimea daca a devenit maxima | ~~~^ main.cpp:10:34: note: 'turnmin' was declared here 10 | int m, n, s, i, c, hmax, hmin, turnmin, turnpv, piesa, spatii, pv, nrp; | ^~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 10
2 1 ms 245 kb OK 10
3 1 ms 266 kb OK 10
4 1 ms 245 kb OK 10
5 39 ms 249 kb OK 10
6 1 ms 270 kb OK 10
7 9 ms 245 kb OK 10
8 1 ms 245 kb OK 10
9 9 ms 249 kb OK 10
10 1 ms 266 kb OK 10
Punctaj total 100