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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 | cin>>N;
      | ^~~
      | std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout<<"hon";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout<<"pon";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout<<"bon";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

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

Compiler output:
main.c:1:10: 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 main(){
    int n;
    cin >> n;
    int i=n%10;
    if (i==0 || i==1 || i==6 || i==8){
        cout << "pon" << endl;
    }
    else if (i==2 || i==4 || i==5 || i==7 || i==9){
        cout << "hon" << endl;
    }
    else (i==3){
        cout << "bon" << endl;
    }
    return 0;
}

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

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

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'elseif' was not declared in this scope
   11 |   elseif((n==0)||(n==1)||(n==6)||(n==8)){
      |   ^~~~~~
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else{
      |   ^~~~
Language: C

#include<iostream> 
#include<iomanip> 
#include<vector> 
#include<map> 
#include<set> 
#include<algorithm> 
#include<numeric> 
#include<limits> 
#include<bitset> 
#include<functional> 
#include<type_traits> 
#include<queue> 
#include<stack> 
#include<array> 
#include<random> 
#include<utility> 
#include<cstdlib> 
#include<ctime>
#define INT_MAX 2147483647
#define _LIBCPP_DEBUG 0
#define _GLIBCXX_DEBUG
#define rep(i,n) for (int i = 0; i < (n); ++i)	
using namespace std;



int max(int a,int b) {
	int max;
	if (a > b) max = a;
	else max = b;
	return max;
}
int min(int a, int b) {
	int min;
	if (a < b) min = a;
	else min = b;
	return min;
}


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

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>
#include<iostream>
#include<vector>
#include<queue>
#include<cmath>
#include<stack>
#include<algorithm>
#include<fstream>

#define int long long
#define fast ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define PI 3.14159265358979323846

// VECTOR DEFINITION 
#define vvi vector<vector<int>>
#define vvb vector<vector<bool>>
#define vi vector<int>
#define vl vector<long long>

//VECTOR PAIR
#define vpi vector<pair<int,int>>
#define mp make_pair
#define ff first
#define ss second
 
#define pb push_back

//MAXIMUM / MINIMUM ELEMENT IN VECTOR
#define mxe(v) *max_element(v.begin(),v.end())
#define mne(v) *min_element(v.begin(),v.end())

//SORTING OR REVERSING ANY VECTOR OR STRING
#define srt(a) sort(a.begin(),a.end());
#define rvr(a) reverse(a.begin(),a.end());
 
//LOOPS : s- start , e -end
#define loop(i,s,e) for(int i = s; i<e ; i++)
#define  rloop(i,s,e) for(int i = s; i>=e ;i--)
#define dloop(i,j,m,n) for(int i =0 ;i<m;i++){for(int j = 0;j<n;j++)} //double loop

typedef long long ll;
#define bits(n) __builtin_popcount(n);

#define YES cout<<"YES"<<endl;
#define NO cout<<"NO"<<endl;

using namespace std;

ll hcf(ll a,ll b){
    if(b==0) return a;
    return hcf(b,a%b);
}
 
ll lcm(ll a,ll b){
    return (a*b)/hcf(a,b);
}
void rdarr(vi& v, ll n){
    int x;
    loop(i,0,n){
        cin>>x;
        v.pb(x);
    }
}
void div(int n, vector<int>& di){
    for(int i =2;i<=sqrt(n);i++){
        if(n%i == 0){
            if(n/i !=i){
                di.pb(n/i);
            }
            di.pb(i);
        }
    }
    di.pb(1);
}
void solve(int t){
    int n;
    cin>>n;
    int r = n%10;
    if(r==2 || r==4 || r==5 || r==7 ||r==9) cout<<"hon"<<endl;
    else if(r==0 || r==1|| r==6 || r==8) cout<<"pon"<<ebdl;
    else cout<<"bon"<<endl;
   
}
signed main(){
   fast;
    // freopen("in.txt", "r", stdin);   
	// freopen("out.txt", "w", stdout);
    int t =1;
    // cin>>t;
    while(t--){
        solve(t);
    }
}

Compiler output:
a.cc: In function 'void solve(long long int)':
a.cc:80:55: error: 'ebdl' was not declared in this scope
   80 |     else if(r==0 || r==1|| r==6 || r==8) cout<<"pon"<<ebdl;
      |                                                       ^~~~
Language: C

#include<stdio.h>
#include<stdlib.h>

int max(int a,int b){
  if(a > b) return a;
  else return b;
}
int min(int a, int b){
  if(a < b) return a;
  else return b;
}

int main(){

  int n;
  scanf("%d",&n);

  if( n%10 ==2 |){
    puts("hon");
  }
    if( n%10 ==4 ){
    puts("hon");
  }
    if( n%10 ==5 ){
    puts("hon");
  }
    if( n%10 == 7 ){
    puts("hon");
  }
    if( n%10 ==9){
    puts("hon");
  }
    if( n%10 ==0){
    puts("pon");
  }
      if( n%10 ==( 1 ){
    puts("pon");
  }
      if( n%10 ==6 ){
    puts("pon");
  }
      if( n%10 ==8){
    puts("pon");
  }
    if( n%10 ==3){
    puts("bon");
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:17: error: expected expression before ')' token
   18 |   if( n%10 ==2 |){
      |                 ^
main.c:36:23: error: expected ')' before '{' token
   36 |       if( n%10 ==( 1 ){
      |         ~             ^
      |                       )
main.c:50:1: error: expected expression before '}' token
   50 | }
      | ^
Language: C++

#include<algorithm>
#include<iostream>
#include<vector>
#include<cstdio>
#include<cstring>
using namespace std;
#define ll long long
//{{{ read()
inline int read(){
	register int x=0,f=1;
	register char ch=getchar();
	while(ch<'0'||ch>'9'){
		if(ch=='-')	f=-1;
		ch=getchar();
	}
	while(ch>='0'&&ch<='9')	x=x*10+(ch^48),ch=getchar();
	return x*f;
}
//}}}
int main(){
	//freopen(".in","r",stdin);
	//freopen(".out","w",stdout);
	int n=read(),f1=0,f2=0,f3=0;
	while(n){
		int y=n%10;
		if(y==0||y==1||y==6||y==8)	f2=1;
		if(y==2||y==4||y==5||y==7||y==9)	f1=1;
		if(y==3)	f3=1;
	}
	if(f3)	puts("bon");
	else	if(f2)	puts("pon");
	else	pon("hon");
	return 0;
}


Compiler output:
a.cc: In function 'int read()':
a.cc:10:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   10 |         register int x=0,f=1;
      |                      ^
a.cc:10:26: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   10 |         register int x=0,f=1;
      |                          ^
a.cc:11:23: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   11 |         register char ch=getchar();
      |                       ^~
a.cc: In function 'int main()':
a.cc:32:17: error: 'pon' was not declared in this scope
   32 |         else    pon("hon");
      |                 ^~~
Language: C

#include<bits/stdc++.h>

using namespace std;




int main(){
	int s;
	cin >> s;
	s %= 10;
	if(s==2||s==4||s==5||s==7||s==9){
		cout << "hon" << endl;
	}
	else if(s==0||s==1||s==6||s==8){
		cout <<"pon"<<endl;
	}
	else{
		cout <<"bon"<<endl;
	}
}


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<stdio.h>
#include<stdlib.h>
#include<string.h>

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

Compiler output:
main.c:5:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    5 | int main{
      |         ^
Language: C

#include <bits/stdc++.h>
using namespace std;
int main () {
	int n; scanf("%d", &n);
	n %= 10;
	if (n == 3) printf("bon\n");
	else if (n == 0 || n == 1 || n == 6 || n == 8) printf("pon\n");
	else printf("hon\n");
	return 0;
}


Compiler output:
main.c:1:10: 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 main() {
  int n;
  cin >> n;
  
  if (n % 10 == 3){
    cout << "bon" << endl;
  }
  else if (n % 10 == 0 || n % 10 == 1 || n % 10 == 6 || n % 10 == 8){
    cout << "pon" << endl;
  }
  else{
    cout <<z "hon" <<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: 'z' was not declared in this scope
   15 |     cout <<z "hon" <<endl;
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep0(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
using ll = long long;

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

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

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


#define int         long long
#define fast        ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(0);
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
int mod = 1000000007;
int mod2 = 998244353;
/*
//int arr[100000]={};
int binarysearch(int a[],int n,int s)
{
    int l=0,h=n-1,mid,ans = -1;
    while(l<=h)
    {
        mid = l + (h-l)/2;
        if(a[mid]<=s)
        {
            ans = mid;
            l = mid + 1;
        }
        else h = mid - 1;
    }
    //ans = max(ans,k);
    return ans;
}
/*
bool isprime(int n)
{
    int x = sqrt(n),f=0;
    for(int i=2;i<=x;i++)
    {
        if(n%i==0)
        {
            f=1;
            break;
        }
    }
    if(f)
    return false;
    else return true;
}

int find1(int n)
{
    int mn = 9;
    int x = n,s;
    while(x>=1)
    {
        s = x%10;
        mn = min(mn,s);
        x /= 10;
    }
    return mn;
}

int find2(int n)
{
    int mn = 0;
    int x = n,s;
    while(x>=1)
    {
        s = x%10;
        mn = max(mn,s);
        x /= 10;
    }
    return mn;
}
int recurs(int n,int k)
{
    if(k==1)
        return n;
    if(find1(n)==0)
        return n;
    return recurs(n + (find1(n)*find2(n)) , --k);
}*/
signed main()
{
    fast;
    int t = 1;

    //cin>>t;

    while(t--)
    {
        int n=0,m=0,k=0,r=0,f=0,cnt=0,x=0,l=0,y=0,z=0,mx=0,sum=0,mini=INT_MAX,mn=INT_MAX;
        string s,str;
        cin>>n;
        if(n%10=3)
            s = "bon";
        else if(n%10==0||n%10==1||n%10==6||n%10==8)
            s = "pon";
            else s = "hon";
            cout<<s;
    }
	cerr << "\nTime elapsed : " << 1.0 * clock() / CLOCKS_PER_SEC << " sec \n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:91:13: error: lvalue required as left operand of assignment
   91 |         if(n%10=3)
      |            ~^~~
Language: Java

import java.util.*;
import java.util.function.*;
import java.math.*;
public class Main {
    public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		int N = s.nextInt();
		
		int n = N % 10;
		
		switch(n){
		case 0:
		case 1:
		case 6:
		case 8:
			System.out.println("pon");
			break;
			
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			System.out.println("hon");
			break;
			
		default:
			System.out.println("bon");
		}
		}
    }
}

Compiler output:
Main.java:32: error: class, interface, enum, or record expected
}
^
1 error
Language: C++

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

int main() {
  int N, dekasa, f;
  cin >> N;
  dekasa = N.size();
  f = dekasa - 1;
  if (f == 2 || f == 4 || f==5 || f==7 || f==9){
    cout << "hon" << endl;
  }
  else if (f==0 || f==1 || f==6 || f==8){
    cout << "pon" << endl;
  }
  else {
    cout << "bon" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: request for member 'size' in 'N', which is of non-class type 'int'
    7 |   dekasa = N.size();
      |              ^~~~
Language: Java

import java.util.*;
public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		String N = sc.next();
		char n = N.charAt(N.length - 1);
		String ans = " ";
		if(n == '2' || n == '4' || n == 5 || n == 7 || n == 9){
			ans = "hon";
		}else if(n == 3){
			ans = "bon";
		}else{
			ans = "pon";
		}
		System.out.println(ans);
	}
}

Compiler output:
Main.java:6: error: cannot find symbol
		char n = N.charAt(N.length - 1);
		                   ^
  symbol:   variable length
  location: variable N of type String
1 error
Language: C++

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

Compiler output:
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　string A;
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　cin >> A;
      | ^
a.cc:8:1: error: extended character 　 is not valid in an identifier
    8 | 　int B;
      | ^
a.cc:9:1: error: extended character 　 is not valid in an identifier
    9 | 　B=A.size();
      | ^
a.cc:10:1: error: extended character 　 is not valid in an identifier
   10 | 　if(A.at(B-1)=='3'){　cout << "bon" << endl;}else if(A.at(B-1)=='0' || A.at(B-1)=='1' || A.at(B-1)=='6' || A.at(B-1)=='8'){cout << "pon" << endl;}else{cout << "hon" << endl;}
      | ^
a.cc:10:22: error: extended character 　 is not valid in an identifier
   10 | 　if(A.at(B-1)=='3'){　cout << "bon" << endl;}else if(A.at(B-1)=='0' || A.at(B-1)=='1' || A.at(B-1)=='6' || A.at(B-1)=='8'){cout << "pon" << endl;}else{cout << "hon" << endl;}
      |                      ^
a.cc: In function 'int main()':
a.cc:6:1: error: '\U00003000string' was not declared in this scope
    6 | 　string A;
      | ^~~~~~~~
a.cc:7:1: error: '\U00003000cin' was not declared in this scope
    7 | 　cin >> A;
      | ^~~~~
a.cc:7:10: error: 'A' was not declared in this scope
    7 | 　cin >> A;
      |          ^
a.cc:8:1: error: '\U00003000int' was not declared in this scope
    8 | 　int B;
      | ^~~~~
a.cc:9:1: error: '\U00003000B' was not declared in this scope
    9 | 　B=A.size();
      | ^~~
a.cc:10:11: error: 'B' was not declared in this scope
   10 | 　if(A.at(B-1)=='3'){　cout << "bon" << endl;}else if(A.at(B-1)=='0' || A.at(B-1)=='1' || A.at(B-1)=='6' || A.at(B-1)=='8'){cout << "pon" << endl;}else{cout << "hon" << endl;}
      |           ^
a.cc:10:1: error: '\U00003000if' was not declared in this scope
   10 | 　if(A.at(B-1)=='3'){　cout << "bon" << endl;}else if(A.at(B-1)=='0' || A.at(B-1)=='1' || A.at(B-1)=='6' || A.at(B-1)=='8'){cout << "pon" << endl;}else{cout << "hon" << endl;}
      | ^~~~
a.cc:10:47: error: 'else' without a previous 'if'
   10 | 　if(A.at(B-1)=='3'){　cout << "bon" << endl;}else if(A.at(B-1)=='0' || A.at(B-1)=='1' || A.at(B-1)=='6' || A.at(B-1)=='8'){cout << "pon" << endl;}else{cout << "hon" << endl;}
      |                                               ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define fastio cin.tie(NULL); cout.tie(NULL); ios_base::sync_with_stdio(0)
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<vector<int>> matrix;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
#define all(c) c.begin(),c.end()
#define mp make_pair
#define pb push_back
#define f first
#define int ll
#define tcase int t; cin>> t; for( ; t; --t)
#define s second
#define endl '\n'
const int MAX = 1e6+1;
const int INF = 0x3f3f3f3f;
const double PI = acos(-1);
const double DEG = 180/PI;
const int MOD = 1e9+7;
int mod(int x, int m){ if(x >= 0) return x % m; if(-x < m) return m-(-x); return mod(x%m, m);}
int gcd (int a, int b) {while(b){a = mod(a, b); swap(a, b);} return a;}
int lcm (int a, int b) {return a / gcd(a, b) * b;}
int fexp(int base, int exp, int m){
	int total = 1;
	while(exp > 0){
		if(exp % 2 == 1){
			total = mod(((mod(total, m)) * (mod(base, m))), m);
			exp--;
		}
		base= mod((mod(base, m) * mod(base, m)), m);
		exp /= 2;
	}
	return mod(total, m);
}

int n;


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 <bits/stdc++.h>
using namespace std;
using ll=long long;
#define _GLIBCXX_DEBUG
#define FOR(i,a,b) for(ll i=a;i<b;i++)
#define rep(i,n) FOR(i,0,n)
const ll INF = 9223372036854775807;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else if(n == 0||n == 1) {
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define l1 long long 
int main(){int t,j; cin >> t; int r=t%10;
 if(r==2 || r==4 ||r==5 ||r==7 ||r==9)cout<<"hon";
 else if(r==3)cout<<"bon";
 else cout<<"pon";
}
}


Compiler output:
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

#include<bits/stdc*+.h>
using namespace std;
int main(){int N;cin>>N;if(N%10==3)cout<<'b';else if(N%10==0||N%10==1||N%10==6||N%10==8)cout<<'p';else cout<<'h';
           cout<<"on"<<endl;}

Compiler output:
a.cc: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 rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
 
int main() {
    int n;
    cin >> n;
    int n = n % 10;
    if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9) {
        cout << "hon";
    } else if (n == 0 || n == 1 || n == 6 || n == 8) {
        cout << "pon";
    }else {
        cout << "bon";
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: redeclaration of 'int n'
   10 |     int n = n % 10;
      |         ^
a.cc:8:9: note: 'int n' previously declared here
    8 |     int n;
      |         ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:49: error: 'cput' was not declared in this scope
    8 |   else if(x == 0 || x == 1 || x == 6 || x == 8) cput<<"pon"<<endl;
      |                                                 ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int MOD = 1e9 + 7;
int main()
{
	int n;
	sync_with_stdio(false),cin.tie(0);
	cin >> n;
	int x=n%10;
	if(x==2||x==4||x==5||x==7||x==9) cout << "hon" << endl;
	else if(x==0||x==1||x==6||x==8) cout << "hon" << endl;
	else if(x==3) cout << "hon" << endl;
	return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'sync_with_stdio' was not declared in this scope
    8 |         sync_with_stdio(false),cin.tie(0);
      |         ^~~~~~~~~~~~~~~
Language: C++

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

#define ll long long
#define ld long double
#define db double
#define pb push_back
#define nl '\n'
#define X first
#define Y second
#define nimble ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define all(v) (v).begin(),(v).end()
#define mod(x,m) ((((x)%(m))+(m))%(m))
#define _sz(x) (int)x.size()
#define rep(i,a,b) for(int i=a;i<b;i++)
#define repv(v) for(int i=0;i<_sz(v);i++)
#define rep1(i,b,a) for(int i=b;i>=a;i--)
#define preci(x) fixed<<setprecision(x)
#define tc int tt=1;cin>>tt;while(tt--)

#define TRACE
#ifdef TRACE
#define see(...) __f(#__VA_ARGS__,__VA_ARGS__)
template <typename Arg1>
void __f(const char* name, Arg1&& arg1){
	cerr<<name<<" : "<<arg1<<nl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args){
    const char* comma=strchr(names+1,',');cerr.write(names,comma-names)<<" : "<<arg1<<" | ";__f(comma+1, args...);
}
#else
#endif

int inf=0x3f3f3f3f;
ll infl=0x3f3f3f3f3f3f3f3fLL;
ld infd=1.0/0.0;
const ll MOD=1e9+7;// 998244353 // = (119<<23)+1
const db pi=2*acos(0.0);

int main(){
    nimble
    string s;
    cin>>s;
    int n=_sz(s)-1
    if(s[n]=='3'){
        cout<<"bon";
    }else if(s[n]=='0'||s[n]=='1'||s[n]=='6'||s[n]=='8'){
        cout<<"pon";
    }
    else cout<<"hon";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:46:5: error: expected ',' or ';' before 'if'
   46 |     if(s[n]=='3'){
      |     ^~
a.cc:48:6: error: 'else' without a previous 'if'
   48 |     }else if(s[n]=='0'||s[n]=='1'||s[n]=='6'||s[n]=='8'){
      |      ^~~~
Language: C++


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

int main(){
	int N;
  cin >> N;
  n %= 1000;
	if(N == 2 || N == 4 || N ==5 || N ==7 || N == 9){
      cout << "hon" << endl;
    }else if(N == 0 || N == 1 || N == 6 || N == 8){
      cout << "pon" << endl;
    }else{
      cout << "bon" << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'n' was not declared in this scope
    8 |   n %= 1000;
      |   ^
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
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>;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: 'N' was not declared in this scope
   10 |   if(N%10 == 3) cout << "bon" << endl;
      |      ^
Language: C

#include <stdio.h>
int main()
{
  int N;
  scanf("%d",&N);

  if(n % 2 == 0;n % 4 ==0;n % 7 == 0;n % 9 == 0)
  printf("hon");
  else if(n % 3)
  printf("bon");
  else
  printf("pon");

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:6: error: 'n' undeclared (first use in this function)
    7 |   if(n % 2 == 0;n % 4 ==0;n % 7 == 0;n % 9 == 0)
      |      ^
main.c:7:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:16: error: expected ')' before ';' token
    7 |   if(n % 2 == 0;n % 4 ==0;n % 7 == 0;n % 9 == 0)
      |     ~          ^
      |                )
Language: C++

#include <iostream>
using namespace std;
int main(){
  stirng s;
  cin >> s;
  char a = s[s.length()-1];
  if(a=='2'||a=='4'||a=='5'||a=='7'||a=='9'){
    cout << "hon" << endl;
  }else if(a=='3'){
    cout << "bon" << endl;
  }else{
    cout << "pon" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'stirng' was not declared in this scope
    4 |   stirng s;
      |   ^~~~~~
a.cc:5:10: error: 's' was not declared in this scope
    5 |   cin >> s;
      |          ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define endl "\n"
#define F first
#define S second
#define B begin()
#define E end()
#define PB push_back
#define int long long

typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<vi> vii;

const int maxn = 1e5;
const int OO = 1e18;

int32_t main(){
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	
	string s;
	cin >> s;
	if(s[s.size()-1] == '3')
	cout << "bon";
	else if(s[s.size()-1] == '0' or  s[s.size()-1] == '1'or s[s.size()-1] == '6' or s[s.size()-1] == '8')
	cout << "pon";
	else
	cout << "hon";
	
	
	return 0;
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:30:59: error: unable to find character literal operator 'operator""or' with 'char' argument
   30 |         else if(s[s.size()-1] == '0' or  s[s.size()-1] == '1'or s[s.size()-1] == '6' or s[s.size()-1] == '8')
      |                                                           ^~~~~
a.cc:30:64: error: expected ')' before 's'
   30 |         else if(s[s.size()-1] == '0' or  s[s.size()-1] == '1'or s[s.size()-1] == '6' or s[s.size()-1] == '8')
      |                ~                                               ^~
      |                                                                )
Language: C++

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

#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
typedef long long ll;
//typedef long long int;
const ll M = 1000000007;
ll A, B, C, D, G, H, N, L, K, P, Q, R, W, X, Y, Z;
string S, T;

signed main(){
	std::cin >> N;
	if(N%10==3){std::cout << "bon" << std::endl;
	else if(N%10==0||N%10==1||N%10==6||N%10==8){std::cout << "pon" << std::endl;}
	else {std::cout << "hon" << std::endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: expected '}' before 'else'
   14 |         else if(N%10==0||N%10==1||N%10==6||N%10==8){std::cout << "pon" << std::endl;}
      |         ^~~~
a.cc:13:20: note: to match this '{'
   13 |         if(N%10==3){std::cout << "bon" << std::endl;
      |                    ^
Language: C++

/*  UntilDeathDoesUsApart
    DO   NOT   GIVE   UP!
*/

#include <bits/stdc++.h>

using namespace std;

#define inc(a)           a.begin(), a.end()
#define dec(a)           a.rbegin(), a.rend()
#define Unique(n)        (n).erase(unique(in(n)), (n).end())
#define what_is(x)       cerr << #x << " is " << x << '\n';
#define to(i, a, n)      for(int i=a; i<n; i++)
#define fr(i, a, n)      for(int i=a; i>=n; i--)
#define read(arr, l, r)  for(int i=l; i<r; cin >> arr[i++])
#define prnt(arr, l, r)  for(int i=l; i<r; cout << arr[i++] << " \n"[i==r])

typedef long long ll;
typedef long double ld;

int main(){
    ios_base::sync_with_stdio(0);
    cin.tie(0), cout.tie(0);

    int n;
    n %= 10;

    if(n==2 || n==4 || n==5 || n==7 || n==9)
        cout << "hon";
    else if(!n || n==1 || n==6 || n==8)
        cout << "pon";
    else cout "bon";

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:14: error: expected ';' before string constant
   32 |     else cout "bon";
      |              ^~~~~~
      |              ;
Language: C++

// In the name of god
#include <bits/stdC++.h>
#pragma GCC optimze("02")
using namespace std;
using ll=long long;
const ll maxn=1e5+5,inf=1e18+18;
ll n,m,a;
int main(){
	ios::sync_with_stdio(false) , cin.tie(0) , cout.tie(0);
	cin>>n;
	if(n%10==3)cout<<"bon";
	else if(n%10==0||n%10==1||n%10==6||n%10==8)cout<<"pon";
	else cout<<"hon";
}


Compiler output:
a.cc:2:10: fatal error: bits/stdC++.h: No such file or directory
    2 | #include <bits/stdC++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;

public class MainA {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		// 整数の入力
		int n = sc.nextInt();
		n = n % 10;
		
		if (n == 3) {
			System.out.println("bon");
		} else if(n == 0 || n == 1 || n == 6 || n == 8) {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		}

        sc.close();
	}
}

Compiler output:
Main.java:3: error: class MainA is public, should be declared in a file named MainA.java
public class MainA {
       ^
1 error
Language: C++

#include<bits/stdc++.h>

using namespace std;


int main() {
	int n;
    cin>>n;
    n=n%10
    if(n==2||n==4||n==5||n==7||n==9)cout<<"hon";
    else if(n==0||n==1||n==6||n==8)cout<<"pon";
    else cout<<"bon";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected ';' before 'if'
    9 |     n=n%10
      |           ^
      |           ;
   10 |     if(n==2||n==4||n==5||n==7||n==9)cout<<"hon";
      |     ~~     
a.cc:11:5: error: 'else' without a previous 'if'
   11 |     else if(n==0||n==1||n==6||n==8)cout<<"pon";
      |     ^~~~
Language: C

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

Compiler output:
main.c:1:10: 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 main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    
    int n;
    cin >> n;
    
    if(n % 10 == 2 || n % 10 == 4 || n % 10 == 5 || n % 10 == 7 || n % 10 = 9)
        cout <<"hon";
    else
    if(n % 10 == 0 || n % 10 == 1 || n % 10 == 6 || n % 10 == 8)
    cout << "pon";
    else
    cout <<"bon";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:65: error: lvalue required as left operand of assignment
   13 |     if(n % 10 == 2 || n % 10 == 4 || n % 10 == 5 || n % 10 == 7 || n % 10 = 9)
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
using namespace std;
int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false); 
    int n;
    cin>>n;
    n%=10;
    if(n==3){
        cout<<"bon";
    }else if(n==0||n==1 ||n==6 ||n==8){
        cout<<"pon";
    } else{
        cout<<hon;
    }

    

}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:15: error: 'hon' was not declared in this scope
   29 |         cout<<hon;
      |               ^~~
Language: C++

#include <iostream>
#include <vector>
#include <math.h>
#include <iomanip>//cout << fixed << setprecision() <<
#include <set>
#include <map>
using ll = long long;
using namespace std;

int main(void){
    int n,n2;
    cin>>n;
    n2=n%10;
    if(n2==2 || n2==4||n2==5||n2==7||n2==9){
        cout<<"hon";
    }else if(n2==0||n2==1||n2==6||n2==8){
        cout<<"pon";
    }else{
        cout<<"bon"
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:20: error: expected ';' before '}' token
   19 |         cout<<"bon"
      |                    ^
      |                    ;
   20 |     }
      |     ~
Language: C++

#include <iostream>
#include <bits/stdc++.h>

using namespace std;

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

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

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

int main() {
  int n=0;
  cin>>n;
  int q=n%10;
  
  if(q==2||q==4||q==5||q==7||q==9){
    cout<<"hon";
  }else if(q==0||q==1||q=6||q==8){
    cout<<"pon";
  }else{
    cout<<"bon";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: lvalue required as left operand of assignment
   12 |   }else if(q==0||q==1||q=6||q==8){
      |            ~~~~~~~~~~^~~
Language: C

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

int main() {
  int N; cin >>N;
  int i = N % 10;
  string ans = "hon";
  if (i == 3) ans = "bon";
  else if (i == 0 || i == 1 || i == 6 || i == 8) ans = "pon";
  cout << ans << endl;

  return 0;
}


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

N = int(input())
if N % 10 in (2, 3, 5, 7, 9):
    print('hon')
elif N% 10 in (0, 1, 6, 8):
    print('pon')
else:
    print('bon')

Compiler output:
a.cc:3:11: warning: multi-character character constant [-Wmultichar]
    3 |     print('hon')
      |           ^~~~~
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('pon')
      |           ^~~~~
a.cc:7:11: warning: multi-character character constant [-Wmultichar]
    7 |     print('bon')
      |           ^~~~~
a.cc:1:1: error: 'N' does not name a type
    1 | N = int(input())
      | ^
Language: C

#include <iostream>

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

	if (N % 10 == 3) {
		printf("bon\n");
	}
	else if ((N % 10 == 0) || (N % 10 == 1) || (N % 10 == 6) || (N % 10 == 8)) {
		printf("pon\n");
	}
	else {
		printf("hon\n");
	}

}

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

#include<bits/stdc++/h>
using namespace std;
typedef long long ll;
const int MOD = 1e9 + 7;
int main()
{
	sync_with_stdio(false),cin.tie(0);
	cin >> n;
	int x=n%10;
	if(x==2||x==4||x==5||x==7||x==9) cout << "hon" << endl;
	else if(x==0||x==1||x==6||x==8) cout << "hon" << endl;
	else if(x==3) cout << "hon" << endl;
	return 0;
} 

Compiler output:
a.cc: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;
#define l1 long long 
const long double PI = acos(-1.0);
int main(){int t,j; cin >> t; int r=n%10;
 if(r==2 || r==4 ||r==5 ||r==7 ||r==9)cout<<"hon";
 else if(r==3)cout<<"bon";
 else cout<<"pon";
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:37: error: 'n' was not declared in this scope
    5 | int main(){int t,j; cin >> t; int r=n%10;
      |                                     ^
a.cc: At global scope:
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
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>;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:69: error: expected primary-expression before ',' token
   11 |   else if(N%10==0 || N%10==1 || N%10==6 || N%10==8 ) cout << "pon" <, endl;
      |                                                                     ^
Language: C

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

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

Compiler output:
main.c:1:10: 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 n;
int main(){
    cin >> n;
    if(n%10 == 0 || n%10 == 1 || n%10 == 6 || n %10 == 8){
        cout << "pon";
    }
    else if(n%10 == 3){
        cout << "bon";
    }
    else cout << "hon";
    return 0;
}

Compiler output:
main.c:1:10: 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;
using ll = long long;

int main() {
    string s;
    cin>>s;
    switch (s.back) {
        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;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: switch quantity not an integer
    9 |     switch (s.back) {
      |             ~~^~~~
Language: C++

#include<algorithm>
#include<bitset>
#include<cmath>
#include<complex>
#include <cstdio>
#include<deque>
#include<functional>
#include<iomanip>
#include<iostream>
#include<iterator>
#include<list>
#include<map>
#include<numeric>
#include<queue>
#include<set>
#include<stack>
#include<string>
#include<utility>
#include<vector>
#include <boost/multiprecision/cpp_int.hpp>


namespace mp = boost::multiprecision;

using namespace std;

typedef long long ll;
typedef unsigned long long ull;

// 最大公約数
ll GCD(ll a, ll b)
{
    if (a < 0)
        a = -a;
    if (b < 0)
        b = -b;
    if (b == 0)
        return a;
    else
        return GCD(b, a % b);
}

// 最小公倍数
ll LCM(ll a, ll b)
{
    ll g = GCD(a, b);
    return a / g * b;
}

int main()
{
    string i;
    cin >> i;
    switch (i[i.length - 1])
    {
    case '2':
    case '4':
    case '5':
    case '7':
    case '9':
        cout << "hon";
        break;
    case '0':
    case '1':
    case '6':
    case '8':
        cout << "pon";
        break;
    case '3':
        cout << "bon";
    default:
        break;
    }
    cout << endl;
    return 0;
}

Compiler output:
a.cc:20:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
   20 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main(){
  int n;
  cin >> n;
  if(n == 2 || n==4||N==5||n==7||n==9) cout << "hon" << endl;
  else if (n ==3) cout << "bon" << endl;
  else cout << "pon" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: 'N' was not declared in this scope
   11 |   if(n == 2 || n==4||N==5||n==7||n==9) cout << "hon" << endl;
      |                      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:43: error: expected primary-expression before '=' token
    9 |   else if(n%10==0||n%10==1||n%10==6||n%1===8)
      |                                           ^
Language: Java

import java.util.*;
 
public class Main {
	
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String S = sc.next();
    	char s = S.charAt(S.length()-1;
    	if (s == '3') {
    		System.out.println("bon");
    	} else if (s == '0' || s == '1' || s == '6' || s =='8') {
    		System.out.println("pon");
    	} else {
    		System.out.println("hon");
    	}
    }
}

Compiler output:
Main.java:8: error: ')' or ',' expected
    	char s = S.charAt(S.length()-1;
    	                              ^
1 error
Language: C++

#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
#define MOD  1000000007
#define inf  1e18
#define ll long long
#define multiply(x) x*x*(x-=1)

#define ar array
#define wt(x) int x;cin>>x;while(x--)
typedef tree<pair<int,int>,null_type,less<pair<int,int>>,rb_tree_tag,tree_order_statistics_node_update> pbds;
 void  c_p_c(){
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
 
#ifndef ONLINE_JUDGE
  freopen("input1.txt","r",stdin);
  freopen("output1.txt","w",stdout);
#endif
 
 
}
void solve(int l){

   int n,k;
   cin>>n>>k;
   int arr[n];
   string s;
   for(int i=0;i<n;i++){
    cin>>arr[i];
    
}

            




    cout<< "Case #"<<l<<": ";
    cout<<ans<<"\n";
   }


int32_t main() {
   c_p_c();
  
       int n;
       cin>>n;
       if(n%10==3){
        cout<<"bon";

       }
       else if(n%10==0||n%10==1||n%10==6||n%10==8){
        cout<<"pon";
       }
       else{
        cout<<"hon";
       }
        
        
    
    return 0;
 }

Compiler output:
a.cc: In function 'void solve(int)':
a.cc:42:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   42 |     cout<<ans<<"\n";
      |           ^~~
      |           abs
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <stack>
#include <queue>
#include <numeric>
#include <iomanip>
#include <map>
#include <set>
#include <deque>
#include <utility>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < n; i++)
#define repk(i, k, n) for (int i = k; i < n; i++)
#define MOD 1e9 + 7
#define INF 1e9
#define PIE 3.14159265358979323

template <class T>
inline bool chmin(T &a, T b) {if (a > b) {a = b; return true;} return false;}
template <class T>
inline bool chmax(T &a, T b) {if (a < b) {a = b; return true;} return false;}
template <class T>
T GCD(T a, T b) {if (b == 0) return a; else return GCD(b, a % b);}
template <class T>
inline T LCM(T a, T b) { return (a * b) / GCD(a, b);}

int main() {
    string n;
    cin >> n;
    char a = n[n.size() - 1];
    if (a=='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:35:12: warning: multi-character character constant [-Wmultichar]
   35 |     if (a=='3)'{
      |            ^~~~
a.cc: In function 'int main()':
a.cc:35:16: error: expected ')' before '{' token
   35 |     if (a=='3)'{
      |        ~       ^
      |                )
a.cc:43:1: error: expected primary-expression before '}' token
   43 | }
      | ^
Language: C++

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

int32_t main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int t=1,i,j;
    //cin>>t;
    while(t--)
    {
        int n,m,count=0,sum=0,maxi=0,mini=1e18;
        cin>>n;
      	int temp=n%10;
      if(temp==2 ||temp==4 ||temp==5 ||temp==7 ||temp==9 )
      {
        cout<<"hon";
    	}
      else if(temp==0 || temp==1 || temp==6 || temp==8)
      {
        cout<<"pon";
	  }
      else
      {
        cout<<"bon";
      }
    }

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:29:6: error: expected '}' at end of input
   29 |     }
      |      ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

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

#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
typedef long long ll;
//typedef long long int;
const ll M = 1000000007;
ll A, B, C, D, G, H, N, L, K, P, Q, R, W, X, Y, Z;
string S, T;

signed main(){
	std::cin >> N;
	if(N%10==3){std::cout << "bon" << std::endl;
	else if(N%10==0||N%10==1||N%10==6||N%10==8){std::cout << "pon" << std::endl;
	else {std::cout << "hon" << std::endl;
}}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: expected '}' before 'else'
   14 |         else if(N%10==0||N%10==1||N%10==6||N%10==8){std::cout << "pon" << std::endl;
      |         ^~~~
a.cc:13:20: note: to match this '{'
   13 |         if(N%10==3){std::cout << "bon" << std::endl;
      |                    ^
a.cc:15:9: error: expected '}' before 'else'
   15 |         else {std::cout << "hon" << std::endl;
      |         ^~~~
a.cc:14:52: note: to match this '{'
   14 |         else if(N%10==0||N%10==1||N%10==6||N%10==8){std::cout << "pon" << std::endl;
      |                                                    ^