criyle/codenet-compile-errors huggingface dataset:
Language: C++

No Sub 撤退ダメ、絶対

Compiler output:
a.cc:1:8: error: extended character 、 is not valid in an identifier
    1 | No Sub 撤退ダメ、絶対
      |        ^
a.cc:1:1: error: 'No' does not name a type
    1 | No Sub 撤退ダメ、絶対
      | ^~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;

const inf INF = 1001001001;
vector<int> to[100005]

int main() {
    int n, m;
    cin >> n >> m;
    rep(i, m){
        int a, b;
        cin >> a >> b;
        --a; --b;
        to[a].push_back(b);
        to[b].push_back(a);
    }

    queue<int> q;
    vector<int> dist(n, INF);
    vector<int> pre(n, -1);
    dist[0] = 0;
    q.push(0);
    while(!q.empty()){
        int v = q.front(); q.pop();
        for (int u: to[v]){
            if(dist[u] != INF) continue;
            dist[u] = dist[v] + 1;
            pre[u] = v;
            q.push(u);
        }
    }

    cout << "Yes" << endl;
    rep(i, n){
        if(i == 0) continue;
        int ans = pre[i];
        ++ans;
        cout << ans << endl;
    }

    return 0;
}

Compiler output:
a.cc:7:7: error: 'inf' does not name a type; did you mean 'int'?
    7 | const inf INF = 1001001001;
      |       ^~~
      |       int
