I'm sure you're just matching the surrounding code, but in new code please put spaces around binary operators and brackets around all blocks, e.g. for( int a = 0; a < 21; a++) { vset.push_back( a ); }