Pagini recente » Borderou de evaluare (job #1954568) | Borderou de evaluare (job #2073534) | Borderou de evaluare (job #3144983) | Borderou de evaluare (job #1048240) | Borderou de evaluare (job #1734266)
Borderou de evaluare (job #1734266)
Raport evaluator
Compilare:
user.c:4: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:5:1: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long int *’ [-Wformat=]
scanf("%d %d",&n,&m);rad=sqrt(n);
^
user.c:5:1: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long long int *’ [-Wformat=]
user.c:6:1: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long int *’ [-Wformat=]
for(i=1;i<=n;i++){scanf("%d",a+i);b[i/rad]+=a[i];}
^
user.c:8:2: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long int *’ [-Wformat=]
scanf("%d",&k);
^
user.c:10:3: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long int *’ [-Wformat=]
scanf("%d %d",&t,&v);
^
user.c:10:3: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long long int *’ [-Wformat=]
user.c:13:2: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long int *’ [-Wformat=]
else{scanf("%d %d",&p,&q);s=0;
^
user.c:13:2: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long long int *’ [-Wformat=]
user.c:17:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d\n",s);
^
user.c:4: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:4: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:5:6: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);rad=sqrt(n);
^
user.c:6:24: 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/rad]+=a[i];}
^
user.c:8:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&k);
^
user.c:10:8: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&t,&v);
^
user.c:13:12: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
else{scanf("%d %d",&p,&q);s=0;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 132ms | 412kb | Raspuns incorect | 0 |
2 | 136ms | 412kb | Raspuns incorect | 0 |
3 | 132ms | 412kb | Raspuns incorect | 0 |
4 | 132ms | 408kb | Raspuns incorect | 0 |
5 | 132ms | 412kb | Raspuns incorect | 0 |
Punctaj total | 0 |