忘记using namespace std;

在写程序时 经常莫名其妙的出现一些 未定义错误,如下面, 是因为用了c++的名字空间std中的类型;忘了加上using namespace std;语句

error   C2143:   syntax   error   :   missing   '; '   before   ' < '

error   C2143:   syntax   error   :   missing   '; '   before   ' < '
error   C2061:   syntax   error   :   identifier   'vector '
error   C2061:   syntax   error   :   identifier   'vector '
error   C2065:   'vector '   :   undeclared   identifier


原文地址:https://www.cnblogs.com/lidan/p/2239501.html