Code:
#include "switchfileio.h"

using namespace std;
The using namespace is after the included header, either place before the header include or move into the header.