fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. string s;
  8. cin >> s;
  9. int n = stoi(s);
  10. cout << s;
  11. return 0;
  12. }
Runtime error #stdin #stdout #stderr 0s 15224KB
stdin
5000000000
stdout
Standard output is empty
stderr
terminate called after throwing an instance of 'std::out_of_range'
  what():  stoi