#include <iostream> int main() { std::cout << "Hello, Japan\n"; } #include <iostream> int main() { std::cout << "Hello. from Kyoto, Tokyo, Osaka!\n"; }
Standard input is empty
prog.cpp:9:5: error: redefinition of ‘int main()’ int main() ^~~~ prog.cpp:3:5: note: ‘int main()’ previously defined here int main() ^~~~
Standard output is empty