VSCode C++ control reaches end of non-void function [-Wreturn-type]

When writing C ++ code with VSCode, always at the end of the calling function display control reaches end of non-void function [-Wreturn-type], will run error, but the same code in VS did not have this problem.

The more you look, you should add a return statement before braces are adjusted at the end of the function 

Guess you like

Origin www.cnblogs.com/xiangsui/p/11276783.html