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()]
Posted by muratyildirim
at Jan 30, 2013 03:57Updated by muratyildirim
Hi Friends I am new to topcoder and I am facing problem while login to the Applet window even I am using correct user credential it is saying wrong user credential Please help me how to login with the help of applet window to compete .
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).