Borderou de evaluare (job #1735343)
Raport evaluator
Compilare:
user.c:3:1: warning: return type defaults to ‘int’ [enabled by default]
main(){freopen("stramosi.in","r",stdin);freopen("stramosi.out","w",stdout);
^
user.c: In function ‘main’:
user.c:3:15: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
main(){freopen("stramosi.in","r",stdin);freopen("stramosi.out","w",stdout);
^
user.c:3:48: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
main(){freopen("stramosi.in","r",stdin);freopen("stramosi.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:22: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
for(i=0;i++<n;){scanf("%d",a+i);t|=a[i]!=i-1;}
^
user.c:7:17: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
for(;m--;){scanf("%d %d",&j,&i);for(;j&&i--;)j=a[j];printf("%d\n",j);}}
^
user.c:8:22: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
else for(;m--;){scanf("%d %d",&j,&i);printf("%d\n",j-i);}
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 268kb | OK! | 10 |
| 2 | 0ms | 260kb | OK! | 10 |
| 3 | 4ms | 268kb | Raspuns gresit! | 0 |
| 4 | 8ms | 304kb | Raspuns gresit! | 0 |
| 5 | 12ms | 304kb | Raspuns gresit! | 0 |
| 6 | 44ms | 388kb | Raspuns gresit! | 0 |
| 7 | 96ms | 520kb | OK! | 10 |
| 8 | 164ms | 652kb | OK! | 10 |
| 9 | 284ms | 1048kb | Raspuns gresit! | 0 |
| 10 | 304ms | 1240kb | OK! | 10 |
| Punctaj total | 50 |