Borderou de evaluare (job #1634311)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
fscanf(f,"%d%d",&n,&p);
^
user.cpp:12:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=]
user.cpp:15:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
fscanf(f,"%d",&c[i]);s+=c[i];
^
user.cpp:27:83: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘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:33:77: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘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:35:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
fprintf(g,"\n%d",y);
^
user.cpp:12: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:15: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 | 272kb | OK! | 5 |
4 | 0ms | 272kb | OK! | 5 |
5 | 0ms | 268kb | OK! | 5 |
6 | 0ms | 276kb | OK! | 5 |
7 | 0ms | 268kb | OK! | 5 |
8 | 0ms | 272kb | OK! | 5 |
9 | 0ms | 268kb | OK! | 5 |
10 | 0ms | 268kb | OK! | 5 |
11 | 0ms | 292kb | OK! | 5 |
12 | 0ms | 276kb | OK! | 5 |
13 | 4ms | 320kb | OK! | 5 |
14 | 24ms | 368kb | OK! | 5 |
15 | 52ms | 444kb | OK! | 5 |
16 | 80ms | 524kb | OK! | 5 |
17 | 76ms | 660kb | OK! | 5 |
18 | 128ms | 656kb | OK! | 5 |
19 | 164ms | 660kb | OK! | 5 |
20 | 52ms | 660kb | OK! | 5 |
Punctaj total | 100 |