Hi!
This is all my code. When i debug it, at the 15th line ( c[i].push_back(card[j]); ) i get
"Unhandled exception in Cpp.exe: 0xC0000005: Access Violation." error. Please help me to solve it.
P.S. Cpp.exe is the name of my code , i use C++ 6.0 and sorry for my english :D
c[i].push_back(card[j]);
You're accessing memory you don't have. You never used push_back before this, so the vector "c" (name your variables more useful names) is empty, so you can't use c[i].
It's a vector of vectors of type int. You need to push_back a vector of int.
c.push_back(card);
Now after this, you can do c[0]
Another problem is that for some reason, you set "i" equal to 1? Why? Even if you do the push_back thing I just suggested, c[i] would still not work because i = 1 and you only got access to c[0].