Borderou de evaluare (job #3129599)

Utilizator MATHILI08ANA ILINCA MICU MATHILI08 Data 15 mai 2023 08:57:41
Problema Castel3 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int zid_v(int)': main.cpp:13:12: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] 13 | if(nr&1==1) | ~^~~ main.cpp: In function 'int zid_s(int)': main.cpp:19:17: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] 19 | if((nr>>1)&1==1) | ~^~~ main.cpp: In function 'int zid_e(int)': main.cpp:25:17: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] 25 | if((nr>>2)&1==1) | ~^~~ main.cpp: In function 'int zid_n(int)': main.cpp:31:17: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] 31 | if((nr>>3)&1==1) | ~^~~ main.cpp: In function 'int main()': main.cpp:124:40: warning: 'cl2' may be used uninitialized [-Wmaybe-uninitialized] 124 | else out<<cl1<<" "<<cc1<<" "<<cl2<<" "<<cc2; | ^~~ main.cpp:37:42: note: 'cl2' was declared here 37 | int cer,n,i,j,nrc=0,a=-1,cc1,cl1,cc2,cl2,cm,lm,sf,inc; | ^~~ main.cpp:124:45: warning: 'cc2' may be used uninitialized [-Wmaybe-uninitialized] 124 | else out<<cl1<<" "<<cc1<<" "<<cl2<<" "<<cc2; | ^~~ main.cpp:37:38: note: 'cc2' was declared here 37 | int cer,n,i,j,nrc=0,a=-1,cc1,cl1,cc2,cl2,cm,lm,sf,inc; | ^~~ main.cpp:124:20: warning: 'cl1' may be used uninitialized [-Wmaybe-uninitialized] 124 | else out<<cl1<<" "<<cc1<<" "<<cl2<<" "<<cc2; | ^~~ main.cpp:37:34: note: 'cl1' was declared here 37 | int cer,n,i,j,nrc=0,a=-1,cc1,cl1,cc2,cl2,cm,lm,sf,inc; | ^~~ main.cpp:124:30: warning: 'cc1' may be used uninitialized [-Wmaybe-uninitialized] 124 | else out<<cl1<<" "<<cc1<<" "<<cl2<<" "<<cc2; | ^~~ main.cpp:37:30: note: 'cc1' was declared here 37 | int cer,n,i,j,nrc=0,a=-1,cc1,cl1,cc2,cl2,cm,lm,sf,inc; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbCorect2
20ms303kbCorect5
30ms303kbCorect3
40ms303kbCorect5
50ms303kbCorect5
60ms303kbCorect5
70ms303kbCorect5
80ms303kbCorect5
90ms303kbCorect5
100ms303kbCorect5
110ms303kbCorect5
120ms303kbCorect5
130ms303kbCorect5
140ms303kbCorect5
150ms303kbCorect5
160ms303kbCorect5
170ms303kbCorect5
180ms303kbCorect5
190ms303kbCorect5
200ms303kbCorect5
210ms303kbCorect5
Punctaj total100

Ceva nu functioneaza?