Page 1 of 1

Can anyone explain => Misterious compiler error

Posted: Sat Jan 10, 2004 12:01 pm
by Tahseen Mohammad
I got compiler error in the school contest.

This is the error I got
g++: 00000162_PC.c: No such file or directory
g++: No input files

But it was actually a name conflict. I used a variable name max
changing which got me AC. I am also using vector but I am not
using the statement "using namespace std;" but I rather used
std prefix in the declaration of my vector.

I do know there is a max function in the "std" namespace thats
precisely why I am not using the "using" directive. I got the same
problem few days before and I compiled my code with VC++, cygwin
& with g++ in a redhat 8.0 system. It worked in all of them. Why
the OJ's giving compiler error.

Can somebody (may be the administrator) EXPLAIN :cry: