error: ‘vector’ does not name a type

Compile is this error:

error: 'vector' does not name a type

Solutions:
Add the following code at the beginning of the file:

#include <vector>
using namespace std;

Read More: