Do you have "using namespace std" anywhere in your source code?