Borderou de evaluare (job #597019)

Utilizator avatar dava Forascu David dava IP ascuns
Problemă Cifre 3 (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 27 apr. 2021 12:26:00 Scor 40

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:96:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 96 | if(f[i]!=0 && g[i]==0 || f[i]==0 && g[i]!=0) | ~~~~~~~~^~~~~~~~~~ main.cpp:101:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 101 | if(f[i]!=0 && g[i]==0 || g[i]!=0 && f[i]==0) | ~~~~~~~~^~~~~~~~~~ main.cpp:106:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 106 | if(f[i]==0 && g[i]!=0 || g[i]==0 && f[i]!=0) | ~~~~~~~~^~~~~~~~~~ main.cpp:110:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 110 | if(f[i]!=0 && g[i]==0 || g[i]!=0 && f[i]==0) | ~~~~~~~~^~~~~~~~~~ main.cpp:27:56: warning: variable 'ccd' set but not used [-Wunused-but-set-variable] 27 | int a, a1, a2, b, b1, b2, i, c, c1, c2, d, d1, d2, ccd, flag=0, flag1=0, flag2=0; | ^~~ main.cpp:27:78: warning: unused variable 'flag2' [-Wunused-variable] 27 | int a, a1, a2, b, b1, b2, i, c, c1, c2, d, d1, d2, ccd, flag=0, flag1=0, flag2=0; | ^~~~~ main.cpp:107:26: warning: 'd2' may be used uninitialized in this function [-Wmaybe-uninitialized] 107 | d2--; | ~~^~ main.cpp:74:17: warning: 'd' may be used uninitialized in this function [-Wmaybe-uninitialized] 74 | d1--; | ~~^~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 262 kb Incorect 0
2 1 ms 262 kb Incorect 0
3 1 ms 262 kb Incorect 0
4 1 ms 262 kb Incorect 0
5 1 ms 262 kb OK 10
6 1 ms 262 kb Incorect 0
7 1 ms 262 kb Incorect 0
8 1 ms 389 kb OK 10
9 1 ms 262 kb OK 10
10 1 ms 262 kb OK 10
Punctaj total 40