I\'m not a C++ expert, but as far as I know this code should fail due to size not being constant:
size
#include using namespace std;
That's a non-standard GCC extension - other compilers like Visual C++ don't support that.