Borderou de evaluare (job #1735228)

Utilizator mIllIbytemIllI byte mIllIbyte Data 29 iulie 2016 12:22:59
Problema Datorii Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.c:4:1: warning: return type defaults to ‘int’ [enabled by default] reopen(){freopen("datorii.in","r",stdin);freopen("datorii.out","w",stdout);} ^ user.c:5:1: warning: return type defaults to ‘int’ [enabled by default] main(){reopen(); ^ user.c: In function ‘reopen’: user.c:4:17: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] reopen(){freopen("datorii.in","r",stdin);freopen("datorii.out","w",stdout);} ^ user.c:4:49: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] reopen(){freopen("datorii.in","r",stdin);freopen("datorii.out","w",stdout);} ^ user.c:4:1: warning: control reaches end of non-void function [-Wreturn-type] reopen(){freopen("datorii.in","r",stdin);freopen("datorii.out","w",stdout);} ^ user.c: In function ‘main’: user.c:6:6: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&n,&m); ^ user.c:8:23: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] for(i=1;i<=n;i++)scanf("%d",a+i),b[i/r]+=a[i]; ^ user.c:10:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d",&c,&t,&v); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
188ms344kbCorect!20
292ms344kbCorect!20
392ms344kbCorect!20
492ms344kbCorect!20
588ms344kbCorect!20
Punctaj total100

Ceva nu functioneaza?