Witam
Kiedy chce wyświetlić iteator to wyskakuje mi błąd podczas działania programu, nie kompilacji. Jakby co robię to w Visual Studio 2017.
kod:
#include <iostream>
#include <vector>
int main()
{
using namespace std;
int vec = 10;
vector<int> liczby(3,vec);
vector<int>::iterator ed = liczby.end();
cout<<*ed<<endl;
getchar();
return 0;
}
Za wszelką pomoc dziękuje ;]