Hello I wrote a code in c++ with a vector
and I have an error message segmentaion fault
should I resize the vector with the vector resize(int, val)
every time I add a value?
Is this the cause of the error?
Thanks
The vector is not the problem. (Hint: never blame standard library routines for failure unless you have systematically, in excruciating detail, proved that it is the standard library and not your own code.)