17 lines
247 B
C++
17 lines
247 B
C++
#include <vector>
|
|
|
|
int main() {
|
|
std::vector<int> l;
|
|
|
|
// Fill List
|
|
for (int i = 0; i < 10000 ; i++) {
|
|
l.push_back(i);
|
|
}
|
|
|
|
for ( auto iter = l.begin(); iter != l.end(); iter++ ) {
|
|
if ( *iter % 3 == 0 ) {
|
|
iter = l.erase( iter );
|
|
}
|
|
}
|
|
|
|
}
|