Language: C++

#include<iostream>;
using namespace std;
int main(){
  int N;
  int Ketasu;
  cin>>N;
  if(N<10){
    Ketasu=1}
  if(N<100){
    Ketasu=2}
  if(N<1000){
    Ketasu=3}
  if(Ketasu==1){
    switch(N){
      case 2||4||5||7||9:cout<<pon<<endl;
        break;
      case 0||1||6||8:cout<<hon<<endl;
        break;
      case 3:cout<<bon<<endl;
        break;
   
    }
  }
 if(Ketasu==2){
    switch(N%10){
      case 2||4||5||7||9:cout<<pon<<endl;
        break;
      case 0||1||6||8:cout<<hon<<endl;
        break;
      case 3:cout<<bon<<endl;
        break;
   
    }
  }
  if(Ketasu==3){
    switch(N%100){
      case 2||4||5||7||9:cout<<pon<<endl;
        break;
      case 0||1||6||8:cout<<hon<<endl;
        break;
      case 3:cout<<bon<<endl;
        break;
   
    }
  }
    
 }
  
  

Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include<iostream>;
      |                   ^
a.cc: In function 'int main()':
a.cc:8:13: error: expected ';' before '}' token
    8 |     Ketasu=1}
      |             ^
      |             ;
a.cc:10:13: error: expected ';' before '}' token
   10 |     Ketasu=2}
      |             ^
      |             ;
a.cc:12:13: error: expected ';' before '}' token
   12 |     Ketasu=3}
      |             ^
      |             ;
a.cc:15:32: error: 'pon' was not declared in this scope; did you mean 'popen'?
   15 |       case 2||4||5||7||9:cout<<pon<<endl;
      |                                ^~~
      |                                popen
a.cc:17:7: error: duplicate case value
   17 |       case 0||1||6||8:cout<<hon<<endl;
      |       ^~~~
a.cc:15:7: note: previously used here
   15 |       case 2||4||5||7||9:cout<<pon<<endl;
      |       ^~~~
a.cc:17:29: error: 'hon' was not declared in this scope
   17 |       case 0||1||6||8:cout<<hon<<endl;
      |                             ^~~
a.cc:19:20: error: 'bon' was not declared in this scope
   19 |       case 3:cout<<bon<<endl;
      |                    ^~~
a.cc:26:32: error: 'pon' was not declared in this scope; did you mean 'popen'?
   26 |       case 2||4||5||7||9:cout<<pon<<endl;
      |                                ^~~
      |                                popen
a.cc:28:7: error: duplicate case value
   28 |       case 0||1||6||8:cout<<hon<<endl;
      |       ^~~~
a.cc:26:7: note: previously used here
   26 |       case 2||4||5||7||9:cout<<pon<<endl;
      |       ^~~~
a.cc:28:29: error: 'hon' was not declared in this scope
   28 |       case 0||1||6||8:cout<<hon<<endl;
      |                             ^~~
a.cc:30:20: error: 'bon' was not declared in this scope
   30 |       case 3:cout<<bon<<endl;
      |                    ^~~
a.cc:37:32: error: 'pon' was not declared in this scope; did you mean 'popen'?
   37 |       case 2||4||5||7||9:cout<<pon<<endl;
      |                                ^~~
      |                                popen
a.cc:39:7: error: duplicate case value
   39 |       case 0||1||6||8:cout<<hon<<endl;
      |       ^~~~
a.cc:37:7: note: previously used here
   37 |       case 2||4||5||7||9:cout<<pon<<endl;
      |       ^~~~
a.cc:39:29: error: 'hon' was not declared in this scope
   39 |       case 0||1||6||8:cout<<hon<<endl;
      |                             ^~~
a.cc:41:20: error: 'bon' was not declared in this scope
   41 |       case 3:cout<<bon<<endl;
      |                    ^~~