Where did you add the `using namespace std;` statement? It's forbidden by CMS policy to have it in header files.