fork(3) download
  1. #include <iostream>
  2.  
  3.  
  4. template<typename T>
  5. void f(T arg)
  6. {
  7. auto print = [](T a) { std::cout << a << std::endl; };
  8. print(arg);
  9. }
  10.  
  11. int main() {
  12. f(8899);
  13. f("Nawaz");
  14. return 0;
  15. }
Success #stdin #stdout 0s 2928KB
stdin
Standard input is empty
stdout
8899
Nawaz