Page 1 of 1

Very surprising

Posted: Tue Jul 22, 2003 9:46 am
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.

Posted: Sat Jul 26, 2003 3:49 am
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.

Posted: Thu Aug 07, 2003 9:37 am
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. :(

Posted: Thu Jan 29, 2004 7:46 am
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.