Job 18819

Owner
Banu Denis
Problem
Bits
Contest
MindCoding 2017 Round 2 Bosch (Div. 1)
Source
0.86KB
Result
Wrong answer

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:43:16: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
         if (sav>zeros(x))
                ^
prog.cpp:2:19: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
 #define zeros(x) x&(x-1)^x
                   ^
prog.cpp:43:17: note: in expansion of macro 'zeros'
         if (sav>zeros(x))
                 ^
prog.cpp:2:19: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
 #define zeros(x) x&(x-1)^x
                   ^
prog.cpp:45:19: note: in expansion of macro 'zeros'
             aux = zeros(x);
                   ^

Results

Test numberResultTime
1Ok0.2679s
2Wrong answer0.3067s
Questions?

Sponsors Gold