fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main(int a,int b,int c)
  4. {
  5. cout<<"BROTHER!!!";
  6. }
  7. int main(int b,int c)
  8. {
  9. cout<<"BROTHER2!!!";
  10. }
  11. int main()
  12. {
  13. main(1,2,3);
  14. main(1,2);
  15. }
Compilation error #stdin compilation error #stdout 0s 3340KB
stdin
Standard input is empty
compilation info
prog.cpp:3:5: warning: second argument of ‘int main(int, int, int)’ should be ‘char **’ [-Wmain]
 int main(int a,int b,int c)
     ^
prog.cpp:3:5: warning: third argument of ‘int main(int, int, int)’ should probably be ‘char **’ [-Wmain]
prog.cpp:7:5: warning: second argument of ‘int main(int, int)’ should be ‘char **’ [-Wmain]
 int main(int b,int c)
     ^
prog.cpp: In function ‘int main(int, int)’:
prog.cpp:7:21: error: declaration of C function ‘int main(int, int)’ conflicts with
 int main(int b,int c)
                     ^
prog.cpp:3:5: error: previous declaration ‘int main(int, int, int)’ here
 int main(int a,int b,int c)
     ^
prog.cpp: In function ‘int main()’:
prog.cpp:11:10: error: declaration of C function ‘int main()’ conflicts with
 int main()
          ^
prog.cpp:7:5: error: previous declaration ‘int main(int, int)’ here
 int main(int b,int c)
     ^
prog.cpp:11:10: error: declaration of C function ‘int main()’ conflicts with
 int main()
          ^
prog.cpp:3:5: error: previous declaration ‘int main(int, int, int)’ here
 int main(int a,int b,int c)
     ^
stdout
Standard output is empty