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

#include <bits/stdc++.h>
#define FOR(i,a,b) for(register int i=a;i<(b);++i)
#define ROF(i,a,b) for(register int i=a;i>=(b);--i)
using namespace std;
const int maxn = 5005;
const int M = 100005;
const int inf = 2147483647;
const double pi=3.1415926576;
const long long INF = 9223372036854775807ll;
typedef long long ll;

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

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;

void solve(){
string n;
	cin>>n;
   int len = strlen(num);
   char c = n[len-1];
   if(c=='2'||c=='4'||c=='5'||c=='7'||c=='9')
   	cout<<"hon\n";
   else if(c=='3')
   	cout<<"bon\n";
   else
   	cout<<"pon\n";
}
int main(){
	solve();
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:7:21: error: 'num' was not declared in this scope; did you mean 'enum'?
    7 |    int len = strlen(num);
      |                     ^~~
      |                     enum
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 << "hon" << endl;
    }



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

#include<bits/stdc++.h>
using namespace std;
int main(void){
  string n;
  cin>>n;
  char ch=substr(n.size()-1,n.size());
  if(ch=='3'){
    cout<<"bon"<<endl;
  }else if(ch=='0' || ch=='1' || ch=='6' || ch=='8'){
    cout<<"pon"<<endl;
  }else{
    cout<<"hon"<<endl;
  }
  return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'substr' was not declared in this scope; did you mean 'strstr'?
    6 |   char ch=substr(n.size()-1,n.size());
      |           ^~~~~~
      |           strstr
Language: C

#include<stdio.h>
int main()
{
  int n;
  scanf("%d",&n);
  int store=n%10;
  if(store==2 or store==4 or store==5 or store==7 or store==9)
  {
    printf("hon\n");
  }
  else if(store==0 or store==1 or store==6 or store==8)
  {
    printf("pon\n");
  }
  else
  {
    printf("bon\n");
  }
}
    

Compiler output:
main.c: In function 'main':
main.c:7:14: error: expected ')' before 'or'
    7 |   if(store==2 or store==4 or store==5 or store==7 or store==9)
      |     ~        ^~~
      |              )
main.c:11:19: error: expected ')' before 'or'
   11 |   else if(store==0 or store==1 or store==6 or store==8)
      |          ~        ^~~
      |                   )
Language: C

#pragma GCC optimize("O3")
#pragma GCC target("avx")
#include <bits/stdc++.h>
#define rep(i ,n) for(int i=0;i<(int)(n);++i)
#define repr(i ,n) for(int i=n;i>(int)(n);--i)
#define rep1(i ,n) for(int i=1;i<=(int)(n);++i)
#define ALL(a) a.begin(), a.end()
#define RSORT(a) sort(ALL(a),greater<>())
#define SORT(a) sort(ALL(a))
#define bit_check(bit, i) ((bit>>(i)) & 1)
#define PRINT(x) cout << (x) << endl;
#define ENDL cout << endl;
using namespace std;
typedef long long int i64;
typedef unsigned long long u64;
template<class T> using V = vector<T>;
using VI = V<int>;
const int INF = 2e9;
const i64 MOD = 1e9 + 7;

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;}
struct Init_On{
    Init_On(){
        cin.tie(nullptr);
        ios_base::sync_with_stdio(false);
        cout << fixed << setprecision(16);
    }
};

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

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

#include<stdio.h>
#include<conio.h>
int main(){
int number;
  scanf("%d",&number);
  if(number%10==2||number%10==4||number%10==5||number%10==7||number%10==9)
    printf("hon");
  else if(number%10==0||number%10==1||number%10==6||number%10==8)
    printf("pon");
  else if (number%10==3)
    printf("bon");
  return 0;
}

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

// Harry Singh**************************************************************************************************************

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
 using namespace std;
#define endl '\n'
#define ll long long 
#define maxn 100010
const int MOD = 1000000007;
bool prime[20000000+3]; 

