fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. void some_function(const string& foo) {
  6. cout << foo << endl;
  7. }
  8.  
  9. int main() {
  10. const auto my_int = 13;
  11.  
  12. some_function("The int is " + to_string(my_int));
  13. return 0;
  14. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
The int is 13