Pagini recente » Borderou de evaluare (job #307661) | Borderou de evaluare (job #2762473) | Borderou de evaluare (job #3235440) | Borderou de evaluare (job #2834365) | Borderou de evaluare (job #1735285)
Borderou de evaluare (job #1735285)
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 |
1 | 0ms | 256kb | OK! | 10 |
2 | 0ms | 256kb | OK! | 10 |
3 | 0ms | 252kb | OK! | 10 |
4 | 0ms | 260kb | OK! | 10 |
5 | 0ms | 260kb | OK! | 10 |
6 | 0ms | 256kb | OK! | 10 |
7 | 0ms | 252kb | OK! | 10 |
8 | 4ms | 252kb | OK! | 10 |
9 | 8ms | 252kb | OK! | 10 |
10 | 16ms | 252kb | OK! | 10 |
Punctaj total | 100 |