fork download
  1. void f(int){}
  2. void f(double) = delete;
  3.  
  4. int main()
  5. {
  6. double k = 3.14;
  7. f(k);
  8. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:7:8: error: use of deleted function ‘void f(double)’
     f(k);
        ^
prog.cpp:2:6: error: declared here
 void f(double) = delete;
      ^
stdout
Standard output is empty