fork download
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. func(int a,int b){
  5. cout<<"a is "<<a;
  6. cout<<"\nb is "<<b;
  7.  
  8. }
  9.  
  10. int main(){
  11. func(12.3,34.3);
  12.  
  13.  
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:4:17: error: ISO C++ forbids declaration of ‘func’ with no type [-fpermissive]
 func(int a,int b){
                 ^
stdout
Standard output is empty