Register Now
Member Count: 483,700 - May 22, 2013  [Get Time]
Login
Dashboard > TopCoder Competitions > ... > Algorithm Support & FAQs > SRM Algorithm Competition FAQs
TopCoder Competitions View a printable version of the current page.  
SRM Algorithm Competition FAQs
Added by ntrefz , last edited by mike on May 31, 2011  (view change)
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

I have participated in college competitions n have always coded in C and as an embedded/device driver developer i use C a lot.

 The problem with me i don't know how to code for topcoder in C++.

 Can anyone explain me with a simple example

For Eg: Assume i have to find bigger number out of three.

please write the vector coding as how it is done?

Posted by decoders at Dec 21, 2010 04:23

.

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

hey, just wondering, are there solutions available over the problems in the practice rooms and the algorithm contests ?

Posted by rwijaya at Jul 15, 2009 15:41

Yes!

Algorithm -> Statistics -> Match Editorials

Good luck!

Posted by justyo at Nov 18, 2010 23:04

Is there any way to participate in competitions without using competition arena??

Posted by rajat1989 at Jul 31, 2010 00:37

No.

Posted by eather at Dec 20, 2010 08:42

Is there have any rules to let any contest unrated???

Posted by eather at Dec 20, 2010 08:42

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 william_t_r at Jan 27, 2011 13:15

Hi,

Just wondering, is there any grader to check solutions of problems from past SRM's and other contests?

Posted by abhratanu at Nov 20, 2011 03:29

just deleted the comment

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 .

Thanks in Advance.

Lakshman

Posted by luckymaster at Feb 15, 2013 11:27