Borderou de evaluare (job #1734242)

Utilizator mIllIbytemIllI byte mIllIbyte Data 26 iulie 2016 21:07:39
Problema Datorii Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c:2:1: warning: data definition has no type or storage class [enabled by default] a[15001],n,m,k,i,q,t,v,s; ^ user.c:2:1: warning: type defaults to ‘int’ in declaration of ‘a’ [enabled by default] user.c:2:10: warning: type defaults to ‘int’ in declaration of ‘n’ [enabled by default] a[15001],n,m,k,i,q,t,v,s; ^ user.c:2:12: warning: type defaults to ‘int’ in declaration of ‘m’ [enabled by default] a[15001],n,m,k,i,q,t,v,s; ^ user.c:2:14: warning: type defaults to ‘int’ in declaration of ‘k’ [enabled by default] a[15001],n,m,k,i,q,t,v,s; ^ user.c:2:16: warning: type defaults to ‘int’ in declaration of ‘i’ [enabled by default] a[15001],n,m,k,i,q,t,v,s; ^ user.c:2:18: warning: type defaults to ‘int’ in declaration of ‘q’ [enabled by default] a[15001],n,m,k,i,q,t,v,s; ^ user.c:2:20: warning: type defaults to ‘int’ in declaration of ‘t’ [enabled by default] a[15001],n,m,k,i,q,t,v,s; ^ user.c:2:22: warning: type defaults to ‘int’ in declaration of ‘v’ [enabled by default] a[15001],n,m,k,i,q,t,v,s; ^ user.c:2:24: warning: type defaults to ‘int’ in declaration of ‘s’ [enabled by default] a[15001],n,m,k,i,q,t,v,s; ^ user.c:3:1: warning: return type defaults to ‘int’ [enabled by default] main(){freopen("datorii.in","r";stdin);freopen("datorii.out","w",stdout); ^ user.c: In function ‘main’: user.c:3:32: error: expected ‘)’ before ‘;’ token main(){freopen("datorii.in","r";stdin);freopen("datorii.out","w",stdout); ^ user.c:3:32: error: too few arguments to function ‘freopen’ In file included from user.c:1:0: /usr/include/stdio.h:279:14: note: declared here extern FILE *freopen (__const char *__restrict __filename, ^ user.c:3:47: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] main(){freopen("datorii.in","r";stdin);freopen("datorii.out","w",stdout); ^ user.c:4:6: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&n,&m); ^ user.c:5: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); ^ user.c:7:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]

Ceva nu functioneaza?