1.warning:used uninitialized in this function
原因:该变量定义了,后面是需要使用的,那可能就是没有输入变量;
解决:找到定义该变量的地方,检查是否有输入,可使用scanf/cin
区别定义变量但从未使用的情况
2.error:‘cin’ /'cout' was not declared in this scope
原因:未定义使用命名空间
解决:在定义使用头文件的地方加上using namespace std;
using namespace std;