Borderou de evaluare (job #1735279)

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

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/ccbnltUe.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
10ms260kbRaspuns gresit!0
20ms252kbRaspuns gresit!0
30ms256kbRaspuns gresit!0
40ms256kbRaspuns gresit!0
50ms252kbRaspuns gresit!0
60ms256kbRaspuns gresit!0
70ms256kbRaspuns gresit!0
84ms256kbRaspuns gresit!0
98ms256kbRaspuns gresit!0
1020ms256kbRaspuns gresit!0
Punctaj total0

Ceva nu functioneaza?