How to use vector in Arena? The same code would be compiled OK in VC++ 6.0, but, errors occur when being compiled in Arena: ISO forbid vector iimplementation with no type(...this description maybe not the original).
How do you challenge code which has undefined behaviour, e.g. this bit of C++ code
for (int i=0; i<= somevector.size(); i++)
{ somevector[i]++; }
The example I was looking at appeared to be a correct algorithm apart from this, so to challenge with a test case I would have had to guess the value likely to be returned by somevector[somevector.size()]
How to use vector in Arena? The same code would be compiled OK in VC++ 6.0, but, errors occur when being compiled in Arena: ISO forbid vector iimplementation with no type(...this description maybe not the original).