a.cc:10:1: error: expected initializer before 'int'
   10 | int main() {
      | ^~~
Language: C++

#include <iostream>
using namespace std;
int main(){
 int x,N;
  cin >> N;
  x=((N%100)%10);
  if(x==2 or x==4 x==5 or x==7 or x==9){
  cout << "hon" << endl;
  }
  else if(x== 0 or x == 6 or x == 8)
    cout << "pon" << endl;
  else cout << "bon" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ')' before 'x'
    7 |   if(x==2 or x==4 x==5 or x==7 or x==9){
      |     ~            ^~
      |                  )
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main(){
  int N,a;
  cin >> N;
  a = N%10;
  
  switch(a)
    case 2:
    case 4:
    case 5:
    case 7:
    case 9:
      cout << "hon";
    case 0:
    case 1:
    case 6:
    case 8:
      cout << "pon";
  break;
    case 3:
      cout << "bon";
  break;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: case label '0' not within a switch statement
   17 |     case 0:
      |     ^~~~
a.cc:18:5: error: case label '1' not within a switch statement
   18 |     case 1:
      |     ^~~~
a.cc:19:5: error: case label '6' not within a switch statement
   19 |     case 6:
      |     ^~~~
a.cc:20:5: error: case label '8' not within a switch statement
   20 |     case 8:
      |     ^~~~
a.cc:22:3: error: break statement not within loop or switch
   22 |   break;
      |   ^~~~~
a.cc:23:5: error: case label '3' not within a switch statement
   23 |     case 3:
      |     ^~~~
a.cc:25:3: error: break statement not within loop or switch
   25 |   break;
      |   ^~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main(){
  int N,a;
  cin >> N;
  a = N%10;
  
  switch(a)
    case 2:
    case 4:
    case 5:
    case 7:
    case 9:
      cout << "hon";
    case 0:
    case 1:
    case 6:
    case 8:
      cout << "pon";
    case 3:
      cout << "bon";
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: case label '0' not within a switch statement
   17 |     case 0:
      |     ^~~~
a.cc:18:5: error: case label '1' not within a switch statement
   18 |     case 1:
      |     ^~~~
a.cc:19:5: error: case label '6' not within a switch statement
   19 |     case 6:
      |     ^~~~
a.cc:20:5: error: case label '8' not within a switch statement
   20 |     case 8:
      |     ^~~~
a.cc:22:5: error: case label '3' not within a switch statement
   22 |     case 3:
      |     ^~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main(){
  int N,a;
  cin >> N;
  a = N%10;
  
  switch(a)
    case 2;
    case 4;
    case 5;
    case 7;
    case 9;
      cout << "hon";
    case 0;
    case 1;
    case 6;
    case 8;
      cout << "pon";
    case 3;
      cout << "bon";
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: expected ':' before ';' token
   11 |     case 2;
      |           ^
      |           :
a.cc:12:5: error: case label '4' not within a switch statement
   12 |     case 4;
      |     ^~~~
a.cc:12:11: error: expected ':' before ';' token
   12 |     case 4;
      |           ^
      |           :
a.cc:13:5: error: case label '5' not within a switch statement
   13 |     case 5;
      |     ^~~~
a.cc:13:11: error: expected ':' before ';' token
   13 |     case 5;
      |           ^
      |           :
a.cc:14:5: error: case label '7' not within a switch statement
   14 |     case 7;
      |     ^~~~
a.cc:14:11: error: expected ':' before ';' token
   14 |     case 7;
      |           ^
      |           :
a.cc:15:5: error: case label '9' not within a switch statement
   15 |     case 9;
      |     ^~~~
a.cc:15:11: error: expected ':' before ';' token
   15 |     case 9;
      |           ^
      |           :
a.cc:17:5: error: case label '0' not within a switch statement
   17 |     case 0;
      |     ^~~~
a.cc:17:11: error: expected ':' before ';' token
   17 |     case 0;
      |           ^
      |           :
a.cc:18:5: error: case label '1' not within a switch statement
   18 |     case 1;
      |     ^~~~
a.cc:18:11: error: expected ':' before ';' token
   18 |     case 1;
      |           ^
      |           :
a.cc:19:5: error: case label '6' not within a switch statement
   19 |     case 6;
      |     ^~~~
a.cc:19:11: error: expected ':' before ';' token
   19 |     case 6;
      |           ^
      |           :
a.cc:20:5: error: case label '8' not within a switch statement
   20 |     case 8;
      |     ^~~~
a.cc:20:11: error: expected ':' before ';' token
   20 |     case 8;
      |           ^
      |           :
a.cc:22:5: error: case label '3' not within a switch statement
   22 |     case 3;
      |     ^~~~
a.cc:22:11: error: expected ':' before ';' token
   22 |     case 3;
      |           ^
      |           :
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a;
  cin>>a;
  switch(a%10){
    case 3:
      cout<<"bon"<<endl;
      break;
    case 0:
    case 1:
    case 6:
    case 8:
      cout<<"pon"<<endl;
      break;
    case 2:
    case 4:
    case 5:
    case 7:
    case 9:
      cout<<"hon"<<endl;
      break;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:23:4: error: expected '}' at end of input
   23 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a;
  cin>>a;
  switch(a%10){
      case 3;
      cout<<"bon"<<endl;
      break;
      case 0;
      case 1;
      case 6;
      case 8;
      cout<<"pon"<<endl;
      break;
      case 2;
      case 4;
      case 5;
      case 7;
      case 9;
      cout<<"hon"<<endl;
      break;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected ':' before ';' token
    7 |       case 3;
      |             ^
      |             :
a.cc:10:13: error: expected ':' before ';' token
   10 |       case 0;
      |             ^
      |             :
a.cc:11:13: error: expected ':' before ';' token
   11 |       case 1;
      |             ^
      |             :
a.cc:12:13: error: expected ':' before ';' token
   12 |       case 6;
      |             ^
      |             :
a.cc:13:13: error: expected ':' before ';' token
   13 |       case 8;
      |             ^
      |             :
a.cc:16:13: error: expected ':' before ';' token
   16 |       case 2;
      |             ^
      |             :
a.cc:17:13: error: expected ':' before ';' token
   17 |       case 4;
      |             ^
      |             :
a.cc:18:13: error: expected ':' before ';' token
   18 |       case 5;
      |             ^
      |             :
a.cc:19:13: error: expected ':' before ';' token
   19 |       case 7;
      |             ^
      |             :
a.cc:20:13: error: expected ':' before ';' token
   20 |       case 9;
      |             ^
      |             :
a.cc:23:4: error: expected '}' at end of input
   23 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

#include<bits/stdc++.h>
using namespace std;
int main(){
    int n;
//    int a[5]={2,4,5,7,9};
//    int b[4]={0,1,6,8};
//    int c[1]={3};
    cin>>n;
    //cout<<n;
    vector<int>m;
    while(n>0){
        int k=n%10;
        m.push_back(k);
        n/=10;
        //cout<<n<<endl;
    }
    //cout<<n<<endl;
    //m.push_back(n);
    for(int i=0;i<m.size();i++){
        //cout<<m[i]<<" ";
        if(m[i]==3){
            cout<<"bon"<<endl;
            break;
        }
        else if(m[i]==0||m[i]==1||m[i]==6||m[i]==8){
            cout<<"pon"<<endl;
            break;
        } else {
            cout<<"hon"<<endl;
            break;
        }
    }
}


Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define pb push_back
using namespace std;



int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    int n;
    cin>>n;
    if(n<100 && n>9) n/=10;
    if(n>100) n/=100;
    string s;
    if(n == 2   || n== 4 || n == 5 || n==7 || n==9)  s = "hon";
    else
        if(n==3) s = "bon";
    else n="pon";
    cout<<n;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   20 |     else n="pon";
      |            ^~~~~
      |            |
      |            const char*
Language: C++

#include <iostream>
using namespace std;

const double Pi = 3.1415926;

int main()
{
    long long n;
    cin >> n;
    n = n % 10;
    if (n == 3)
        cout << "bon";
    else if (n == 0 || n == 1 || n == 6 || n == 8)
        cout << "pon";
    else
        cout << "hon";

    return 0；
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:12: error: unable to find numeric literal operator 'operator""\U0000ff1b'
   18 |     return 0；
      |            ^~~
a.cc:18:15: error: expected ';' before '}' token
   18 |     return 0；
      |               ^
      |               ;
   19 | }
      | ~
Language: C++

include <stdio.h>
int main(){
	int n,a;
	scanf("%d",&n);
	a=n%10;//找出个位上的数
	if(a==2||a==4||a==5||a==7||a==9)printf("hon\n");
	else if(a==0||a==1||a==6||a==8)printf("pon\n");
	else if(a==3)printf("bon\n");
	return 0;
}
 

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <stdio.h>
      | ^~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int N;
  cin>>N;
  int ans=N%10;
  if(ans=2||ans==4||ans==5||ans==7||ans==9)
  { 
    cout<<"hon"<<endl;
  }
  else if(ans==0||ans==1||ans==6||ans==8)
  {
    cout<<"pon"<<endl;
  }
  else (ans==3)
  {
  cout<<"bon"<<endl;
}
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:16: error: expected ';' before '{' token
   16 |   else (ans==3)
      |                ^
      |                ;
   17 |   {
      |   ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int N;
  cin>>N;
  int ans=N%10;
  if(ans=2||4||5||7||9)
  { 
    cout<<"hon"<<endl;
  }
  else if(ans=0||1||6||8)
  {
    cout<<"pon"<<endl;
  }
  else (ans==3)
  {
  cout<<"bon"<<endl;
}
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:16: error: expected ';' before '{' token
   16 |   else (ans==3)
      |                ^
      |                ;
   17 |   {
      |   ~
Language: C

#include<iostream>
using namespace std;
int main()
{
  int N;
  cin>>N;
  int ans=N%10;
  if(ans=2||4||5||7||9)
  { 
    cout<<"hon"<<endl;
  }
  else if(ans=0||1||6||8)
  {
    cout<<"pon"<<endl;
  }
  else (ans==3)
  {
  cout<<"bon"<<endl;
}
  return 0;
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int N;
  cin>>N;
  int ans=N%10;
  if(ans=2||4||5||7||9)
  { 
    cout<<"hon"<<endl;
  }
  else if(ans=0||1||6||8)
  {
    cout<<"pon"<<endl;
  }
  else (ans==3)
  {
  cout<<"bon"<<endl;
}
  return 0;
}

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
int manin(){
  int n;
  cin >> n;
  int a = n%10;
  
  if(a == 3){
	cout << "bon";
    return 0;
  }
  
  else if(a == 0 || a == 1 || a == 6 || a == 8){
	cout << "pon";
    return 0;
  
  else{
	cout << "hon":
    return 0;
  }
}

Compiler output:
a.cc: In function 'int manin()':
a.cc:17:3: error: expected '}' before 'else'
   17 |   else{
      |   ^~~~
a.cc:13:48: note: to match this '{'
   13 |   else if(a == 0 || a == 1 || a == 6 || a == 8){
      |                                                ^
a.cc:18:22: error: expected ';' before ':' token
   18 |         cout << "hon":
      |                      ^
      |                      ;
a.cc:21:1: warning: control reaches end of non-void function [-Wreturn-type]
   21 | }
      | ^
Language: C++

v#include <bits/stdc++.h>
#define ll long long
using namespace std;
int main()
{
    ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
   /// https://ideone.com/Fd5s8n
  string s;
  cin>>s;
   int x=s.length()-1;
  if(s[x]=='2' || s[x]=='4' || s[x]=='5'|| s[x]=='7' || s[x]=='9')
    cout << "hon" << endl;
    else if (s[x]=='3')
    cout << "bon" << endl;
  else
    cout << "pon" << endl;

    return 0;

}


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | v#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'v' does not name a type
    1 | v#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:6:5: error: 'ios' has not been declared
    6 |     ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
      |     ^~~
a.cc:6:33: error: 'cin' was not declared in this scope
    6 |     ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
      |                                 ^~~
a.cc:6:44: error: 'cout' was not declared in this scope
    6 |     ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
      |                                            ^~~~
a.cc:8:3: error: 'string' was not declared in this scope
    8 |   string s;
      |   ^~~~~~
a.cc:9:8: error: 's' was not declared in this scope
    9 |   cin>>s;
      |        ^
a.cc:12:22: error: 'endl' was not declared in this scope
   12 |     cout << "hon" << endl;
      |                      ^~~~
a.cc:14:22: error: 'endl' was not declared in this scope
   14 |     cout << "bon" << endl;
      |                      ^~~~
a.cc:16:22: error: 'endl' was not declared in this scope
   16 |     cout << "pon" << endl;
      |                      ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
	string n;
  	cin >> n;
  	int a = n.size();
  	if((n.at(a)=="0")||(n.at(a)=="1")||(n.at(a)=="6")||(n.at(a)=="8")) cout << "pon" << endl;
  	if(n.at(a) == "3") cout << "bon" << endl;
  	else cout << "hon" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |         if((n.at(a)=="0")||(n.at(a)=="1")||(n.at(a)=="6")||(n.at(a)=="8")) cout << "pon" << endl;
      |             ~~~~~~~^~~~~
a.cc:8:36: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |         if((n.at(a)=="0")||(n.at(a)=="1")||(n.at(a)=="6")||(n.at(a)=="8")) cout << "pon" << endl;
      |                             ~~~~~~~^~~~~
a.cc:8:52: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |         if((n.at(a)=="0")||(n.at(a)=="1")||(n.at(a)=="6")||(n.at(a)=="8")) cout << "pon" << endl;
      |                                             ~~~~~~~^~~~~
a.cc:8:68: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |         if((n.at(a)=="0")||(n.at(a)=="1")||(n.at(a)=="6")||(n.at(a)=="8")) cout << "pon" << endl;
      |                                                             ~~~~~~~^~~~~
a.cc:9:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         if(n.at(a) == "3") cout << "bon" << endl;
      |            ~~~~~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
    int N;
    cin >> N;
    
    N %= 10

    if(N == 3){
        cout << "bon" << endl;
    }
    else if(N == 0 || N == 1 || N == 6 || N == 8){
        cout << "pon" << endl;
    }
    else{
        cout << "hon" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before 'if'
    8 |     N %= 10
      |            ^
      |            ;
    9 | 
   10 |     if(N == 3){
      |     ~~      
a.cc:13:5: error: 'else' without a previous 'if'
   13 |     else if(N == 0 || N == 1 || N == 6 || N == 8){
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
#include<vector>
#include<string>
#include<stack>
#include<iostream>
#define fastio ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define ll long long
#define MOD 1000000007
#define vec(a) vector<int>a
using namespace std;



int main()
{
#ifndef ONLINE_JUDGE
	freopen("output.txt", "w", stdout);
	freopen("input.txt", "r", stdin);
#endif
		ll n,i,j,k;
		cin>>n;
		l=n%10;
		if(l==0 || l==1 || l==6 || l==8)
			cout<<"pon"<<"\n";
		else if(l==3)
			cout<<"bon"<<"\n";
		else 
			cout<<"hon\n";
		return 0;
}
	

Compiler output:
a.cc: In function 'int main()':
a.cc:22:17: error: 'l' was not declared in this scope
   22 |                 l=n%10;
      |                 ^
Language: C++

#include<bits/stdc++.h>
#include<vector>
#include<string>
#include<stack>
#include<iostream>
#define fastio ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define ll long long
#define MOD 1000000007
#define vec(a) vector<int>a
using namespace std;



int main()
{
#ifndef ONLINE_JUDGE
	freopen("output.txt", "w", stdout);
	freopen("input.txt", "r", stdin);
#endif
		ll n,i,j,k;
		cin>>n;
		l=n%10;
		if(l==0 || l==1 || l==6 || l==8)
			cout<<pon<<"\n";
		else if(l==3)
			cout<<bon<<"\n";
		else 
			cout<<"hon\n";
		return 0;
}
	

Compiler output:
a.cc: In function 'int main()':
a.cc:22:17: error: 'l' was not declared in this scope
   22 |                 l=n%10;
      |                 ^
a.cc:24:31: error: 'pon' was not declared in this scope; did you mean 'pow'?
   24 |                         cout<<pon<<"\n";
      |                               ^~~
      |                               pow
a.cc:26:31: error: 'bon' was not declared in this scope
   26 |                         cout<<bon<<"\n";
      |                               ^~~
Language: C

#include <stdio.h>

int a, b;

int main(){
	scanf("%d", &a);
	for(int i=1; a%10!=0; i++){
		a=a-1;
		b=i;
	}
	if(b==3)printf("bon");
	else if ((b==0) or (b==1) or (b==6) or (b==8)) printf("pon");
	else printf("hon");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:24: error: expected ')' before 'or'
   12 |         else if ((b==0) or (b==1) or (b==6) or (b==8)) printf("pon");
      |                 ~      ^~~
      |                        )
Language: C

#include <stdio.h>

int a, b;

int main(){
	scanf("%d", &a);
	for(int i=1; a%10!=0; i++){
		a=a-1;
		b=i;
	}
	if(b==3)printf("bon");
	else if (b==0 or b==1 or b==6 or b==8) printf("pon");
	else printf("hon");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:22: error: expected ')' before 'or'
   12 |         else if (b==0 or b==1 or b==6 or b==8) printf("pon");
      |                 ~    ^~~
      |                      )
Language: C++

#include <bits/stdc++.h>
using namespace std;

std::vector<int> GetDigits(int n) {
  std::vector<int> result;
  while (n) {
    result.push_back(n%10);
    n /= 10;
  }
  std::reverse(result.begin(), result.end());
  return result;
}

int main() {
  int n;
  std::cin >> n;
  std::vector<int> digits = GetDigits(n);
  if (digits[0] == 3) {
    std::cout << "bon" << std::endl;
  else if (digits[0] == 0 || digits[0] == 1 || digits[0] == 6 || digits[0] == 8) {
    std::cout << "pon" << std::endl;
  }
  else {
    std::cout << "hon" << std::endl;
  }
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:3: error: expected '}' before 'else'
   20 |   else if (digits[0] == 0 || digits[0] == 1 || digits[0] == 6 || digits[0] == 8) {
      |   ^~~~
a.cc:18:23: note: to match this '{'
   18 |   if (digits[0] == 3) {
      |                       ^
a.cc: At global scope:
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N;
  
  switch(N%10){
    case 2:
    case 4:
    case 5:
    case 7:
    case 9:
      cout << "hon" << endl;
      braek;
    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:15:7: error: 'braek' was not declared in this scope; did you mean 'brk'?
   15 |       braek;
      |       ^~~~~
      |       brk
a.cc:25:4: error: expected '}' at end of input
   25 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<string>
#include<iostream>
using namespace std;

int main(){
  string s;
  cin >> s;
  if(s.at(s.length()-1) == "3"){
    cout << "bon" << endl;
  }else if(s.at(s.length()-1) == "0" || s.at(s.length()-1) == "1" || s.at(s.length()-1) == "6" ||
           s.at(s.length()-1) == "8" ){
    cout << "pon" << endl;
  }else{
    cout << "hon" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(s.at(s.length()-1) == "3"){
      |      ~~~~~~~~~~~~~~~~~~~^~~~~~
a.cc:10:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   }else if(s.at(s.length()-1) == "0" || s.at(s.length()-1) == "1" || s.at(s.length()-1) == "6" ||
      |            ~~~~~~~~~~~~~~~~~~~^~~~~~
a.cc:10:60: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   }else if(s.at(s.length()-1) == "0" || s.at(s.length()-1) == "1" || s.at(s.length()-1) == "6" ||
      |                                         ~~~~~~~~~~~~~~~~~~~^~~~~~
a.cc:10:89: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   }else if(s.at(s.length()-1) == "0" || s.at(s.length()-1) == "1" || s.at(s.length()-1) == "6" ||
      |                                                                      ~~~~~~~~~~~~~~~~~~~^~~~~~
a.cc:11:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |            s.at(s.length()-1) == "8" ){
      |            ~~~~~~~~~~~~~~~~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string a;
  cin>>a;
  ll b=a.size();
  char c=a.at(b-1);
  if(c=='3'){
    cout<<"bon"<<endl;
  }
  else if(c=='0'||c=='1'||c=='6'||c=='8'){
    cout<<"pon"<<endl;
  }
  else{
    cout<<"hon"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

///                    بِسْمِ ٱللَّٰهِ ٱلرَّحْمَٰنِ ٱلرَّحِيمِ
///                   لآ اِلَهَ اِلّا اللّهُ مُحَمَّدٌ رَسُوُل اللّهِ




#include <bits/stdc++.h>

using namespace std;
#define endl "\n"

int main()
{
	ios::sync_with_stdio(0);cin.tie(0);
    int x;
    cin >> x;
    
    if(x % 10 == 3) cout << "bon" << endl;
    else if(x%10== 0||x%10== 1||x%10== 6||x%10=8) cout << "pon" << endl;
    else cout << "hon" << endl;



	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:19:41: error: lvalue required as left operand of assignment
   19 |     else if(x%10== 0||x%10== 1||x%10== 6||x%10=8) cout << "pon" << endl;
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  int N;
  cin >> N;
  int x;
  
  x = N % 100;
  x =% 10;
  
  if(x == 3){
    cout << "bon" << endl;
  }else if (x == 0 || x == 1 || x == 6 || x == 8){
    cout << "pon" << endl;
  }else{
    cout << "hon" << endl;
  }
  
  return 0;
}
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: expected primary-expression before '%' token
   10 |   x =% 10;
      |      ^
Language: C++

#include<iostream>
#include<vector>
using namespace std;

in main(){
  vector<char> N(3);
  for (int i = 0; i < 3; i++){
    cin >> N[i];
  }
  if(N[2] == 3){
    cout << "bon" << endl;
  }else if (N[2] == 0 || N[2] == 1 || N[2] == 6 || N[2] == 8){
    cout << "pon" << endl;
  }else{
    cout << "hon" << endl;
  }
  
  return 0;
}
  
  

Compiler output:
a.cc:5:1: error: 'in' does not name a type; did you mean 'int'?
    5 | in main(){
      | ^~
      | int
Language: C++

#include <bits/stdc++.h>
#include <ext/rope>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
//#pragma GCC optimize("Ofast")
//#pragma GCC optimize("unroll-loops")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
//#define int long long
#define pb push_back
#define x first
#define y second
#define mk(a,b) make_pair(a,b)
#define rr return 0
#define sqr(a) ((a)*(a))
#define all(a) a.begin(),a.end()


using namespace std;
using namespace __gnu_cxx;
using namespace __gnu_pbds;

using ll = long long;
using ld = long double;
using pii = pair<int, int>;
using pll = pair<ll, ll>;

template<class value, class cmp = less<value> >
using ordered_set = tree<value, null_type, cmp, rb_tree_tag, tree_order_statistics_node_update>;
template<class value, class cmp = less_equal<value> >
using ordered_multiset = tree<value, null_type, cmp, rb_tree_tag, tree_order_statistics_node_update>;
template<class key, class value, class cmp = less<key> >
using ordered_map = tree<key, value, cmp, rb_tree_tag, tree_order_statistics_node_update>;

/// find_by_order()
/// order_of_key()
mt19937 rng(chrono::high_resolution_clock::now().time_since_epoch().count());
inline int randll(int l = INT_MIN, int r = INT_MAX) {
    return uniform_int_distribution<int>(l, r)(rng);
}
const int INF = 1e9, MOD = 1e9 + 7; /// think


const int dx[] = {0, 0, 1, -1}, dy[] = {1, -1, 0, 0};
inline bool inside (int x, int y, int n, int m) {
    return 0 <= x && 0 <= y && x < n && y < m;
}

template<class T> bool upd_min (T &a, T b) {return a > b ? (a = b, true) : false; }
template<class T> bool upd_max (T &a, T b) {return a < b ? (a = b, true) : false; }


main()
{
    ios::sync_with_stdio(0);
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    cin >> n;
    n %= 10;
    if (n == 3) {
        cout << "bon\n";
    }
    else if (n == 0 || n == 1 || n == 6 || n == 8) {
        cout << "pon\n";
    }
    else cout << "hon\n";
}


Compiler output:
a.cc:52:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   52 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:58:12: error: 'n' was not declared in this scope; did you mean 'yn'?
   58 |     cin >> n;
      |            ^
      |            yn
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string n; 
  cin >> n;
  if (n[3]=="3") n="bon";
  if (n[3]=="0"||"1"||"6"||"8") n="pon";
  if (n[3]=="2"||"4"||"5"||"7"||"9") n="hon";
  cout << n << endl;
  return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if (n[3]=="3") n="bon";
a.cc:8:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (n[3]=="0"||"1"||"6"||"8") n="pon";
a.cc:9:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if (n[3]=="2"||"4"||"5"||"7"||"9") n="hon";
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n; 
  cin >> n;
  if (n[3]=="3") n="bon";
  if (n[3]=="0"||"1"||"6"||"8") n="pon";
  if (n[3]=="2"||"4"||"5"||"7"||"9") n="hon";
  cout << n << endl;
  return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: invalid types 'int[int]' for array subscript
    7 |   if (n[3]=="3") n="bon";
      |        ^
a.cc:7:20: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    7 |   if (n[3]=="3") n="bon";
      |                    ^~~~~
      |                    |
      |                    const char*
a.cc:8:8: error: invalid types 'int[int]' for array subscript
    8 |   if (n[3]=="0"||"1"||"6"||"8") n="pon";
      |        ^
a.cc:8:35: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    8 |   if (n[3]=="0"||"1"||"6"||"8") n="pon";
      |                                   ^~~~~
      |                                   |
      |                                   const char*
a.cc:9:8: error: invalid types 'int[int]' for array subscript
    9 |   if (n[3]=="2"||"4"||"5"||"7"||"9") n="hon";
      |        ^
a.cc:9:40: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    9 |   if (n[3]=="2"||"4"||"5"||"7"||"9") n="hon";
      |                                        ^~~~~
      |                                        |
      |                                        const char*
Language: C

#include <stdio.h>

int main()
{
     int x;
    scanf("%d",&x);
        x=x%10;
        if(n==3)
        {
            printf("bon");
            
        }
        else if(n==2 || n==4 || n==5 || n==7 || n==9)
        {
            printf("hon");
            
        }
        else
        {
            printf("pon");
            
        }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:12: error: 'n' undeclared (first use in this function)
    8 |         if(n==3)
      |            ^
main.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n; 
  cin >> n;
  if (n.at(1)=3) n="bon";
  if (n.at(1)=0||1||6||8) n="pon";
  if (n.at(1)=2||4||5||7||9) n="hon";
  cout << n << endl;
  return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: request for member 'at' in 'n', which is of non-class type 'int'
    7 |   if (n.at(1)=3) n="bon";
      |         ^~
a.cc:7:20: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    7 |   if (n.at(1)=3) n="bon";
      |                    ^~~~~
      |                    |
      |                    const char*
a.cc:8:9: error: request for member 'at' in 'n', which is of non-class type 'int'
    8 |   if (n.at(1)=0||1||6||8) n="pon";
      |         ^~
a.cc:8:29: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    8 |   if (n.at(1)=0||1||6||8) n="pon";
      |                             ^~~~~
      |                             |
      |                             const char*
a.cc:9:9: error: request for member 'at' in 'n', which is of non-class type 'int'
    9 |   if (n.at(1)=2||4||5||7||9) n="hon";
      |         ^~
a.cc:9:32: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    9 |   if (n.at(1)=2||4||5||7||9) n="hon";
      |                                ^~~~~
      |                                |
      |                                const char*
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  char n; 
  cin >> n;
  if (n.at(1)=3) n="bon";
  if (n.at(1)=0||1||6||8) n="pon";
  if (n.at(1)=2||4||5||7||9) n="hon";
  cout << n << endl;
  return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: request for member 'at' in 'n', which is of non-class type 'char'
    7 |   if (n.at(1)=3) n="bon";
      |         ^~
a.cc:7:20: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    7 |   if (n.at(1)=3) n="bon";
      |                    ^~~~~
      |                    |
      |                    const char*
a.cc:8:9: error: request for member 'at' in 'n', which is of non-class type 'char'
    8 |   if (n.at(1)=0||1||6||8) n="pon";
      |         ^~
a.cc:8:29: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    8 |   if (n.at(1)=0||1||6||8) n="pon";
      |                             ^~~~~
      |                             |
      |                             const char*
a.cc:9:9: error: request for member 'at' in 'n', which is of non-class type 'char'
    9 |   if (n.at(1)=2||4||5||7||9) n="hon";
      |         ^~
a.cc:9:32: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    9 |   if (n.at(1)=2||4||5||7||9) n="hon";
      |                                ^~~~~
      |                                |
      |                                const char*
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  char n; 
  cin >> n;
  if (n.at(1)=3) n="bon"
   if (n.at(1)=0||1||6||8) n="pon"
     if (n.at(1)=2||4||5||7||9) n="hon"
  cout << n << endl;
  return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: request for member 'at' in 'n', which is of non-class type 'char'
    7 |   if (n.at(1)=3) n="bon"
      |         ^~
a.cc:7:20: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    7 |   if (n.at(1)=3) n="bon"
      |                    ^~~~~
      |                    |
      |                    const char*
a.cc:7:25: error: expected ';' before 'if'
    7 |   if (n.at(1)=3) n="bon"
      |                         ^
      |                         ;
    8 |    if (n.at(1)=0||1||6||8) n="pon"
      |    ~~
Language: Java

import java.util.*;

class Main {
    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int digit_1 = N % 10;
        String read = "hon";
        int[] pon = {0, 1, 6, 8};
        List<Integer> ponNew = Arrays.asList(pon);

        if (digit_1 == 3) {
            read = "bon";
        } else if (ponNew.contains(digit_1)) {
            read = "pon";
        }
        System.out.println(read);

    }
}

Compiler output:
Main.java:10: error: incompatible types: inference variable T has incompatible bounds
        List<Integer> ponNew = Arrays.asList(pon);
                                            ^
    equality constraints: Integer
    lower bounds: int[]
  where T is a type-variable:
    T extends Object declared in method <T>asList(T...)
1 error
Language: C

#include <stdio.h>

int main(){
  int n;
  scanf("%d\n",&n);
  
  switch(n % 10){
      case:2
      case:4
      case:5
      case:7
      case:9
        puts("hon");
        break;
      case:0
      case:1
      case:6
      case:8
        puts("pon");
        break;
      case:3
        puts("bon");
        break;
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:11: error: expected expression before ':' token
    8 |       case:2
      |           ^
main.c:8:13: error: expected ';' before 'case'
    8 |       case:2
      |             ^
      |             ;
    9 |       case:4
      |       ~~~~   
main.c:15:11: error: expected expression before ':' token
   15 |       case:0
      |           ^
main.c:15:13: error: expected ';' before 'case'
   15 |       case:0
      |             ^
      |             ;
   16 |       case:1
      |       ~~~~   
main.c:21:11: error: expected expression before ':' token
   21 |       case:3
      |           ^
main.c:21:13: error: expected ';' before 'puts'
   21 |       case:3
      |             ^
      |             ;
   22 |         puts("bon");
      |         ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int n;
  cin >> n;

  int m = n % 10;
  if (m==2 || m==4 || m==5 || m==7 || m==9) {
    cout << "hon" << endl;
  }
  else if (m==3) {
    cout << "bon" << endl;
  }
  else
    cout << pon << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: 'pon' was not declared in this scope; did you mean 'pow'?
   16 |     cout << pon << endl;
      |             ^~~
      |             pow
Language: C++

#nclude<bits/stdc++.h>
using namespace std;
int main()
{
  int n,i
  cin>>n;
  i = n%10;
  if(i==2||i==4||i==5||i==7||i==9)
    cout<<"hon";
  else if(i==0||i==1||i==6||i==8)
    cout<<"pon";
  else
    cout<<"bon";
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #nclude; did you mean #include?
    1 | #nclude<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin>>n;
      |   ^~~
a.cc:7:3: error: 'i' was not declared in this scope
    7 |   i = n%10;
      |   ^
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout<<"hon";
      |     ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #nclude<bits/stdc++.h>
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout<<"pon";
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout<<"bon";
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#nclude<iostream>
using namespace std;
int main()
{
  int n,i
  cin>>n;
  i = n%10;
  if(i==2||i==4||i==5||i==7||i==9)
    cout<<"hon";
  else if(i==0||i==1||i==6||i==8)
    cout<<"pon";
  else
    cout<<"bon";
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #nclude; did you mean #include?
    1 | #nclude<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin>>n;
      |   ^~~
a.cc:7:3: error: 'i' was not declared in this scope
    7 |   i = n%10;
      |   ^
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout<<"hon";
      |     ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #nclude<iostream>
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout<<"pon";
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout<<"bon";
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int j = n%10;
    if (j == 2 or j == 4 or j == 5 or j == 7 or j == 9){
      System.out.println("hon");
    }else if (j == 0 or j == 1 or j == 6 or j == 8){
      System.out.println("pon");
    }else{
      System.out.println("bon");
    }
  }
}

Compiler output:
Main.java:7: error: ')' expected
    if (j == 2 or j == 4 or j == 5 or j == 7 or j == 9){
              ^
Main.java:7: error: ';' expected
    if (j == 2 or j == 4 or j == 5 or j == 7 or j == 9){
                   ^
Main.java:7: error: variable declaration not allowed here
    if (j == 2 or j == 4 or j == 5 or j == 7 or j == 9){
                  ^
Main.java:7: error: ';' expected
    if (j == 2 or j == 4 or j == 5 or j == 7 or j == 9){
                             ^
Main.java:7: error: ';' expected
    if (j == 2 or j == 4 or j == 5 or j == 7 or j == 9){
                                       ^
Main.java:7: error: ';' expected
    if (j == 2 or j == 4 or j == 5 or j == 7 or j == 9){
                                                 ^
Main.java:9: error: ')' expected
    }else if (j == 0 or j == 1 or j == 6 or j == 8){
                    ^
Main.java:9: error: ';' expected
    }else if (j == 0 or j == 1 or j == 6 or j == 8){
                         ^
Main.java:9: error: variable declaration not allowed here
    }else if (j == 0 or j == 1 or j == 6 or j == 8){
                        ^
Main.java:9: error: 'else' without 'if'
    }else if (j == 0 or j == 1 or j == 6 or j == 8){
     ^
Main.java:9: error: ';' expected
    }else if (j == 0 or j == 1 or j == 6 or j == 8){
                                   ^
Main.java:9: error: ';' expected
    }else if (j == 0 or j == 1 or j == 6 or j == 8){
                                             ^
Main.java:11: error: 'else' without 'if'
    }else{
     ^
13 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
  vector<int> A, B, C;
  A = {2, 4, 5, 7, 9};
  B = {0, 1, 6, 8};
  C = {3};
  int A, B;
  cin >> X;
  Y = X % 10;
  rep(i, 5) {
    if(A.at(i) == Y) {
      cout << "hon" << endl;
    }
  }
  rep(i, 4) {
    if(B.at(i) == Y) {
      cout << "pon" << endl;
    }
  }
  if(Y == 3) {
    cout << "bon" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: conflicting declaration 'int A'
    9 |   int A, B;
      |       ^
a.cc:5:15: note: previous declaration as 'std::vector<int> A'
    5 |   vector<int> A, B, C;
      |               ^
a.cc:9:10: error: conflicting declaration 'int B'
    9 |   int A, B;
      |          ^
a.cc:5:18: note: previous declaration as 'std::vector<int> B'
    5 |   vector<int> A, B, C;
      |                  ^
a.cc:10:10: error: 'X' was not declared in this scope
   10 |   cin >> X;
      |          ^
a.cc:11:3: error: 'Y' was not declared in this scope
   11 |   Y = X % 10;
      |   ^
Language: C

#include<stdio.h>
int mian(void){
 int n;
  scanf("%d",&n);
  switch(n%10){
    case 0:
    case 1:
    case 6:
    case 8:
      puts("pon");break; 
    case 2:
    case 4:
    case 5:
    case 7:
    case 9:
      puts("hon");break;
    default:puts("bon");break;
  }
  return 0;
}


Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include<stdio.h>
int mian(void){
 int n;
  scanf("%d",&n);
  switch(n%10){
    case 0:
    case 1:
    case 6:
    case 8:
      puts("pon"):break; 
    case 2:
    case 4:
    case 5:
    case 7:
    case 9:
      puts("hon"):break;
    default:puts("bon"):break;
  }
  return 0;
}

Compiler output:
main.c: In function 'mian':
main.c:10:18: error: expected ';' before ':' token
   10 |       puts("pon"):break;
      |                  ^
      |                  ;
main.c:16:18: error: expected ';' before ':' token
   16 |       puts("hon"):break;
      |                  ^
      |                  ;
main.c:17:24: error: expected ';' before ':' token
   17 |     default:puts("bon"):break;
      |                        ^
      |                        ;
Language: C

#include <stdio.h>

int main (void) {
    int n;
    scanf("%d", &n);

    swich (n % 10) {
    case 2;
    case 4;
    case 5;
    case 7;
    case 9;
            puts("hon");
            break;
    case 0;
    case 1;
    case 6;
    case 8;
            puts("pon");
            break;
    case 3;
            puts("bon");
            break;
    }

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:5: error: implicit declaration of function 'swich' [-Wimplicit-function-declaration]
    7 |     swich (n % 10) {
      |     ^~~~~
main.c:7:19: error: expected ';' before '{' token
    7 |     swich (n % 10) {
      |                   ^~
      |                   ;
Language: C

#include <stdio.h>

int main (void) {
  int n;
  scanf("%d", &n);

  swich (n % 10) {
    case 2;
    case 4;
    case 5;
    case 7;
    case 9;
            puts("hon");
            break;
    case 0;
    case 1;
    case 6;
    case 8;
            puts("pon");
            break;
    case 3;
            puts("bon");
            break;
  }

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'swich' [-Wimplicit-function-declaration]
    7 |   swich (n % 10) {
      |   ^~~~~
main.c:7:17: error: expected ';' before '{' token
    7 |   swich (n % 10) {
      |                 ^~
      |                 ;
Language: C

#include <stdio.h>

int main (void) {
  int n;
  scanf("%d", "%n");

  swich (n % 10) {
    case 2;
    case 4;
    case 5;
    case 7;
    case 9;
            puts("hon");
            break;
    case 0;
    case 1;
    case 6;
    case 8;
            puts("pon");
            break;
    case 3;
            puts("bon");
            break;
  }

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'swich' [-Wimplicit-function-declaration]
    7 |   swich (n % 10) {
      |   ^~~~~
main.c:7:17: error: expected ';' before '{' token
    7 |   swich (n % 10) {
      |                 ^~
      |                 ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
int N;
  cin >> N;
  int M == N % 10;
  
  if ( M == 2 || M == 4  || M == 5 || M == 7  || M ==  9){
    cout << "hon" << endl;
  }
  
    else if ( M ==  0|| M == 1  || M == 6 || M == 8 ){
    cout << "pon" << endl;
  }
  
  else {
    cout << "bon" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before '==' token
    6 |   int M == N % 10;
      |         ^~
a.cc:8:8: error: 'M' was not declared in this scope
    8 |   if ( M == 2 || M == 4  || M == 5 || M == 7  || M ==  9){
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  
  if( N % 10 = 2, 4 , 5 , 7 ,9){
    cout << "hon" << endl;
  }
  
  else if ( N % 10 = 0 , 1 ,6 ,8 ){
    cout << "pon" << endl;
  }
  
  else if ( N % 10  = 3 ) {
    cout << "bon" << endl;
  }
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: lvalue required as left operand of assignment
    7 |   if( N % 10 = 2, 4 , 5 , 7 ,9){
      |       ~~^~~~
a.cc:11:15: error: lvalue required as left operand of assignment
   11 |   else if ( N % 10 = 0 , 1 ,6 ,8 ){
      |             ~~^~~~
a.cc:15:15: error: lvalue required as left operand of assignment
   15 |   else if ( N % 10  = 3 ) {
      |             ~~^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  string N;
  cin >> N;
  if(N[N.size()-1] == "0" || N[N.size()-1] == "1" || N[N.size()-1] == "6" || N[N.size()-1] == "8")cout << "pon" <<endl;
  if(N[N.size()-1] ==  "3")cout << "bon" <<endl;
  else cout << "hon" <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(N[N.size()-1] == "0" || N[N.size()-1] == "1" || N[N.size()-1] == "6" || N[N.size()-1] == "8")cout << "pon" <<endl;
a.cc:7:44: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(N[N.size()-1] == "0" || N[N.size()-1] == "1" || N[N.size()-1] == "6" || N[N.size()-1] == "8")cout << "pon" <<endl;
a.cc:7:68: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(N[N.size()-1] == "0" || N[N.size()-1] == "1" || N[N.size()-1] == "6" || N[N.size()-1] == "8")cout << "pon" <<endl;
a.cc:7:92: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(N[N.size()-1] == "0" || N[N.size()-1] == "1" || N[N.size()-1] == "6" || N[N.size()-1] == "8")cout << "pon" <<endl;
a.cc:8:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(N[N.size()-1] ==  "3")cout << "bon" <<endl;