2008年3月16日 星期日

online-judge.uva.es :: View topic - a question about submission

online-judge.uva.es :: View topic - a question about submission
did you use void main()? that now gets CE or RE, for the new server use int main(){ return 0; } for C++

songlj wrote:
thx for ur reply
but actually i did use int main() {...return 0;} and still got CE
i'm now confused


I've got some compilations errors too, but I managed to discover where. For example, this code gives CE (in C++):

Code:

struct XXX {
static const int YYY = 10;
};


Instead, you have to do:

Code:

struct XXX {
static const int YYY;
};
const int XXX::YYY = 10;


Hope that helps.

沒有留言: