When I name a variable "index" in my C++11 code, it successfully compiles with MinGW in CodeBlocks on my PC.
However, on any online compiler/IDE (in this case, Ideone), I get a compile-time error.
How can I make my compiler and/or IDE identify reserved words and prevent me from using them by accident?
I know it's a minor problem, and I could easily circumvent it by "misspelling" variable names (as I am doing now; e.g. prevy instead of prev), but I would still like to fix it.