Language: C++

#include <iostream>
using namespace std;

int main(){
  string N;
  char c;
  cin >> N;
  int size;
  size = N.size();
  
  c = N[size];
    
  switch(c){
    case "2";
    case "4";
    case "5";
    case "7";
    case "9";
      cout << "hon" << endl;
      break;
    case "0";
    case "1";
    case "6";
    case "8";
      cout << "pon" << endl;
      break;
    case "3";
      cout << "bon" << endl;
      break;
  }  
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   14 |     case "2";
      |          ^~~
a.cc:14:10: error: could not convert '"2"' from 'const char [2]' to 'int'
   14 |     case "2";
      |          ^~~
      |          |
      |          const char [2]
a.cc:14:13: error: expected ':' before ';' token
   14 |     case "2";
      |             ^
      |             :
a.cc:15:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   15 |     case "4";
      |          ^~~
a.cc:15:10: error: could not convert '"4"' from 'const char [2]' to 'int'
   15 |     case "4";
      |          ^~~
      |          |
      |          const char [2]
a.cc:15:13: error: expected ':' before ';' token
   15 |     case "4";
      |             ^
      |             :
a.cc:16:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   16 |     case "5";
      |          ^~~
a.cc:16:10: error: could not convert '"5"' from 'const char [2]' to 'int'
   16 |     case "5";
      |          ^~~
      |          |
      |          const char [2]
a.cc:16:13: error: expected ':' before ';' token
   16 |     case "5";
      |             ^
      |             :
a.cc:17:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   17 |     case "7";
      |          ^~~
a.cc:17:10: error: could not convert '"7"' from 'const char [2]' to 'int'
   17 |     case "7";
      |          ^~~
      |          |
      |          const char [2]
a.cc:17:13: error: expected ':' before ';' token
   17 |     case "7";
      |             ^
      |             :
a.cc:18:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   18 |     case "9";
      |          ^~~
a.cc:18:10: error: could not convert '"9"' from 'const char [2]' to 'int'
   18 |     case "9";
      |          ^~~
      |          |
      |          const char [2]
a.cc:18:13: error: expected ':' before ';' token
   18 |     case "9";
      |             ^
      |             :
a.cc:21:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   21 |     case "0";
      |          ^~~
a.cc:21:10: error: could not convert '"0"' from 'const char [2]' to 'int'
   21 |     case "0";
      |          ^~~
      |          |
      |          const char [2]
a.cc:21:13: error: expected ':' before ';' token
   21 |     case "0";
      |             ^
      |             :
a.cc:22:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   22 |     case "1";
      |          ^~~
a.cc:22:10: error: could not convert '"1"' from 'const char [2]' to 'int'
   22 |     case "1";
      |          ^~~
      |          |
      |          const char [2]
a.cc:22:13: error: expected ':' before ';' token
   22 |     case "1";
      |             ^
      |             :
a.cc:23:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   23 |     case "6";
      |          ^~~
a.cc:23:10: error: could not convert '"6"' from 'const char [2]' to 'int'
   23 |     case "6";
      |          ^~~
      |          |
      |          const char [2]
a.cc:23:13: error: expected ':' before ';' token
   23 |     case "6";
      |             ^
      |             :
a.cc:24:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   24 |     case "8";
      |          ^~~
a.cc:24:10: error: could not convert '"8"' from 'const char [2]' to 'int'
   24 |     case "8";
      |          ^~~
      |          |
      |          const char [2]
a.cc:24:13: error: expected ':' before ';' token
   24 |     case "8";
      |             ^
      |             :
a.cc:27:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   27 |     case "3";
      |          ^~~
a.cc:27:10: error: could not convert '"3"' from 'const char [2]' to 'int'
   27 |     case "3";
      |          ^~~
      |          |
      |          const char [2]
a.cc:27:13: error: expected ':' before ';' token
   27 |     case "3";
      |             ^
      |             :