Pagini recente » Borderou de evaluare (job #3222787) | Borderou de evaluare (job #1088694) | Borderou de evaluare (job #2941403) | Borderou de evaluare (job #1545717) | Borderou de evaluare (job #2766076)
Borderou de evaluare (job #2766076)
Raport evaluator
Compilare:
main.cpp:3:0: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
#pragma GCC optimization ("O3")
main.cpp:4:0: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
#pragma GCC optimization ("unroll-loops")
main.cpp: In function 'long long int getAgg(int, int)':
main.cpp:49:19: warning: operation on 'vf1' may be undefined [-Wsequence-point]
stkMin[vf1++]={i, (vf1==0 ? 0 : stkMin[vf1-1].second) + 1LL*a[i]*(i-capStAct+1)};
~~~^~
main.cpp:57:19: warning: operation on 'vf2' may be undefined [-Wsequence-point]
stkMax[vf2++]={i, (vf2==0 ? 0 : stkMax[vf2-1].second) + 1LL*a[i]*(i-capStAct+1)};
~~~^~
main.cpp: In function 'int main()':
main.cpp:100:34: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
fprintf(out_file, "%d\n", ans);
^
main.cpp:85:30: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in_file, "%d", &n);
^
main.cpp:88:39: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in_file, "%d", &(a[i]));
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 40ms | 131kb | OK | 10 | 20 |
2 | 41ms | 131kb | OK | 10 |
3 | 1556ms | 393kb | OK | 10 | 20 |
4 | 1875ms | 405kb | OK | 10 |
5 | 4175ms | 606kb | OK | 10 | 20 |
6 | 4193ms | 602kb | OK | 10 |
7 | 2532ms | 524kb | OK | 10 | 20 |
8 | 2523ms | 466kb | OK | 10 |
9 | 3545ms | 524kb | OK | 10 | 20 |
10 | 4366ms | 606kb | OK | 10 |
Punctaj total | 100 |