Can anyone explain => Misterious compiler error

Post here if you don't find any other place for your post. But please, stay on-topic: algorithms, programming or something related to this web site and its services.

Moderator: Board moderators

Post Reply
Tahseen Mohammad
Learning poster
Posts: 54
Joined: Sun Oct 28, 2001 2:00 am
Location: Bangladesh

Can anyone explain => Misterious compiler error

Post 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:
Post Reply

Return to “Other words”