Posts by Vitor • 131 points
1 post
-
3
votes3
answers237
viewsA: Different outputs on different compilers
The problem is that the main function should only take 0 or 2 arguments (int argc, char** argv) according to the C++ standard. Since your code does not comply with C++ rules, each compiler can treat…