void harry_singh(){

   
   int n;cin>>f;
   string s=to_string(f);
   int n=s.length();
   if(s[n-1]=='1' || s[n-1]=='0' ||s[n-1]=='6' ||s[n-1]=='8' )cout<<"pon\n";
   else if(s[n-1]=='2' || s[n-1]=='4' ||s[n-1]=='5' ||s[n-1]=='7' ||s[n-1]=='9' )cout<<"hon\n";
   else cout<<"bon\n";
}
 
int32_t main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
 
    int t=1;
    while (t--)
   harry_singh();
    return 0;
}

Compiler output:
a.cc: In function 'void harry_singh()':
a.cc:16:15: error: 'f' was not declared in this scope
   16 |    int n;cin>>f;
      |               ^
a.cc:18:8: error: redeclaration of 'int n'
   18 |    int n=s.length();
      |        ^
a.cc:16:8: note: 'int n' previously declared here
   16 |    int n;cin>>f;
      |        ^
Language: Java

import java.util.*;
import java.lang.*;
public class Solution{
public static void main(String afd[]){
 
Scanner ss=new Scanner(System.in);
  int n =ss.nextInt();
  n= n%10;
  
  if( n==2 || n==4 || n==5 || n==7 || n==9 ){
    System.out.println("hon"); }
  
  if( n==0 || n==1 || n==6 || n==8  ){
    System.out.println("pon"); }
  
 if( n==3 ){
   System.out.println("bon"); }

}}


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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    cin>>n;
    int s=0;
    s=n%10;
    if (s==3) cout<<"bon"<<endl;
    if (s==0||s==1||s==6||s==8) cout<<"pon"<<endl;
    if (s==2||s==4||s==5||s==7||s==9) cout<<"hon"<<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 <stdio.h>

