Job 18826

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:2:19: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
 #define zeros(x) x&(x-1)^x
                   ^
prog.cpp:43:18: 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.2471s
2Wrong answer0.2465s
Questions?

Sponsors Gold