fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. std::string napis = "2004";
  6. int numer = std::stoi(napis);
  7. cout << numer << endl;
  8. return 0;
  9. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
2004