Very surprising

Write here if you have problems with your C++ source code

Moderator: Board moderators

Post Reply
shamim
A great helper
Posts: 498
Joined: Mon Dec 30, 2002 10:10 am
Location: Bozeman, Montana, USA

Very surprising

Post by shamim »

I normally code my program using turbo c++, and i very well know everything it supports isn't always supported by the UVA compiler.
The functions that are not supported by ANSI standard, are also not supported here.
One such function is sqrtl();
But to my surprise, when i was just fooling around and submitted a program(which i thought would require Big Numbers) using sqrtl(), and I got AC. Eventhough the common function strrev() is not supported.

So i would like to know, what else is supported here.
Krzysztof Duleba
Guru
Posts: 584
Joined: Thu Jun 19, 2003 3:48 am
Location: Sanok, Poland
Contact:

Post by Krzysztof Duleba »

You only have a guarantee that ANSI standard functions work fine. As for the others, you never know - you can try, but you can either get AC or RF/CE.
freaky
New poster
Posts: 6
Joined: Sat Sep 14, 2002 11:27 pm
Location: Taipei

Post by freaky »

Krzysztof Duleba wrote:You only have a guarantee that ANSI standard functions work fine. As for the others, you never know - you can try, but you can either get AC or RF/CE.
There are some commonly used language features and library components stated in ANSI/ISO C++ Standard do not work at all or not as expected, since the only fully-compliant implementation at present is Comeau C++ with Dinkum C++ Library, which differs from the old gcc used by the judge. :(
Farqaleet
New poster
Posts: 15
Joined: Wed Jan 28, 2004 11:24 pm

Post by Farqaleet »

Well if you use gcc then the easiest way to minimize your compile errors is to give the
-ansi
argument to the compiler so it uses less functions and you are limited to the almost the set of functions that the judge uses itself.
Post Reply

Return to “C++”