Ignoring spelling/typo errors, there is no reason why nested switch statements should not comply with the misra C++ Guidelines - that is common in a state machine - Rule 6-4-3
As an aside, MISRA does not "compile" - MISRA is a set of coding guidelines.