18) Avoid using vector<bool>.

It is not an STL container and it does not hold bools! Bizzare huh? vector<bool> has a packed representation, so it is a pseudo-container. Try deque<bool> or bitset as alternatives.

vector<bool> は各要素を1ビットで管理するが、要素へのポインタや参照を返せない  deque<bool> / bitset を使おう

http://www-staff.it.uts.edu.au/~ypisan/programming/stl50.html