#doubt

2 messages · Page 1 of 1 (latest)

quaint oar
#

it's because your res has a capacity of 0, since it's freshly created with no default capacity, but you're still trying to index into it and assign values

#

you'll need to either pre-allocate some capacity with the reserve member function, or have it automatically allocate as you append elements with something like the push_back member function