fork download
  1. #include <iostream>
  2.  
  3. void func(auto pt) { }
  4.  
  5. int main() {
  6. func();
  7. return 0;
  8. }
Compilation error #stdin compilation error #stdout 0s 3136KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:6:7: error: no matching function for call to 'func()'
  func();
       ^
prog.cpp:6:7: note: candidate is:
prog.cpp:3:6: note: template<class auto:1> void func(auto:1)
 void func(auto pt) { }
      ^
prog.cpp:3:6: note:   template argument deduction/substitution failed:
prog.cpp:6:7: note:   candidate expects 1 argument, 0 provided
  func();
       ^
stdout
Standard output is empty