I am getting SIGSEGV Error. Seems like incrementing the iterator is causing the problem. Here is my code

but i am getting runtime error from line 5,
vector v;
also care about your code’s formatting (click here for reference)

2 Likes