fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void print(const auto &v){
  5. std::cout << v << '\n';
  6. }
  7.  
  8. int main() {
  9. print(42);
  10. print("hello");
  11. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
42
hello