Borderou de evaluare (job #755891)

Utilizator avatar davidgeo123 David Georgescu davidgeo123 IP ascuns
Problemă Matrice Spirală (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 18 ian. 2024 15:19:03 Scor 5

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("matsp.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("matsp.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:29:21: warning: 'nextx' may be used uninitialized [-Wmaybe-uninitialized] 29 | if(nextx>0 && nexty>0 && nextx<=n && nexty<=n && v[nexty][nextx]==0); | ~~~~~^~ main.cpp:20:13: note: 'nextx' was declared here 20 | int nextx, nexty; | ^~~~~ main.cpp:29:32: warning: 'nexty' may be used uninitialized [-Wmaybe-uninitialized] 29 | if(nextx>0 && nexty>0 && nextx<=n && nexty<=n && v[nexty][nextx]==0); | ~~~~~^~ main.cpp:20:20: note: 'nexty' was declared here 20 | int nextx, nexty; | ^~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 5
2 1 ms 245 kb Incorect 0
3 1 ms 245 kb Incorect 0
4 1 ms 237 kb Incorect 0
5 1 ms 241 kb Incorect 0
6 19 ms 618 kb Incorect 0
7 29 ms 790 kb Incorect 0
8 51 ms 860 kb Incorect 0
9 69 ms 1196 kb Incorect 0
10 89 ms 1511 kb Incorect 0
11 1 ms 249 kb Incorect 0
12 1 ms 249 kb Incorect 0
13 1 ms 249 kb Incorect 0
14 1 ms 249 kb Incorect 0
15 1 ms 249 kb Incorect 0
16 1 ms 249 kb Incorect 0
17 1 ms 245 kb Incorect 0
18 1 ms 249 kb Incorect 0
19 1 ms 249 kb Incorect 0
20 1 ms 249 kb Incorect 0
Punctaj total 5