fork download
  1. #include <iostream>
  2. #include <ctime>
  3. #include <algorithm>
  4.  
  5. int main()
  6. {
  7. std::time_t start = std::clock();
  8. for(int i = 0; i < 1000000; ++i)
  9. std::string s = std::to_string(i);
  10. std::cout << (std::clock() - start) / double(CLOCKS_PER_SEC);
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:9: error: ‘to_string’ is not a member of ‘std’
prog.cpp:9: warning: unused variable ‘s’
stdout
Standard output is empty