Pagini recente » Borderou de evaluare (job #1232402) | Borderou de evaluare (job #1538475) | Borderou de evaluare (job #1846210) | Borderou de evaluare (job #1995554) | Borderou de evaluare (job #2474410)
Borderou de evaluare (job #2474410)
Raport evaluator
Compilare:
main.cpp: In function 'void build_rmq()':
main.cpp:84:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < euler.size(); i++)
~~^~~~~~~~~~~~~~
main.cpp:87:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int length = 1; (1 << length) <= euler.size(); length++) {
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
main.cpp:88:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i + (1 << length) - 1 < euler.size(); i++) {
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
main.cpp: In function 'int max_chain(int)':
main.cpp:132:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: In function 'int main()':
main.cpp:135:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("apm2.in", "r", stdin);
^
main.cpp:136:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("apm2.out", "w", stdout);
^
main.cpp:140:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &n, &m, &q);
^
main.cpp:144:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &u, &v, &cost);
^
main.cpp:174:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &u, &v);
^
main.cpp: In function 'void build_pow2()':
main.cpp:101:13: warning: iteration 19998 invokes undefined behavior [-Waggressive-loop-optimizations]
pow2[i] = pow2[i - 1];
~~~~~~~~^~~~~~~~~~~~~
main.cpp:100:21: note: within this loop
for (int i = 2; i <= 2 * MAX_N; i++) {
~~^~~~~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 524kb | OK | 10 | 0 |
2 | 2ms | 524kb | OK | 10 |
3 | 12ms | 786kb | OK | 10 |
4 | 311ms | 2220kb | OK | 10 |
5 | 321ms | 2351kb | OK | 10 |
6 | 126ms | 1961kb | OK | 10 |
7 | 258ms | 2220kb | OK | 10 |
8 | 538ms | 3395kb | OK | 10 |
9 | 700ms | 3788kb | Time limit exceeded | 0 |
10 | 670ms | 3919kb | OK | 10 |
Punctaj total | 0 |