fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. std::cout << "Hello, Japan\n";
  6. }
  7. #include <iostream>
  8.  
  9. int main()
  10. {
  11. std::cout << "Hello. from Kyoto, Tokyo, Osaka!\n";
  12. }
Compilation error #stdin compilation error #stdout 0s 4164KB
stdin
Standard input is empty
compilation info
prog.cpp:9:5: error: redefinition of ‘int main()’
 int main()
     ^~~~
prog.cpp:3:5: note: ‘int main()’ previously defined here
 int main()
     ^~~~
stdout
Standard output is empty