Borderou de evaluare (job #597028)

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 13:14:06 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:60: warning: variable 'd3' set but not used [-Wunused-but-set-variable] 27 | int a, a1, a2, b, b1, b2, i, c, c1, c2, c3, d, d1, d2, d3, ccd, flag=0, flag1=0, flag2=0; | ^~ main.cpp:27:86: warning: unused variable 'flag2' [-Wunused-variable] 27 | int a, a1, a2, b, b1, b2, i, c, c1, c2, c3, d, d1, d2, d3, 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:76:17: warning: 'd' may be used uninitialized in this function [-Wmaybe-uninitialized] 76 | d1--; | ~~^~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 262 kb OK 10
2 1 ms 262 kb Incorect 0
3 1 ms 262 kb Incorect 0
4 1 ms 262 kb OK 10
5 1 ms 262 kb Incorect 0
6 1 ms 262 kb Incorect 0
7 1 ms 262 kb Incorect 0
8 1 ms 262 kb OK 10
9 1 ms 262 kb Incorect 0
10 1 ms 262 kb OK 10
Punctaj total 40