Borderou de evaluare (job #802528)

Utilizator avatar EduardGrigoras eduard EduardGrigoras IP ascuns
Problemă Panglica (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 6 ian. 2025 14:56:45 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:14:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 14 | if(p[x-1]==0) | ^~ main.cpp:16:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 16 | u[x-1]=i+1; | ^ main.cpp:24:7: warning: 'l' may be used uninitialized [-Wmaybe-uninitialized] 24 | if(l>lmax) | ^~ main.cpp:9:18: note: 'l' was declared here 9 | int x,lmax=0,l,n,c,cmax; | ^ main.cpp:30:42: warning: 'cmax' may be used uninitialized [-Wmaybe-uninitialized] 30 | fout<<lmax<<endl<<cmax+1<<endl<<p[cmax]-1<<endl<<n-u[cmax]; | ~~~~~~^ main.cpp:9:24: note: 'cmax' was declared here 9 | int x,lmax=0,l,n,c,cmax; | ^~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 249 kb OK 10
2 1 ms 266 kb OK 10
3 1 ms 245 kb OK 10
4 1 ms 245 kb OK 10
5 1 ms 245 kb OK 10
6 1 ms 245 kb OK 10
7 1 ms 245 kb OK 10
8 1 ms 512 kb OK 10
9 1 ms 270 kb OK 10
10 1 ms 249 kb OK 10
Punctaj total 100