Job 18836

Owner
Banu Denis
Problem
Bits
Contest
MindCoding 2017 Round 2 Bosch (Div. 1)
Source
0.85KB
Result
Accepted

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:42: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:44:19: note: in expansion of macro 'zeros'
             aux = zeros(x);
                   ^

Results

Test numberResultTime
1Ok0.2566s
2Ok0.2596s
3Ok0.2612s
4Ok0.2581s
5Ok0.2491s
6Ok0.2546s
7Ok0.2749s
8Ok0.4693s
9Ok0.2684s
10Ok0.2711s
Questions?

Sponsors Gold