fork download
  1. #include <iostream>
  2. using namespace std;
  3. fn1(int Arg){
  4. int a = 10;
  5. }
  6. int main(){
  7. cout << "fn1(): " << fn1(22) << endl;
  8. return 0;
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:3:13: error: ISO C++ forbids declaration of ‘fn1’ with no type [-fpermissive]
  fn1(int Arg){
             ^
stdout
Standard output is empty