Pagini recente » Borderou de evaluare (job #329815) | Borderou de evaluare (job #1266905)
Borderou de evaluare (job #1266905)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:21:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
fscanf(fin, "%d", &n);
^
user.cpp:23:65: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
for(int i =0; i< n; i++) {fscanf(fin, "%d %d", &v[i].t, &v[i].p);if(v[i].t > max) max = v[i].t;}
^
user.cpp:23:65: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=]
user.cpp:35:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
fprintf(fout, "%d", sum);
^
user.cpp:21:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &n);
^
user.cpp:23:66: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(int i =0; i< n; i++) {fscanf(fin, "%d %d", &v[i].t, &v[i].p);if(v[i].t > max) max = v[i].t;}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 1132kb | OK | 10 |
2 | 0ms | 252kb | OK | 10 |
3 | 0ms | 1200kb | Incorect | 0 |
4 | 0ms | 1232kb | Incorect | 0 |
5 | 0ms | 1256kb | Incorect | 0 |
6 | 16ms | 1392kb | Incorect | 0 |
7 | 60ms | 1708kb | Incorect | 0 |
8 | 524ms | 2016kb | Incorect | 0 |
9 | Depăşit | 2476kb | Time limit exceeded. | 0 |
10 | Depăşit | 2796kb | Time limit exceeded. | 0 |
Punctaj total | 20 |