Answer the question
In order to leave comments, you need to log in
How to fix error when adding vector to c++ file?
I'm getting used to c++, downloaded CodeLite, MinGW, installed everything, everything is fine.
Default project Hello, World! compiles normally, but as soon as I add a vector declaration, an incomprehensible error pops up.
The code:
#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector<int> newVec(10);
cout<<"have a nice day!"<<endl;
return 0;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question