Pagini recente » Borderou de evaluare (job #2586542) | Borderou de evaluare (job #1611639) | Borderou de evaluare (job #2983513) | Borderou de evaluare (job #2485758) | Borderou de evaluare (job #1735232)
Borderou de evaluare (job #1735232)
Raport evaluator
Compilare:
user.c:5: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:6:1: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘short int *’ [-Wformat=]
scanf("%d %d",&n,&m);
^
user.c:8:1: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘short int *’ [-Wformat=]
for(i=1;i<=n;i++)scanf("%d",a+i),b[i/r]+=a[i];
^
user.c:10:2: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘short int *’ [-Wformat=]
scanf("%d %d %d",&c,&t,&v);
^
user.c:10:2: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘short int *’ [-Wformat=]
user.c:10:2: warning: format ‘%d’ expects argument of type ‘int *’, but argument 4 has type ‘short int *’ [-Wformat=]
user.c:5: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:5: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:6:6: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
^
user.c:8:23: 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/r]+=a[i];
^
user.c:10:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&c,&t,&v);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 92ms | 316kb | Corect! | 20 |
2 | 96ms | 312kb | Corect! | 20 |
3 | 92ms | 312kb | Corect! | 20 |
4 | 92ms | 316kb | Corect! | 20 |
5 | 92ms | 308kb | Corect! | 20 |
Punctaj total | 100 |