Page 1 of 1

Judge's annoying compiler

Posted: Wed Mar 14, 2007 1:29 pm
by 4l1
Hi,

would someone authoritative please let me know what compiler and settings does the judge use? It took me an hour to pin down the specific problem that judge will refuse the following C++ code with compiler error:

Code: Select all

#include <iostream>
#include <iomanip>
#include <algorithm>

using namespace std;

int main()
{
    cout << fixed << 3.00;
    return 0;
}
I've tried it on various versions of GCC and VC++ with all the warnings etc. enabled and none complained. I really wonder how does judge manage to refuse it.

Thanks.

Posted: Wed Jul 25, 2007 8:43 am
by rjhadley
gcc 2.95.3

Have you tried something like ios::fixed? of using cout.setf(ios:fixed)?