Borderou de evaluare (job #1735285)

Utilizator mIllIbytemIllI byte mIllIbyte Data 29 iulie 2016 13:57:11
Problema Cifra Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.c:4:1: warning: data definition has no type or storage class [enabled by default] t,n,s,i; ^ user.c:4:1: warning: type defaults to ‘int’ in declaration of ‘t’ [enabled by default] user.c:4:3: warning: type defaults to ‘int’ in declaration of ‘n’ [enabled by default] t,n,s,i; ^ user.c:4:5: warning: type defaults to ‘int’ in declaration of ‘s’ [enabled by default] t,n,s,i; ^ user.c:4:7: warning: type defaults to ‘int’ in declaration of ‘i’ [enabled by default] t,n,s,i; ^ user.c:5:1: warning: return type defaults to ‘int’ [enabled by default] main(){freopen("cifra.in","r",stdin);freopen("cifra.out","w",stdout); ^ user.c: In function ‘main’: user.c:7:1: warning: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration] for(;t--;){gets(b+1);n=atoi(b+strlen(b)-2);s=0; ^ user.c:7:1: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration] user.c:7:31: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default] for(;t--;){gets(b+1);n=atoi(b+strlen(b)-2);s=0; ^ user.c:5:15: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] main(){freopen("cifra.in","r",stdin);freopen("cifra.out","w",stdout); ^ user.c:5:45: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] main(){freopen("cifra.in","r",stdin);freopen("cifra.out","w",stdout); ^ user.c:6:6: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&t); ^ user.c:7:16: warning: ignoring return value of ‘gets’, declared with attribute warn_unused_result [-Wunused-result] for(;t--;){gets(b+1);n=atoi(b+strlen(b)-2);s=0; ^ /tmp/cctf1kNg.o: In function `main': user.c:(.text.startup+0x86): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms256kbOK!10
20ms256kbOK!10
30ms252kbOK!10
40ms260kbOK!10
50ms260kbOK!10
60ms256kbOK!10
70ms252kbOK!10
84ms252kbOK!10
98ms252kbOK!10
1016ms252kbOK!10
Punctaj total100

Ceva nu functioneaza?