Pagini recente » Borderou de evaluare (job #1183604) | Borderou de evaluare (job #2296407) | Borderou de evaluare (job #1877439) | Borderou de evaluare (job #752315) | Borderou de evaluare (job #1634302)
Borderou de evaluare (job #1634302)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:11:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
fscanf(f,"%d%d",&n,&p);
^
user.cpp:11:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=]
user.cpp:14:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
fscanf(f,"%d",&c[i]);s+=c[i];
^
user.cpp:16:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
fprintf(g,"%d\n",s);
^
user.cpp:26:83: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
if (nr==n) for (j=1;j<=n;j++) {v[j]-=mn;if (v[j]==0) {fprintf(g,"%d ",a[j]);y=j;nr--;}}
^
user.cpp:32:77: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
for (i=1;i<=n;i++) {v[i]-=mn;if (v[i]==0) {nr--;fprintf(g,"%d ",a[i]);y=i;}}
^
user.cpp:34:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
fprintf(g,"\n%d",y);
^
user.cpp:11:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d%d",&n,&p);
^
user.cpp:14:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&c[i]);s+=c[i];
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 272kb | OK! | 5 |
2 | 0ms | 272kb | OK! | 5 |
3 | 0ms | 280kb | OK! | 5 |
4 | 0ms | 272kb | OK! | 5 |
5 | 0ms | 272kb | OK! | 5 |
6 | 0ms | 272kb | OK! | 5 |
7 | 0ms | 272kb | OK! | 5 |
8 | 0ms | 272kb | OK! | 5 |
9 | 0ms | 276kb | OK! | 5 |
10 | 0ms | 272kb | OK! | 5 |
11 | 4ms | 312kb | OK! | 5 |
12 | 0ms | 288kb | OK! | 5 |
13 | 8ms | 372kb | OK! | 5 |
14 | 48ms | 472kb | OK! | 5 |
15 | 128ms | 624kb | OK! | 5 |
16 | 216ms | 776kb | Cerinta 1 incorecta ! | 4 |
17 | Depăşit | 1052kb | Time limit exceeded. | 0 |
18 | 360ms | 1048kb | OK! | 5 |
19 | Depăşit | 1052kb | Time limit exceeded. | 0 |
20 | Depăşit | 1052kb | Time limit exceeded. | 0 |
Punctaj total | 84 |