You are trying to compare an integer (b) with an iterator (puzzleBox.end()). This is not an error with Code::Blocks (its just an IDE), instead its an error with your code. Try doing this instead:
1 2 3 4 5 6 7 8
std::vector<int> puzzleBox;
// Assign Values
std::vector<int>::iterator it;
while (it != puzzleBox.end()) {
// Do Something
}