Borderou de evaluare (job #1734359)

Utilizator mIllIbytemIllI byte mIllIbyte Data 27 iulie 2016 10:40:59
Problema Permutari Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.c:15:1: warning: return type defaults to ‘int’ [enabled by default] printmare(mare m){int i;if(!m.len)return 0;printf("%d",m.a[m.len-1]);for(i=m.len-1;i--;)printf(MAREPRINTFORMAT,m.a[i]);} ^ user.c:21:1: warning: return type defaults to ‘int’ [enabled by default] main(){freopen("perm.in","r",stdin);freopen("perm.out","w",stdout); ^ user.c: In function ‘main’: user.c:12:94: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses] #define binmtimesi(m__,tempm__,i__) {int j__=i__;int k__;register int tempi__=0;for(k__=0;k__<(m__).len|!!tempi__;k__++)tempi__+=(k__<(m__).len?(m__).a[k__]:0)*j__,(tempm__).a[k__]=tempi__&BINMASK,tempi__>>=16;(tempm__).len=k__;} ^ user.c:26:1: note: in expansion of macro ‘binmtimesi’ binmtimesi(a[i&1][j],tempm,i);binmplusm(a[(i+1)&1][j],tempm); ^ user.c:14:75: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses] #define binmplusm(m1__,m2__) {int i__;register int tempi__=0;for(i__=0;i__<(m2__).len|!!tempi__;i__++)tempi__+=(i__<(m2__).len?(m2__).a[i__]:0)+(i__<(m1__).len?(m1__).a[i__]:0),(m1__).a[i__]=tempi__&BINMASK,tempi__>>=16;if(i__>(m1__).len)(m1__).len=i__;} ^ user.c:26:31: note: in expansion of macro ‘binmplusm’ binmtimesi(a[i&1][j],tempm,i);binmplusm(a[(i+1)&1][j],tempm); ^ user.c:14:75: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses] #define binmplusm(m1__,m2__) {int i__;register int tempi__=0;for(i__=0;i__<(m2__).len|!!tempi__;i__++)tempi__+=(i__<(m2__).len?(m2__).a[i__]:0)+(i__<(m1__).len?(m1__).a[i__]:0),(m1__).a[i__]=tempi__&BINMASK,tempi__>>=16;if(i__>(m1__).len)(m1__).len=i__;} ^ user.c:27:1: note: in expansion of macro ‘binmplusm’ binmplusm(a[(i+1)&1][j+1],a[i&1][j]);}} ^ user.c: In function ‘printmare’: user.c:15:1: warning: control reaches end of non-void function [-Wreturn-type] printmare(mare m){int i;if(!m.len)return 0;printf("%d",m.a[m.len-1]);for(i=m.len-1;i--;)printf(MAREPRINTFORMAT,m.a[i]);} ^ user.c: In function ‘main’: user.c:21:15: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] main(){freopen("perm.in","r",stdin);freopen("perm.out","w",stdout); ^ user.c:21:44: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] main(){freopen("perm.in","r",stdin);freopen("perm.out","w",stdout); ^ user.c:22:6: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&n,&k);mare tempm; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbOk!10
20ms272kbOk!10
30ms284kbOk!10
40ms300kbOk!10
58ms312kbOk!10
60ms272kbOk!10
70ms292kbOk!10
88ms308kbOk!10
90ms280kbOk!10
108ms328kbOk!10
Punctaj total100

Ceva nu functioneaza?