Borderou de evaluare (job #844323)

Utilizator avatar robertb Bucur Robert robertb IP ascuns
Problemă Hiccup (clasa a 7-a) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 4 dec. 2025 13:34:45 Scor 36

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:8:63: warning: overflow in conversion from 'long int' to 'int' changes value from '21000000000' to '-474836480' [-Woverflow] 8 | int k, sum=0, dist=0, cnt=0,maxcnt=0, poz=0, st=1, minpoz=21000000000, cif; | ^~~~~~~~~~~ main.cpp:15:14: warning: array subscript has type 'char' [-Wchar-subscripts] 15 | if(f[x]==0) | ^ main.cpp:15:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 15 | if(f[x]==0) | ^~ main.cpp:17:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 17 | f[x]=poz; | ^ main.cpp:17:15: warning: array subscript has type 'char' [-Wchar-subscripts] 17 | f[x]=poz; | ^ main.cpp:20:28: warning: overflow in conversion from 'long int' to 'int' changes value from '21000000000' to '-474836480' [-Woverflow] 20 | minpoz=21000000000; | ^~~~~~~~~~~ main.cpp:8:27: warning: unused variable 'cnt' [-Wunused-variable] 8 | int k, sum=0, dist=0, cnt=0,maxcnt=0, poz=0, st=1, minpoz=21000000000, cif; | ^~~ main.cpp:27:23: warning: 'cif' may be used uninitialized [-Wmaybe-uninitialized] 27 | f[cif]=0; | ~~~~~~^~ main.cpp:8:76: note: 'cif' was declared here 8 | int k, sum=0, dist=0, cnt=0,maxcnt=0, poz=0, st=1, minpoz=21000000000, cif; | ^~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 508 kb OK 5
2 1 ms 292 kb a) OK; b) linie incorecta 1
3 1 ms 296 kb a) OK; b) linie incorecta 1
4 1 ms 292 kb a) OK; b) linie incorecta 1
5 1 ms 292 kb OK 5
6 1 ms 292 kb a) OK; b) linie incorecta 1
7 2 ms 508 kb a) OK; b) linie incorecta 1
8 3 ms 508 kb a) OK; b) linie incorecta 1
9 3 ms 292 kb a) OK; b) linie incorecta 1
10 5 ms 508 kb a) OK; b) linie incorecta 1
11 39 ms 508 kb OK 5
12 38 ms 508 kb a) OK; b) linie incorecta 1
13 38 ms 508 kb OK 5
14 37 ms 292 kb a) OK; b) linie incorecta 1
15 39 ms 292 kb a) OK; b) linie incorecta 1
16 39 ms 508 kb a) OK; b) linie incorecta 1
17 77 ms 292 kb a) OK; b) linie incorecta 1
18 77 ms 292 kb a) OK; b) linie incorecta 1
19 77 ms 508 kb a) OK; b) linie incorecta 1
20 77 ms 292 kb a) OK; b) linie incorecta 1
Punctaj total 36