18行以下错了 for(it = v.begin();it < v.end();it++) { cnt++; if(*it == m) { cout << cnt << endl; break; } } if(it == v.end()) cout << "No" << endl; v.clear(); }