Borderou de evaluare (job #597031)

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:32:24 Scor 70

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:97:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 97 | if(f[i]!=0 && g[i]==0 || f[i]==0 && g[i]!=0) | ~~~~~~~~^~~~~~~~~~ main.cpp:102:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 102 | if(f[i]!=0 && g[i]==0 || g[i]!=0 && f[i]==0) | ~~~~~~~~^~~~~~~~~~ main.cpp:107:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 107 | if(f[i]==0 && g[i]!=0 || g[i]==0 && f[i]!=0) | ~~~~~~~~^~~~~~~~~~ main.cpp:111:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 111 | 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:82:25: warning: 'd' may be used uninitialized in this function [-Wmaybe-uninitialized] 82 | if(c1==(c3-ccd) || d1==0) | ~~~~~~~~~~~~~^~~~~~~~
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 OK 10
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 OK 10
8 1 ms 262 kb OK 10
9 1 ms 262 kb OK 10
10 1 ms 262 kb OK 10
Punctaj total 70