Originally Posted by
medievalelks
Post the complete piece of code you're trying to compile, not just snippets. And if you're copy-pasting code, you have to be careful that you don't get any hidden HTML chars in it.
Code:
#include <vector>
#include <iostream>
std::vector<int> vec;
vec.push_back(1);
/*
Errors:
1>(4) : error C2143: syntax error : missing ';' before '.'
1>(4) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>(4) : error C2371: 'vec' : redefinition; different basic types
1> (3) : see declaration of 'vec'
*/