c++编程提示function definition is not allowed here

NoSuchKey