// Code derived from Stroustrup's PPP2 book// § 4.4.1.3 Switch technicalities// -and beginning on p 107#include<iostream>usingstd::cin;usingstd::cout;// case labels must be constantsintmain(){// define alternatives:inty='y';// this is going to cause troubleconstexprcharn='n';//constexprcharm='?';cout<<"Do you like fish?\n";chara;cin>>a;switch(a){casen:// . . .break;casey:// error: variable in case label// . . .break;casem:// . . .break;case'n':// error: duplicate case label (n’s value is ‘n’)// . . .break;default:// . . .break;}}