T
T
turbolizard2016-04-25 08:07:09
C++ / C#
turbolizard, 2016-04-25 08:07:09

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. c8c47d9265244967a10dff7677c0d3c1.JPG
The code:

#include <iostream>
#include <vector>

using namespace std;

int main()
{
  vector<int> newVec(10);
  cout<<"have a nice day!"<<endl;
  return 0;
}

The program exits with code -1073741511

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2016-04-25
@GavriKos

Error in Google (preferably in English) and forward.
First link: stackoverflow.com/questions/18668003/the-procedure...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question