Cannot #include <vector>

I only get errors if I try to run this code.

1
2
3
4
5
6
7
8
9
10
11
12

#include "stdafx.h"
#include <iostream>
#include <vector>

using namespace std; 


int main()
{
	return 0;
}


After reading the debug-information and looking around on my PC, I found the reaseon:

Somehow, the file got lost on my PC. It has been overwritten by some homework-project (please do not ask how for I do not know how)

Where can I get the file? It is supposed to be in the include-folder

int main
reinstall your compiler.

With GCC/MingW it's in "Include\C++\<Version>\". But that file will likely be different to a Microsoft one. So I'd reinstall.
Topic archived. No new replies allowed.