for (vector<int>::iterator i = a.begin(); i != a.end(); i++) if (i % 2 == 1) { printf("%d ", *i); i = a.erase(i); }
它爆出了一大把的错误,怎样才可以将i转成 int类型的呢?