Job 21023

Owner
Andrei Arhire
Problem
Bits
Source
0.99KB
Result
Wrong answer

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:8:13: warning: unused variable 'cnt' [-Wunused-variable]
     int64_t cnt , n , x , i , sol , maxim , minim ;
             ^
prog.cpp:8:31: warning: unused variable 'sol' [-Wunused-variable]
     int64_t cnt , n , x , i , sol , maxim , minim ;
                               ^
prog.cpp:24:59: warning: 'minim' may be used uninitialized in this function [-Wmaybe-uninitialized]
         if ( minim < maxim )    x += ( 1 << maxim ) - ( 1 << minim ) ;
                                                           ^
prog.cpp:24:42: warning: 'maxim' may be used uninitialized in this function [-Wmaybe-uninitialized]
         if ( minim < maxim )    x += ( 1 << maxim ) - ( 1 << minim ) ;
                                          ^

Results

Test numberResultTime
1Ok0.2720s
2Wrong answer0.2690s
Questions?

Sponsors Gold