You are missing )
in the right side of if statement
if((int)(vectorX.size()) != (intendedSize)) {
^^^
}
But note, it's bad to cast return value of std::vector::size to int. You lose half of the possibilities of what the size could be(thanks to chris).
You should write:
size_t intendedSize = 10;
// OR unsign int intendedSize = 10;
if(vectorX.size() != intendedSize) {
}