If it is so terrible problem, why c++ allow me to do it?
If it is so terrible problem, why c++ allow me to do it?
It doesn't. The warning says expressly that in ISO (Standard) C++, you can't. Just because you get warning instead of an error, and an executable, it's not OK. Try compiling with -Werror and all warnings become errors, anyway.