Borderou de evaluare (job #1734266)

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

Raport evaluator

Compilare: user.c:4: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:5:1: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long int *’ [-Wformat=] scanf("%d %d",&n,&m);rad=sqrt(n); ^ user.c:5:1: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long long int *’ [-Wformat=] user.c:6:1: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long int *’ [-Wformat=] for(i=1;i<=n;i++){scanf("%d",a+i);b[i/rad]+=a[i];} ^ user.c:8:2: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long int *’ [-Wformat=] scanf("%d",&k); ^ user.c:10:3: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long int *’ [-Wformat=] scanf("%d %d",&t,&v); ^ user.c:10:3: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long long int *’ [-Wformat=] user.c:13:2: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long int *’ [-Wformat=] else{scanf("%d %d",&p,&q);s=0; ^ user.c:13:2: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long long int *’ [-Wformat=] user.c:17:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n",s); ^ user.c:4:15: 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: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:5:6: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&n,&m);rad=sqrt(n); ^ user.c:6:24: 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/rad]+=a[i];} ^ user.c:8:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&k); ^ user.c:10:8: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&t,&v); ^ user.c:13:12: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] else{scanf("%d %d",&p,&q);s=0; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1132ms412kbRaspuns incorect0
2136ms412kbRaspuns incorect0
3132ms412kbRaspuns incorect0
4132ms408kbRaspuns incorect0
5132ms412kbRaspuns incorect0
Punctaj total0

Ceva nu functioneaza?