First, you vector has no size. Change line 9 to
std::vector<int> bolas(num);
Second,
temp
is used as temporary storage.
It needs to be set to its relevant value; i.e. temp=...
So have a look at the line 22
bolas[w]=temp;
Do you think that is right? Which variable are you setting the value of?
There's a few other cosmetic problems. For example, you have no need of posibilidades, and your indentation is screwed up (probably by tabs).
Last edited on
It doesn’t output anything because yabi is just taking the piss.