fork download
  1. #include <iostream>
  2. #include <sstream>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. ostringstream s;
  8.  
  9. s << "Hi;";
  10. s << -1 << ";";
  11.  
  12. cout << s.str() << endl;
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5292KB
stdin
Standard input is empty
stdout
Hi;-1;