I am using gcc under OS X and I get an error
fatal error: 'vector' file not found
when trying to include the vector implementation. Other includes like
#include <stdio.h>
#include <stdlib.h>
are working. Where is the vector file located?
vector is not part of C. You must use C++.
Try compiling with g++ rather than gcc
The vector C++ header enables the use of vector template class.
Include :
#include<vector>
and compile the program using g++.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With