已经有iostream和using namespace std 但还是有问题
把第2行注释掉,第10行cout前面加上这个试试 std::cout
你这是什么开发环境啊
少了这一行
using namespace std;