does not name a type error: ‘res’ does not name a type| “xxx”does not name a type 错误 1、头文件和namespace 2、变量作用域(最日你故意忽视的问题是声明和调用之间的代码不成对的大括号)