using namespace std;
要放在头文件下哟~
换句话说 要放在int count(vector &il);前面
或者所有std相关的 加上std::,如std::cout
using namespace std;//把这句写到函数声明的前面。int count(vector &il);另外vector il{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 10 };这句是啥意思啊?
把函数声明放到using namespace std;后面。