fork download
  1. #include <iostream>
  2. #include <limits>
  3. #include <bitset>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. bitset<numeric_limits<int>::digits> test2(585);
  9.  
  10. cout << test2.to_string() << endl;
  11. }
  12.  
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
0000000000000000000001001001001