error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

How come the compiler suddenly gives this error when it had compiled just a few minutes ago.

const  bitset <3> empty = 0, pawn = 1, rook = 2, knight = 3;
const  bitset <3> bishop = 4, queen = 5, king = 6;
Assuming you are #including the <bitset> header, and have using namespace std;, there is nothing wrong with the code you posted.

The problem must be elsewhere.
Thanks. I had the using namespace erased. It works again.
Topic archived. No new replies allowed.