Compiler interpreter difference in c++