fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void print(auto param) {
  5. cout << param << endl;
  6. }
  7.  
  8. int main() {
  9.  
  10. print("Hello!"); // string
  11. print(57); // int
  12. print(3.14); // double
  13.  
  14.  
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 4504KB
stdin
Standard input is empty
stdout
Hello!
57
3.14