Search found 6 matches

by DanielKO
Wed Mar 15, 2006 10:07 pm
Forum: C++
Topic: Impossible to use C++
Replies: 13
Views: 5086

You're talking nonsense. ceil(), sin, exp().. all work perfectly, as does everything I have tried using from the STL, for instance. You are still to provide an example of a problem with the judge compiler.
You are probably too busy to read the whole thread (but unfortunatelly not enough to keep ...
by DanielKO
Mon Mar 13, 2006 10:44 pm
Forum: C++
Topic: Impossible to use C++
Replies: 13
Views: 5086

Yes, and it's called "insert missing semicolons".
Ouch. Ok, this one works, my mistake.


Now you're being impolite and obviously you can't read as well, I guess I'm just going to ignore you from now on.
You weren't too polite either from the begining, assuming that I should learn more before ...
by DanielKO
Mon Mar 13, 2006 10:14 pm
Forum: C++
Topic: Impossible to use C++
Replies: 13
Views: 5086




#include <cmath>

using namespace std;

int main()
{
double x = 1
double i = sin(x);
return 0;
}


This does work as supposed. I used it hundreds of times.
Really? I just tested a few seconds ago, I still get a "Compile Error". Maybe you are using some magic hidden button in the Submit ...
by DanielKO
Mon Mar 13, 2006 3:57 am
Forum: C++
Topic: Impossible to use C++
Replies: 13
Views: 5086

fixed comes with <iomanip> as ios::fixed (cout.setf(ios::fixed)).
"fixed" isn't supposed to be in <iomanip>, but in <ios> that is included by <iostream>. Try this anyways, and see if it compiles:

#include <iostream>
#include <iomanip>

using namespace std;

int main()
{
cout << fixed << 0.3 ...
by DanielKO
Mon Mar 13, 2006 2:32 am
Forum: C++
Topic: Impossible to use C++
Replies: 13
Views: 5086

GCC 2.95 has a really poor support for standard C++. It would have saved much of my time if I knew this from the beginning.

And yes, I'm pretty sure my code is perfectly valid C++ (it's only 16 lines long). I compile it with -Wall -Wextra on GCC 3.4.5 and 4.0.1, Comeau accepts it, and I already ...
by DanielKO
Mon Mar 13, 2006 1:22 am
Forum: C++
Topic: Impossible to use C++
Replies: 13
Views: 5086

Impossible to use C++

What's wrong with the judge's C++ compiler? I got a ton of Compile Error already because whatever is there compiling the C++ submissions, it doesn't accept perfectly valid C++ code. Looks like many stuffs from the standard library (cmath, iomanip, vector) aren't working properly. What's the point in ...

Go to advanced search