fork download
  1. #include <iostream>
  2. using namespace std;
  3. #include <stdlib.h>
  4.  
  5. int main() {
  6.  
  7. string a = "1000000001001000100000010100001001010100010000011";
  8. long long int value;
  9. value = strtoll(a.c_str(), NULL, 2);
  10. cout <<"converted value "<<value;
  11.  
  12. // your code goes here
  13. return 0;
  14. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
converted value 282097789216899