Borderou de evaluare (job #721112)

Utilizator avatar radu_pip2011 Radu Pipernea radu_pip2011 IP ascuns
Problemă Cartonaș (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 23 mai 2023 18:39:19 Scor 80

Raport evaluator

Compilare: main.cpp: In function 'int ver(int)': main.cpp:12:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 12 | if(a%2==1) | ^~ main.cpp:14:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 14 | a/=2; | ^ main.cpp: In function 'int cmd(ura, ura)': main.cpp:30:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 30 | if(a.c<b.c) | ^~ main.cpp:32:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 32 | return false; | ^~~~~~ main.cpp: In function 'int main()': main.cpp:40:12: warning: unused variable 'nr' [-Wunused-variable] 40 | int n,c,nr; | ^~ main.cpp:77:13: warning: 's' may be used uninitialized [-Wmaybe-uninitialized] 77 | cout<<s<<'\n'<<nrr<<'\n'; | ^~~~ main.cpp:57:8: note: 's' was declared here 57 | int s; | ^ main.cpp:77:24: warning: 'nrr' may be used uninitialized [-Wmaybe-uninitialized] 77 | cout<<s<<'\n'<<nrr<<'\n'; | ^~~~ main.cpp:44:13: note: 'nrr' was declared here 44 | int ok=1,nrr; | ^~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb a) OK; b) linie incorecta; c) OK 8
2 2 ms 245 kb a) OK; b) linie incorecta; c) OK 8
3 1 ms 245 kb a) OK; b) linie incorecta; c) OK 8
4 1 ms 245 kb a) OK; b) linie incorecta; c) OK 8
5 1 ms 245 kb a) OK; b) linie incorecta; c) OK 8
6 1 ms 245 kb a) OK; b) linie incorecta; c) OK 8
7 1 ms 245 kb a) OK; b) linie incorecta; c) OK 8
8 1 ms 245 kb a) OK; b) linie incorecta; c) OK 8
9 1 ms 245 kb a) OK; b) linie incorecta; c) OK 8
10 1 ms 245 kb a) OK; b) linie incorecta; c) OK 8
Punctaj total 80