Register Now
Member Count: 212,217 - July 4, 2009  [Get Time]
Login
Dashboard > TopCoder Competitions > ... > Algorithm Support & FAQs > Algorithm Competition FAQs
TopCoder Competitions View a printable version of the current page.  
Algorithm Competition FAQs
Added by ntrefz , last edited by ntrefz on Oct 17, 2007
Labels: 
(None)

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).

Posted by mysteryashing at Dec 17, 2007 22:27

Not sure where is the problem in your code but it works okay with me.

Just include <vector>

#include<vector>
using namespace std;
and then use it normally

vector<int> x;

The only problem I faced with visual C++ was the long long.

Posted by Anonymous at Dec 17, 2007 22:44

.

Posted by mb__ at Dec 30, 2007 16:20Updated by mb__

In VC+, you can sometimes declare vector with no type. In ISO C+, you must ALWAYS declare vector with a type.

Posted by Anonymous at Jan 19, 2008 13:02