Borderou de evaluare (job #2388320)

Utilizator LittleWhoFeraru Mihail LittleWho Data 25 martie 2019 21:50:20
Problema Hacker3 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 5

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:30:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 1; i <= n; i++) { ~~^~~~ main.cpp:24:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("hacker3.in", "r", stdin); ^ main.cpp:25:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("hacker3.out", "w", stdout); ^ main.cpp:29:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%u", &n); ^ main.cpp:31:41: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%llu %llu", &a[i], &b[i]); ^ main.cpp: In function 'void init_pows()': main.cpp:19:17: warning: iteration 10 invokes undefined behavior [-Waggressive-loop-optimizations] pow2[i] = 1 << i; ~~~~~~~~^~~~~~~~ main.cpp:18:24: note: within this loop for (uint i = 0; i < 31; i++) { ~~^~~~ main.cpp: In function 'int main()': main.cpp:51:20: warning: iteration 10 invokes undefined behavior [-Waggressive-loop-optimizations] if (dp[n][i]) sol = min(sol, dp[n][i]); ~~~~~~~^ main.cpp:50:24: note: within this loop for (uint i = 0; i <= pmax; i++) { ~~^~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms131kbOK55
22ms131kbIncorect00
32ms131kbIncorect00
42ms131kbIncorect00
56ms262kbIncorect00
66ms262kbIncorect00
76ms262kbIncorect00
86ms262kbIncorect00
9309ms1179kbIncorect00
10308ms1179kbIncorect0
11312ms1179kbIncorect0
12312ms1179kbIncorect0
13320ms1179kbIncorect0
14323ms1179kbIncorect0
1541ms4751kbMemory limit exceeded00
1654ms4751kbMemory limit exceeded0
1749ms4751kbMemory limit exceeded0
1847ms4751kbMemory limit exceeded0
1954ms4751kbMemory limit exceeded0
2071ms4751kbMemory limit exceeded0
Punctaj total5

Ceva nu functioneaza?