int main()
{
	int a,N;

	scanf("%d",&N);

	if(N/10==0)
	{
		a=N%10;
	}
	else if(N/100==0)
	{
		a=N/10%10;
	}
	else
	{
		a=N/100%10;
	}
	
	if(a==2 || a==4 || a== 5 || a==7 || a=9)
	{
		printf("hon\n");
	}
	else if(a==3)
	{
		printf("bon\n");
	}
	else
	{
		printf("pon\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:46: error: lvalue required as left operand of assignment
   22 |         if(a==2 || a==4 || a== 5 || a==7 || a=9)
      |                                              ^
Language: C++

#include <iostream>
#include <string>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     cin >> n;
      |     ^~~
      |     std::cin
In file included 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:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         cout << "bon" << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |         cout << "bon" << endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |         cout << "pon" << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |         cout << "pon" << endl;
      |                          ^~~~
      |                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:16:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |         cout << "hon" << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |         cout << "hon" << endl;
      |                          ^~~~
      |                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include<algorithm>//sort,二分探索,など
#include<bitset>//固定長bit集合
#include<cmath>//pow,logなど
#include<complex>//複素数
#include<deque>//両端アクセスのキュー
#include<functional>//sortのgreater
#include<iomanip>//setprecision(浮動小数点の出力の誤差)
#include<iostream>//入出力
#include<iterator>//集合演算(積集合,和集合,差集合など)
#include<map>//map(辞書)
#include<numeric>//iota(整数列の生成),gcdとlcm(c++17)
#include<queue>//キュー
#include<set>//集合
#include<stack>//スタック
#include<string>//文字列
#include<unordered_map>//イテレータあるけど順序保持しないmap
#include<unordered_set>//イテレータあるけど順序保持しないset
#include<utility>//pair
#include<vector>//可変長配列
#define CO(a, b, c) ((a)?(b):(c))
#define rep(i, n) for(int i = 0; i < (n); ++i)

using namespace std;
typedef long long ll;

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

Compiler output:
main.c:1:9: fatal error: algorithm: No such file or directory
    1 | #include<algorithm>//sort,二分探索,など
      |         ^~~~~~~~~~~
compilation terminated.
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: break statement not within loop or switch
    8 |     break;
      |     ^~~~~
a.cc:12:5: error: break statement not within loop or switch
   12 |     break;
      |     ^~~~~
Language: C++

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

int main() {
    
  string N;
  char n;
  n = N.at(N.size());
  if (n='3'){
    cout << "bon" << endl;
  }else if (n='0' or n='1' or n='6' or n='8'){
    cout << "pon" << endl;
  }else{
    cout << "hon" << endl;
  }
  
}


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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    
   int n;
  cin>>n;
  int d=n%10;
  if(d==3)
    cout<<"bon"<<"\n";
  else if(d==2||d==4||d==7||d==5||d==9)
    cout<<"hon"<<"\n";
  else
    cout<<"pon\n";
  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 main(){
    long long int n;
    cin>>n;
    if(n%10==0|| n%10==6 || n%10==8 || n%10==1)cout<<"pon";
    else if(n%10==3)cout<<"bon";
    else cout<<"hon";
    }
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: request for member 'end' in 'N', which is of non-class type 'int'
    6 |   if(N.end == 2)
      |        ^~~
a.cc:8:13: error: request for member 'end' in 'N', which is of non-class type 'int'
    8 |   else if(N.end == 4)
      |             ^~~
a.cc:10:13: error: request for member 'end' in 'N', which is of non-class type 'int'
   10 |   else if(N.end == 5)
      |             ^~~
a.cc:12:13: error: request for member 'end' in 'N', which is of non-class type 'int'
   12 |   else if(N.end == 7)
      |             ^~~
a.cc:14:13: error: request for member 'end' in 'N', which is of non-class type 'int'
   14 |   else if(N.end == 9)
      |             ^~~
a.cc:16:13: error: request for member 'end' in 'N', which is of non-class type 'int'
   16 |   else if(N.end == 1)
      |             ^~~
a.cc:18:13: error: request for member 'end' in 'N', which is of non-class type 'int'
   18 |   else if(N.end == 6)
      |             ^~~
a.cc:20:13: error: request for member 'end' in 'N', which is of non-class type 'int'
   20 |   else if(N.end == 8)
      |             ^~~
a.cc:22:10: error: request for member 'end' in 'N', which is of non-class type 'int'
   22 |   else(N.end == 3)
      |          ^~~
Language: C

#include<bits/stdc++.h>

#define EB emplace_back
#define int long long
#define F first
#define S second
#define N 500005
#define all(x) x.begin(),x.end()
#define endl '\n'
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)


using namespace std;


int32_t main()
{
    IOS;

    int tt=1;
	//cin >> tt;
	while (tt--)
	{
		string s; cin >> s;
		int n = s.size();
		n = s[n - 1] - '0';
		if(n == 2 or n == 4 or n == 5 or n == 7 or n == 9) cout << "hon";
		else if(n == 3) cout << "bon";
		else cout << 	"pon";
		
	}
    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: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Solution {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String line = in.readLine();
        int input = Integer.valueOf(line);
        int a = input % 10;
        String ans = "";
        switch (a) {
            case 2:
            case 4:
            case 5:
            case 7:
            case 9:
                ans = "hon";
                break;
            case 0:
            case 1:
            case 6:
            case 8:
                ans = "pon";
                break;
            case 3:
                ans = "bon";
                break;
        }
        System.out.println(ans);


    }
}

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

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


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

  else
    cout << "hon" <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected ',' or ';' before 'if'
   11 |   if( a == 3)
      |   ^~
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else if ( a==0 || a==1 || a==6 || a==8)
      |   ^~~~
Language: C

#include <stdio.h>

int main() {
  int N <= 999;
  
  scanf("%d", &N);
  
  if (N % 10 == 0 && N % 10 == 1 && N % 10 == 6 && N % 10 == 8)
    printf("%d pon", N);
  else if (N % 10 == 3)
    printf("%d bon", N);
  else
    printf("%d hon", N);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
    4 |   int N <= 999;
      |         ^~
main.c:4:9: error: expected expression before '<=' token
main.c:6:16: error: 'N' undeclared (first use in this function)
    6 |   scanf("%d", &N);
      |                ^
main.c:6:16: 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%10==3)
    cout<<"bon"<<endl;
  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:6:6: error: expected ';' before 'n'
    6 |   cin n;
      |      ^~
      |      ;
Language: C++

#include<bits/stdc++.h>
using namespace std; 
#define mod 1000000007
#define N 100005
#define ll long long
#define ull unsigned long long
#define loop1(i, j, k, step) for (int i=j; i<k; i+=step)
#define loop(i, j, k) for (int i=j; i<k; i++) 
#define rloop1(i, j, k, step) for (int i=j; i>=k; i-=step)
#define rloop(i, j, k) for(int i=j; i>=k; i--)
#define rep(i, k) for(int i = (0); i < (k); i++ )
#define rrep(i, k) for(int i = k-1; i >= 0; i-- )

#define forall(it, l) for(auto it=l.begin(); it != l.end(); it++)
#define mp make_pair
#define pb push_back
#define pop pop_back
#define F first
#define S second
#define sz(x) (int)(x).size()
#define endl "\n"
#define Max (int)INT_MAX
#define Min (int)INT_MIN
#define MEM(a, b) memset(a, (b), sizeof(a))
#define fast_io ios_base::sync_with_stdio(0), cin.tie(NULL)
typedef vector<int> vi;
typedef pair<int,int> pi;
typedef vector<ll> vl;
typedef pair<ll,ll> pll;

void solve()
{
	int n,i,j,k,l,sum=0,ans=0;
	cin>>n;
	k=n%10;
  	if(k==2 || k==4|| k==5|| k==7||k==9)
      cout<<"hon\n";
 	else if(k==0 || k==1 || k==6 || k==8)
      cout<<"pon\n";
  	else{
      cout<<"bon\n";
}
int  main() 
{
	auto start=clock();
	fast_io;
    int t=1,cnt=0;
    //cin>>t;
    while(t--){
    	solve();
    }
    auto stop =clock();
    cerr<<"time taken:"<<double(stop-start)/double(CLOCKS_PER_SEC)<<" s"<<endl;
	return 0; 
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:43:10: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   43 | int  main()
      |          ^~
a.cc:43:10: note: remove parentheses to default-initialize a variable
   43 | int  main()
      |          ^~
      |          --
a.cc:43:10: note: or replace parentheses with braces to value-initialize a variable
a.cc:44:1: error: a function-definition is not allowed here before '{' token
   44 | {
      | ^
a.cc:55:2: error: expected '}' at end of input
   55 | }
      |  ^
a.cc:32:1: note: to match this '{'
   32 | {
      | ^
Language: C++

#include <bits/stdc++.h>
int main(){
  int num;
  switch (num) {
      cin >>　num;
		case 3:
			cout << "bon";
			break;
		case 0,1,6,8:
			cout << "pon"; 
			break;
		default:
			cout << "hon";
			break;
	}
	return 0;
}
}


Compiler output:
a.cc:5:13: error: extended character 　 is not valid in an identifier
    5 |       cin >>　num;
      |             ^
a.cc: In function 'int main()':
a.cc:5:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |       cin >>　num;
      |       ^~~
      |       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:5:13: error: '\U00003000num' was not declared in this scope
    5 |       cin >>　num;
      |             ^~~~~
a.cc:7:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |                         cout << "bon";
      |                         ^~~~
      |                         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:23: error: expected ':' before ',' token
    9 |                 case 0,1,6,8:
      |                       ^
      |                       :
a.cc:9:23: error: expected primary-expression before ',' token
a.cc: At global scope:
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
typedef long long ll;
#define _GLIBCXX_DEBUG
typedef vector<int> vec;
typedef vector<ll> lvec;
typedef vector<char> cvec;
typedef vector<double> dvec;
typedef pair<ll, ll> LP;
typedef tuple<ll, ll, ll> LT;
typedef pair<int, int> P;
typedef tuple<int, int, int> T;
#define fs first
#define sc second
int main(){
  int n;
  cin>>n;
  x=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:21:3: error: 'x' was not declared in this scope
   21 |   x=n%10;
      |   ^
Language: C++

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

#define int           long long
#define S             second
#define F             first
#define pb            push_back
#define all(c)        (c).begin(),(c).end()
#define rall(c)       (c).rbegin(),(c).rend() 
#define lb            lower_bound
#define si(c)         (int)((c).size())
#define lcm(a, b)      (a * (b / __gcd(a,b)))  
#define inf           (long long )(9e18)
#define endl          '\n'
#define mp            make_pair
#define time(s)       (double(clock()-s)/double(CLOCKS_PER_SEC))
#define debug(args...)    _F(#args, args)
#define vi            std::vector<int>
#define pii           pair<int, int> 
#define vpi           vector<pii >

clock_t start;
mt19937_64 rng(chrono::system_clock::now().time_since_epoch().count());

template<typename T> void _F(const char *name, T arg1){
    cerr << name << " = " << arg1 << endl;
}
template<typename T, typename... Args> void _F(const char *names, T arg1, Args... args){
    const char *name = strchr(names, ',');cerr.write(names, name-names) << " = " << arg1 << endl;_F(name+2, args...);
}
template<typename T1, typename T2> istream& operator>>(istream& in, pair<T1, T2> &q){ 
    in >> q.F >> q.S; return in;
}
template<typename T1, typename T2> ostream& operator<<(ostream& out, pair<T1, T2> &q){
    out << q.F << " " << q.S; return out;
}
template< typename T1, typename T2> pair<T1, T2> operator+(pair<T1, T2> p1, pair<T1, T2> p2){
    return {p1.F+p2.F, p1.S+p2.S};
}
template< typename T1, typename T2> pair<T1, T2> operator-(pair<T1, T2> p1, pair<T1, T2> p2){
    return {p1.F-p2.F, p1.S-p2.S};
}

void solve() {
    int 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"; 
    }
}

signed main(){

    ios_base::sync_with_stdio(0); 
    cin.tie(0); cout.tie(0);   

    int t = 1;
    start = clock(); 

    cout << fixed << setprecision(20);

    // #ifndef ONLINE_JUDGE
    // freopen("input.txt", "r", stdin); 
    // freopen("output.txt", "w", stdout);
    // freopen("error.txt", "w", stderr);
    // #endif
   
    //cin >> t;
    
    for(int i = 1; i <= t; ++i){
        //cout << "Case #" << i << ": "; 
        solve();
        //cout << endl;
    }
    //cerr << time(start);
    return 0;
}

Compiler output:
a.cc:51:16: warning: missing terminating " character
   51 |         cout <<"pon;
      |                ^
a.cc:51:16: error: missing terminating " character
   51 |         cout <<"pon;
      |                ^~~~~
a.cc: In function 'void solve()':
a.cc:52:5: error: expected primary-expression before '}' token
   52 |     } else{
      |     ^
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)
		cou	t<<"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:17: error: 'cou' was not declared in this scope; did you mean 'cos'?
   10 |                 cou     t<<"hon";
      |                 ^~~
      |                 cos
Language: C++

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

int main() {
    
  string N;
  char n
  n = N.at(N.size());
  if (n='3'){
    cout << "bon" << endl;
  }else if (n='0' or n='1' or n='6' or n='8'){
    cout << "pon" << endl;
  }else{
    cout << "hon" << endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected initializer before 'n'
    8 |   n = N.at(N.size());
      |   ^
a.cc:9:7: error: 'n' was not declared in this scope
    9 |   if (n='3'){
      |       ^
Language: C++

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:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> n;
      |         ^~~
a.cc:5:17: error: 'cout' was not declared in this scope
    5 |                 cout << "bon" << endl;
      |                 ^~~~
a.cc:5:34: error: 'endl' was not declared in this scope
    5 |                 cout << "bon" << endl;
      |                                  ^~~~
a.cc:7:17: error: 'cout' was not declared in this scope
    7 |                 cout << "pon" << endl;
      |                 ^~~~
a.cc:7:34: error: 'endl' was not declared in this scope
    7 |                 cout << "pon" << endl;
      |                                  ^~~~
a.cc:9:17: error: 'cout' was not declared in this scope
    9 |                 cout << "hon" << endl;
      |                 ^~~~
a.cc:9:34: error: 'endl' was not declared in this scope
    9 |                 cout << "hon" << endl;
      |                                  ^~~~
Language: C++

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

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

#include<>stdio.h>
int main()
{
  int n;
  scanf("%d",&n);
  int store=n%10;
  if(store==2 or store==4 or store==5 or store==7 or store==9)
  {
    printf("hon\n");
  }
  else if(store==0 or store==1 or store==6 or store==8)
  {
    printf("pon\n");
  }
  else
  {
    printf("bon\n");
  }
}
    

Compiler output:
main.c:1:11: warning: extra tokens at end of #include directive
    1 | #include<>stdio.h>
      |           ^~~~~
main.c:1:9: error: empty filename in #include
    1 | #include<>stdio.h>
      |         ^~
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf("%d",&n);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include<>stdio.h>
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf("%d",&n);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:14: error: expected ')' before 'or'
    7 |   if(store==2 or store==4 or store==5 or store==7 or store==9)
      |     ~        ^~~
      |              )
main.c:9:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |     printf("hon\n");
      |     ^~~~~~
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:19: error: expected ')' before 'or'
   11 |   else if(store==0 or store==1 or store==6 or store==8)
      |          ~        ^~~
      |                   )
main.c:13:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |     printf("pon\n");
      |     ^~~~~~
main.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   17 |     printf("bon\n");
      |     ^~~~~~
main.c:17:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin >> N;
  if(N.end == 2)
    cout << "hon" << endl;
  else if(N.end == 4)
    cout << "hon" << endl;
  else if(N.end == 5)
    cout << "hon" << endl;
  else if(N.end == 7)
    cout << "hon" << endl;
  else if(N.end == 9)
    cout << "hon" << endl;
  else if(N.end == 1)
    cout << "pon" << endl;
  else if(N.end == 6)
    cout << "pon" << endl;
  else if(N.end == 8)
    cout << "pon" << endl;
  else(N.end == 3)
    cout << "bon" << 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;
#define _GLIBCXX_DEBUG
int64_t MOD=10000007;

int main() {
  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:10:18: error: 'bon' was not declared in this scope
   10 |   if(N==3) cout<<bon;
      |                  ^~~
Language: C

#include <bits/stdc++.h>
using namespace std;
using vi=vector<int>;


int main(){
  int i,j;
  string N;
  cin>>N;
  if(N.at(N.size()-1)-'0'==3)cout<<"bon"<<endl;
  else if(N.at(N.size()-1)-'0'==0||N.at(N.size()-1)-'0'==1||N.at(N.size()-1)-'0'==6||N.at(N.size()-1)-'0'==8)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<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:14:18: error: expected ';' before '}' token
   14 |     printf("bon")
      |                  ^
      |                  ;
   15 |   }
      |   ~
Language: C++

#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math,O3")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include <bits/stdc++.h>
#define speed                   \
  ios_base::sync_with_stdio(0); \
  cin.tie(0);                   \
  cout.tie(0);
#define oprecision    \
  cout.precision(30); \
  cerr.precision(7);
#define ll long long
#define ld long double
#define ss string
#define pii pair<int, int>
#define pll pair<ll, ll>
#define forn(n) for (int i = 1; i <= n; i++)
#define forlr(l, r) \
  for (int i = l; (l > r ? i >= r : i <= r); (l > r ? i-- : i++))
#define pb push_back
#define pc __builtin_popcount
#define pcll __builtin_popcountll
#define mp make_pair
#define mt make_tuple
#define F first
#define S second
using namespace std;
int n;
ss a[500];
int main() {
  speed;
  oprecision;
  // code
  cin >> n;
  s[1] = s[0] = s[6] = s[8] = "pon";
  s[3] = "bon";
  s[2] = s[4] = s[5] = s[7] = s[9] = "hon";
  cout << a[n % 10];
  // endl
#ifndef ONLINE_JUDGE
  cerr << "\nTime elapsed: " << 1.0 * clock() / CLOCKS_PER_SEC << " s.\n";
#endif
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:3: error: 's' was not declared in this scope
   34 |   s[1] = s[0] = s[6] = s[8] = "pon";
      |   ^
Language: C

#include <iostream>
#include <string>
#include <vector>

using namespace std;

int N;

int main(){
    cin >> N;

    if(N >= 10 && 100 > N){
        N = N - (N / 10 * 10);
    }
    if(N >= 100){
        N = N - (N / 10 * 10);
    }

    string ans = "hon";
    if(N == 3){
        ans = "bon";
    }
    if(N == 0 || N == 1 || N == 6 || N == 8){
        ans = "pon";
    }

    cout << ans << endl;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> a;
      |   ^~~
      |   std::cin
In file included 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 >> "bon" >> endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     cout >> "bon" >> endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout >> "pon" >> endl;
      |     ^~~~
      |     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:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     cout >> "pon" >> endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout >> "hon" >> endl;
      |     ^~~~
      |     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:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout >> "hon" >> endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:40: error: 'tempp' was not declared in this scope; did you mean 'temp'?
   16 |     else if(temp==0||temp==1||temp==6||tempp==8)
      |                                        ^~~~~
      |                                        temp
Language: C

#include <bits/stdc++.h>
#define DEBUG fprintf(stderr, "Passing [%s] line %d\n", __FUNCTION__, __LINE__)
#define File(x) freopen(x".in","r",stdin); freopen(x".out","w",stdout)

using namespace std;

typedef long long LL;
typedef pair <int, int> PII;
typedef pair <int, PII> PIII;

inline int gi()
{
	int f = 1, x = 0; char c = getchar();
	while (c < '0' || c > '9') {if (c == '-') f = -1; c = getchar();}
	while (c >= '0' && c <= '9') x = x * 10 + c - '0', c = getchar();
	return f * x;
}

inline LL gl()
{
	LL f = 1, x = 0; char c = getchar();
	while (c < '0' || c > '9') {if (c == '-') f = -1; c = getchar();}
	while (c >= '0' && c <= '9') x = x * 10 + c - '0', c = getchar();
	return f * x;
}

const int INF = 0x3f3f3f3f, N = 300003, M = N << 1;

int n, m;
int a[N], b[N];
char s[N];

int main()
{
	//File("");
    cin >> n;
    m = n % 10;
    if (m == 2 || m == 4 || m == 5 || m == 7 || m == 9)
        puts("hon");
    else if (m == 0 || m == 1 || m == 6 || m == 8)
        puts("pon");
    else puts("bon");
	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>
#define ll long long int
#define ld long double
#define fast ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
using namespace std;
const int MOD = 1000000007; 
const int N = 200005;


int main(){
    fast;
    string s;
    cin >> s;
    if(s[s.size()-1] == '2' || s[s.size()-1] == '5' || s[s.size()-1] == '7' || s[s.size()-1] == '4' || s[s.size()-1] == '9')
        cout << "hon";
    else if(s[s.size()-1] == '0' || s[s.size()-1] == '1' || s[s.size()-1] == '6' || s[size() - 1] == '8')
        cout << "pon";
    else
        cout << "bon";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:91: error: no matching function for call to 'size()'
   16 |     else if(s[s.size()-1] == '0' || s[s.size()-1] == '1' || s[s.size()-1] == '6' || s[size() - 1] == '8')
      |                                                                                       ~~~~^~
In file included from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/range_access.h:262:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
  262 |     size(const _Container& __cont) noexcept(noexcept(__cont.size()))
      |     ^~~~
/usr/include/c++/14/bits/range_access.h:262:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:272:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
  272 |     size(const _Tp (&)[_Nm]) noexcept
      |     ^~~~
/usr/include/c++/14/bits/range_access.h:272:5: note:   candidate expects 1 argument, 0 provided
Language: C++

#include <iostream>
int main(){
  int num;
  switch (num) {
      cin >>　num;
		case 3:
			cout << "bon";
			break;
		case 0,1,6,8:
			cout << "pon"; 
			break;
		default:
			cout << "hon";
			break;
	}
	return 0;
}
}

Compiler output:
a.cc:5:13: error: extended character 　 is not valid in an identifier
    5 |       cin >>　num;
      |             ^
a.cc: In function 'int main()':
a.cc:5:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |       cin >>　num;
      |       ^~~
      |       std::cin
In file included 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:5:13: error: '\U00003000num' was not declared in this scope
    5 |       cin >>　num;
      |             ^~~~~
a.cc:7:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |                         cout << "bon";
      |                         ^~~~
      |                         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:23: error: expected ':' before ',' token
    9 |                 case 0,1,6,8:
      |                       ^
      |                       :
a.cc:9:23: error: expected primary-expression before ',' token
a.cc: At global scope:
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
using namespace std;

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

        
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected ';' before 'if'
   10 |   ans = X % 10
      |               ^
      |               ;
   11 |   if(ans == 3){
      |   ~~           
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else if(ans == 1){
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for(long long int i = 0; i < n; i++)
#define _rep(i, m, n) for(long long int i = m; i < n; i++)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
//const int N = 1000000;
const ll mod = 1000000007;
//using Graph = vector<vector<int>>;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};
const int dh[8] = {0, 0, 1, 1, 1, -1, -1, -1};
const int dw[8] = {1, -1, 0, 1, -1, 0, 1, -1};
  
ll gcd(ll A, ll B){
    if(B == 0)return A;
    return gcd(B, A % B);
}
ll lcm(ll A, ll B){
    return A * (B / gcd(A, B));
}
using Edge = pair<int,int>;
using Graph = vector<vector<Edge>>;
Graph G;
  
/*------------------------------------------------------------------*/

int main(){
    string s; cin >> s;
    int n = s.size();
    if(s[n - 1] == '2' or s[n - 1] == '4' or s[n - 1] == '5' 
    or s[n - 1] == '7' or s[n - 1] == '9'){
        cout << "hon" << endl;
    }else if(s[n - 1] == '0' or s[n - 1] == '1' or s[n - 1] == '6' 
    or s[n - 1] == '8'){
        cout << "pon" << endl;
    }else cout << "bon" << endl;
    
}acc submit

Compiler output:
a.cc:39:2: error: 'acc' does not name a type
   39 | }acc submit
      |  ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
#define rep(i, n) for(ll i=0; i<n; i++)
#define all(v) v.begin(), v.end()
#define vec vector
typedef long long ll;
const int INF = 1001001001;

/*　<<stringで読み込んだ数列を一桁ずつint型へ変換>>
 
    string str;
    int N[桁数];
 
    cin >> str;
 
    for (int i = 0; i < 桁数; ++i) {
 
        N[i] = (int)(str[i] - '0');  //str[i]　はchar型なのでchar→intへ変換
 
        //cout << N[i] << endl;  //確認のため表示
    }
*/
 


///////////////////////////////////////////////////////////////////////////


int main() {

    string N;
    cin >> N;


    if(N.at(N.size()-1) == "2" || N.at(N.size()-1) == "4" 
    || N.at(N.size()-1) == "5" || N.at(N.size()-1) == "7"
    || N.at(N.size()-1) == "9"){
        cout << "hon" << endl;
    }

    if(N.at(N.size()-1) == "0" || N.at(N.size()-1) == "1" 
    || N.at(N.size()-1) == "6" || N.at(N.size()-1) == "8"){
        cout << "pon" << endl;
    }

    else{
        cout << "bon" << endl;
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:36:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   36 |     if(N.at(N.size()-1) == "2" || N.at(N.size()-1) == "4"
      |        ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:36:52: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   36 |     if(N.at(N.size()-1) == "2" || N.at(N.size()-1) == "4"
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:37:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   37 |     || N.at(N.size()-1) == "5" || N.at(N.size()-1) == "7"
      |        ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:37:52: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   37 |     || N.at(N.size()-1) == "5" || N.at(N.size()-1) == "7"
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:38:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   38 |     || N.at(N.size()-1) == "9"){
      |        ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:42:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   42 |     if(N.at(N.size()-1) == "0" || N.at(N.size()-1) == "1"
      |        ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:42:52: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   42 |     if(N.at(N.size()-1) == "0" || N.at(N.size()-1) == "1"
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:43:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   43 |     || N.at(N.size()-1) == "6" || N.at(N.size()-1) == "8"){
      |        ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:43:52: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   43 |     || N.at(N.size()-1) == "6" || N.at(N.size()-1) == "8"){
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~