switch (a / 10 == 1){
case 1:
cout << " haryur " << endl;
break;
case 2:
cout << " erkuharyur " << endl;
break;
tiv.cpp:8:22: warning: switch condition has type bool [-Wswitch-bool]
switch ((a / 10 == 1)){
^
tiv.cpp:12:3: warning: case label value exceeds maximum value for type
case 2:
case 1:
cout << " haryur " << endl;
break;
case 2:
cout << " erkuharyur " << endl;
break;
tiv.cpp:8:22: warning: switch condition has type bool [-Wswitch-bool]
switch ((a / 10 == 1)){
^
tiv.cpp:12:3: warning: case label value exceeds maximum value for type
case 2: