GCC Debugging/g++/Errors/variable cannot appear in a constant-expression

Using a variable for a switch case statement
While a switch statement often use a variable for an argument, their case statements cannot use variables as arguments.

Solution: Make the case statement's argument a constant