For the 2nd loop, I believe it should be
for(j=0;j<t.size();j++)
Also, i=s[x]
Should probably check that x
is with the bounds of indexes for s
.
3
solved Segmentation fault while using vector in C++?
For the 2nd loop, I believe it should be
for(j=0;j<t.size();j++)
Also, i=s[x]
Should probably check that x
is with the bounds of indexes for s
.
3
solved Segmentation fault while using vector in C++?