Borderou de evaluare (job #2388341)

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

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:47:26: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] if (dp[row(i - 1)][j] == 0 && dp[row(i - 1)][j - 1] == 0) continue; ~~^~~ main.cpp:24:17: note: in definition of macro 'row' #define row(x) (x & 1) ^ main.cpp:47:52: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] if (dp[row(i - 1)][j] == 0 && dp[row(i - 1)][j - 1] == 0) continue; ~~^~~ main.cpp:24:17: note: in definition of macro 'row' #define row(x) (x & 1) ^ main.cpp:49:26: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] if (dp[row(i - 1)][j] == 0) dp[row(i)][j] = 1ULL * pow2[j - 1] * a[i] + dp[row(i - 1)][j - 1]; ~~^~~ main.cpp:24:17: note: in definition of macro 'row' #define row(x) (x & 1) ^ main.cpp:49:94: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] if (dp[row(i - 1)][j] == 0) dp[row(i)][j] = 1ULL * pow2[j - 1] * a[i] + dp[row(i - 1)][j - 1]; ~~^~~ main.cpp:24:17: note: in definition of macro 'row' #define row(x) (x & 1) ^ main.cpp:50:31: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] else if (dp[row(i - 1)][j - 1] == 0) dp[row(i)][j] = 1ULL * pow2[j] * b[i] + dp[row(i - 1)][j]; ~~^~~ main.cpp:24:17: note: in definition of macro 'row' #define row(x) (x & 1) ^ main.cpp:50:100: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] else if (dp[row(i - 1)][j - 1] == 0) dp[row(i)][j] = 1ULL * pow2[j] * b[i] + dp[row(i - 1)][j]; ~~^~~ main.cpp:24:17: note: in definition of macro 'row' #define row(x) (x & 1) ^ main.cpp:51:71: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] else dp[row(i)][j] = min(1ULL * pow2[j] * b[i] + dp[row(i - 1)][j], 1ULL * pow2[j - 1] * a[i] + dp[row(i - 1)][j - 1]); ~~^~~ main.cpp:24:17: note: in definition of macro 'row' #define row(x) (x & 1) ^ main.cpp:51:118: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] else dp[row(i)][j] = min(1ULL * pow2[j] * b[i] + dp[row(i - 1)][j], 1ULL * pow2[j - 1] * a[i] + dp[row(i - 1)][j - 1]); ~~^~~ main.cpp:24:17: note: in definition of macro 'row' #define row(x) (x & 1) ^ main.cpp:27:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms131kbOK55
22ms131kbOK55
33ms131kbOK55
42ms131kbOK55
53ms131kbOK55
63ms131kbOK55
73ms131kbOK55
83ms131kbOK55
99ms393kbOK530
109ms393kbOK5
119ms393kbOK5
129ms393kbOK5
139ms393kbOK5
149ms393kbOK5
1570ms2490kbOK530
1674ms2490kbOK5
1772ms2490kbOK5
1871ms2490kbOK5
1972ms2490kbOK5
2090ms2490kbOK5
Punctaj total100

Ceva nu functioneaza?