Pagini recente » Borderou de evaluare (job #811667) | Borderou de evaluare (job #1841425) | Borderou de evaluare (job #1134378) | Borderou de evaluare (job #3152745) | Borderou de evaluare (job #1734359)
Borderou de evaluare (job #1734359)
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 |
1 | 0ms | 272kb | Ok! | 10 |
2 | 0ms | 272kb | Ok! | 10 |
3 | 0ms | 284kb | Ok! | 10 |
4 | 0ms | 300kb | Ok! | 10 |
5 | 8ms | 312kb | Ok! | 10 |
6 | 0ms | 272kb | Ok! | 10 |
7 | 0ms | 292kb | Ok! | 10 |
8 | 8ms | 308kb | Ok! | 10 |
9 | 0ms | 280kb | Ok! | 10 |
10 | 8ms | 328kb | Ok! | 10 |
Punctaj total | 100 |