'vector' in namespace 'std' does not name a type You should include the vector header: #include <vector>