std::vector::iterator q; //char替换成你需要的参数类型,q替换成你的迭代器名,不在前面在using,写在main函数前面,试试看
vector;;iterator这里拼写错误, vector::iterator, 中间是2个冒号