fork(11) download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. int main() {
  5. using namespace std;
  6. string s = "-1";
  7. double d = stod(s);
  8. int i = stoi(s);
  9. cout << s << " " << d << " " << i << endl;
  10. }
Success #stdin #stdout 0s 2960KB
stdin
Standard input is empty
stdout
-1 -1 -1