I'm getting a very strange error and something I've never experienced before, I'm trying to initialize a vector at declaration like so:
vector <int> myVector (5,4,3,4);
It gives me an error saying that it cannot find a call matching that function, however, if I plug in only 2 numbers it doesn't give me an error.
Upon further investigation, even this piece of code throws that vector is not a member of std or that myVector is not a type when I try to call
myVector.push_back(4);
Now here is the code that gives me the vector is not a member of std, not matching function found, of that nature...
#include <vector>
using std::vector;
const std::vector<int> newvector;
std::newvector.push_back(5);
int main()
{
}
Error given: newvector in namespace std does not name a type