Borderou de evaluare (job #2502644)

Utilizator STEFAN18Miclaus Stefan STEFAN18 Data 1 decembrie 2019 12:27:50
Problema Castel3 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 22

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:31:49: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(((a[i][j]>>3)&1)==1 && (a[i][j]&1==1)) ~^~~ main.cpp:50:55: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(((a[lin][col]>>1)&1==0) && ((a[v[inc].l][v[inc].c]>>3)&1==0)) ~^~~ main.cpp:50:92: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(((a[lin][col]>>1)&1==0) && ((a[v[inc].l][v[inc].c]>>3)&1==0)) ~^~~ main.cpp:67:50: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if((a[lin][col]&1==0) && ((a[v[inc].l][v[inc].c]>>2)&1==0)) ~^~~ main.cpp:67:87: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if((a[lin][col]&1==0) && ((a[v[inc].l][v[inc].c]>>2)&1==0)) ~^~~ main.cpp:84:55: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(((a[lin][col]>>3)&1==0) && ((a[v[inc].l][v[inc].c]>>1)&1==0)) ~^~~ main.cpp:84:92: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(((a[lin][col]>>3)&1==0) && ((a[v[inc].l][v[inc].c]>>1)&1==0)) ~^~~ main.cpp:101:55: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(((a[lin][col]>>2)&1==0) && (a[v[inc].l][v[inc].c]&1==0)) ~^~~ main.cpp:101:87: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(((a[lin][col]>>2)&1==0) && (a[v[inc].l][v[inc].c]&1==0)) ~^~~ main.cpp:18:11: warning: unused variable 'm' [-Wunused-variable] int n,m,cpromeo,lp,cp,lin,col,nrcamere=0,ctmax,linie,coloana,i,j,cer,inc,sf,max=0,x,pp=1023; ^ main.cpp:18:13: warning: unused variable 'cpromeo' [-Wunused-variable] int n,m,cpromeo,lp,cp,lin,col,nrcamere=0,ctmax,linie,coloana,i,j,cer,inc,sf,max=0,x,pp=1023; ^~~~~~~ main.cpp:18:46: warning: variable 'ctmax' set but not used [-Wunused-but-set-variable] int n,m,cpromeo,lp,cp,lin,col,nrcamere=0,ctmax,linie,coloana,i,j,cer,inc,sf,max=0,x,pp=1023; ^~~~~ main.cpp:16:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("castel3.in","r",stdin); ^ main.cpp:17:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("castel3.out","w",stdout); ^ main.cpp:19:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n",&cer,&n); ^ main.cpp:24:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&a[i][j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbCorect2
22ms131kbIncorect0
32ms131kbIncorect0
43ms131kbCorect5
52ms131kbCorect5
63ms131kbCorect5
75ms131kbCorect5
83ms131kbIncorect0
93ms131kbIncorect0
103ms131kbIncorect0
114ms131kbIncorect0
123ms131kbIncorect0
132ms131kbIncorect0
143ms131kbIncorect0
153ms131kbIncorect0
163ms131kbIncorect0
172ms131kbIncorect0
184ms131kbIncorect0
194ms131kbIncorect0
206ms131kbIncorect0
214ms131kbIncorect0
Punctaj total22

Ceva nu functioneaza?