I am learning C ++ and I have doubts about the use of lists. I'm programming with Sublime Text on Linux. The following code gives the compilation problem 'vector' was not declared in this scope .
#include <iostream>
#include <vector>
int main()
{
vector<int> v;
v.push_back(10);
return 0;
}
I have knowledge of C # in which the statements are very intuitive and in C ++ the relationship with the libraries is costing me work. Can you help me with the correct statement? Thanks!