Borderou de evaluare (job #2439962)

Utilizator alextodoranTodoran Alexandru Raul alextodoran Data 17 iulie 2019 12:02:46
Problema Senzori Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:30:35: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] dp1[i & 1][j] = dp1[i & 1 ^ 1][T_MAX - 1]; ~~^~~ main.cpp:34:62: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] dp1[i & 1][j] = max(dp1[i & 1][j], max(dp1[i & 1 ^ 1][j - d[i]], dp2[i & 1 ^ 1][j]) + v[i]); ~~^~~ main.cpp:34:88: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] dp1[i & 1][j] = max(dp1[i & 1][j], max(dp1[i & 1 ^ 1][j - d[i]], dp2[i & 1 ^ 1][j]) + v[i]); ~~^~~ main.cpp:38:35: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] dp2[i & 1][j] = dp2[i & 1 ^ 1][0]; ~~^~~ main.cpp:42:62: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] dp2[i & 1][j] = max(dp2[i & 1][j], max(dp2[i & 1 ^ 1][j + d[i]], dp1[i & 1 ^ 1][j]) + v[i]); ~~^~~ main.cpp:42:88: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] dp2[i & 1][j] = max(dp2[i & 1][j], max(dp2[i & 1 ^ 1][j + d[i]], dp1[i & 1 ^ 1][j]) + v[i]); ~~^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
16ms131kbOK5
210ms131kbOK5
313ms131kbOK5
417ms131kbOK5
523ms262kbOK5
632ms262kbOK5
730ms262kbOK5
837ms131kbOK5
948ms262kbOK5
1069ms262kbOK5
112ms131kbOK5
1274ms131kbOK5
132ms131kbOK5
143ms131kbOK5
153ms131kbOK5
163ms131kbOK5
174ms131kbOK5
185ms131kbOK5
196ms131kbOK5
207ms131kbOK5
Punctaj total100

Ceva nu functioneaza?