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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.StringTokenizer;

public class Big {
    public static void main(String[] args) throws IOException{
        FastReader sc = new FastReader();
        String str = sc.next();
        char ch = str.charAt(str.length()-1);
        HashSet<Character> hon = new HashSet<>();
        hon.add('2');hon.add('4');hon.add('5');hon.add('7');hon.add('9');
        HashSet<Character> pon = new HashSet<>();
        pon.add('0');pon.add('1');pon.add('8');pon.add('6');
        HashSet<Character> bon = new HashSet<>();
        bon.add('3');
        if (hon.contains(ch)) System.out.println("hon");
        else if (pon.contains(ch)) System.out.println("pon");
        else if (bon.contains(ch)) System.out.println("bon");

    }

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }
}


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

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

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


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

#include <bits/stdc++.h>
#define rep(i,a,b) for(int i=int(a);i<int(b);++i)
#define SIZE 200005
#define INF 1000000005LL
#define MOD 1000000007
using namespace std;
typedef long long int ll;
typedef pair <int,int> P;
int main(){
    int n;
    //24579
    cin >> n;
    n %= 10;
    if(n==2or n==4 or n==5 or n==7 or n==9){
        cout << "hon" << endl;
    }else if(n==3){
        cout << "bon" << endl;
    }else{
        cout << "pon" << endl;
    }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:11: error: unable to find numeric literal operator 'operator""or'
   14 |     if(n==2or n==4 or n==5 or n==7 or n==9){
      |           ^~~
a.cc:14:14: error: expected ')' before 'n'
   14 |     if(n==2or n==4 or n==5 or n==7 or n==9){
      |       ~      ^~
      |              )
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:8:26: error: expected primary-expression before '|' token
    8 |     if(n==2||n==4||n==5|||n==7||n==9)
      |                          ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    4 |   int ichi:
      |           ^
main.c:4:11: error: expected expression before ':' token
main.c:6:3: error: 'ichi' undeclared (first use in this function)
    6 |   ichi = N % 10;
      |   ^~~~
main.c:6:3: 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;
  }
  else if (N % 10 == 0) {
    cout << "pon" << endl;
  }
  else if (N % 10 == 1) {
    cout << "pon" << endl;
  }
  else if (N % 10 == 6) {
    cout << "pon" << endl;
  }
  else if (N % 10 == 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 <bits/stdc++.h>
using namespace std;

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


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int a, b;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin>>a;
      |   ^~~
a.cc:7:3: error: 'b' does not name a type
    7 |   b=a%10;
      |   ^
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if(b==2||b==4||b==5||b==7||b==9){
      |   ^~
a.cc:11:3: error: expected unqualified-id before 'if'
   11 |   if(b==0||b==1||b==6||b==8){
      |   ^~
a.cc:14:3: error: expected unqualified-id before 'else'
   14 |   else{
      |   ^~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: request for member 'size' in 'N', which is of non-class type 'int'
   11 |   nagasa = N.size();
      |              ^~~~
a.cc:13:8: error: request for member 'at' in 'N', which is of non-class type 'int'
   13 |   if(N.at(nagasa - 1)==2){
      |        ^~
a.cc:16:8: error: request for member 'at' in 'N', which is of non-class type 'int'
   16 |   if(N.at(nagasa - 1)==4){
      |        ^~
a.cc:19:8: error: request for member 'at' in 'N', which is of non-class type 'int'
   19 |   if(N.at(nagasa - 1)==5){
      |        ^~
a.cc:22:8: error: request for member 'at' in 'N', which is of non-class type 'int'
   22 |   if(N.at(nagasa - 1)==7){
      |        ^~
a.cc:25:8: error: request for member 'at' in 'N', which is of non-class type 'int'
   25 |   if(N.at(nagasa - 1)==9){
      |        ^~
a.cc:28:8: error: request for member 'at' in 'N', which is of non-class type 'int'
   28 |   if(N.at(nagasa - 1)==0){
      |        ^~
a.cc:31:8: error: request for member 'at' in 'N', which is of non-class type 'int'
   31 |   if(N.at(nagasa - 1)==1){
      |        ^~
a.cc:34:8: error: request for member 'at' in 'N', which is of non-class type 'int'
   34 |   if(N.at(nagasa - 1)==6){
      |        ^~
a.cc:37:8: error: request for member 'at' in 'N', which is of non-class type 'int'
   37 |   if(N.at(nagasa - 1)==8){
      |        ^~
a.cc:40:8: error: request for member 'at' in 'N', which is of non-class type 'int'
   40 |   if(N.at(nagasa - 1)==3){
      |        ^~
Language: Java

import java.util.*;

public class A {

  static final String[] ponNum = new String[]{"0", "1", "6", "8"};
  static final String[] bonNum = new String[]{"3"};

  public static void main(String[] args) {
    /**
     * N 2,4,5,7,9
     * N 0,1,6,8
     * N 3
     */
    String N = args[0];
    String lastNum = N.substring(N.length - 1, N.length);
    if (Arrays.asList(ponNum).contains(lastNum)) {
      System.out.println("pon");
    } else if (Arrays.asList(bonNum).contains(lastNum)) {
      System.out.println("bon");
    } else {
      System.out.println("hon");
    }
  }
}

Compiler output:
Main.java:3: error: class A is public, should be declared in a file named A.java
public class A {
       ^
Main.java:15: error: cannot find symbol
    String lastNum = N.substring(N.length - 1, N.length);
                                  ^
  symbol:   variable length
  location: variable N of type String
Main.java:15: error: cannot find symbol
    String lastNum = N.substring(N.length - 1, N.length);
                                                ^
  symbol:   variable length
  location: variable N of type String
3 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:18: error: expected '}' at end of input
   16 |   cout << output;
      |                  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: Java

import java.util.Scanner;
public class Main{

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
      //数字の数を入力
		String n = sc.next();
	//n
      int len = n.length();
      switch(n.charAt(len -1 )){
          case:"2"
            case "4":
        case "5":
        case "7":
                  case:"9"
                    System.out.println("hon");break;
                    case:"0"
                      case:"1"
                        case:"6"
                          case:"8"
                            System.out.println("pon");break;
                            case:"3"
                              System.out.println("bon");break;
                              
                            
      }
      
	}

}


Compiler output:
Main.java:11: error: illegal start of expression
          case:"2"
              ^
Main.java:11: error: not a statement
          case:"2"
               ^
Main.java:11: error: ';' expected
          case:"2"
                  ^
Main.java:15: error: illegal start of expression
                  case:"9"
                      ^
Main.java:15: error: not a statement
                  case:"9"
                       ^
Main.java:15: error: ';' expected
                  case:"9"
                          ^
Main.java:17: error: illegal start of expression
                    case:"0"
                        ^
Main.java:17: error: not a statement
                    case:"0"
                         ^
Main.java:17: error: ';' expected
                    case:"0"
                            ^
Main.java:18: error: illegal start of expression
                      case:"1"
                          ^
Main.java:18: error: not a statement
                      case:"1"
                           ^
Main.java:18: error: ';' expected
                      case:"1"
                              ^
Main.java:19: error: illegal start of expression
                        case:"6"
                            ^
Main.java:19: error: not a statement
                        case:"6"
                             ^
Main.java:19: error: ';' expected
                        case:"6"
                                ^
Main.java:20: error: illegal start of expression
                          case:"8"
                              ^
Main.java:20: error: not a statement
                          case:"8"
                               ^
Main.java:20: error: ';' expected
                          case:"8"
                                  ^
Main.java:22: error: illegal start of expression
                            case:"3"
                                ^
Main.java:22: error: not a statement
                            case:"3"
                                 ^
Main.java:22: error: ';' expected
                            case:"3"
                                    ^
21 errors
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:4: error: expected '(' before 'else'
    8 | if else (N % 10 == 0,1,6,8);
      |    ^~~~
      |    (
main.c:10:4: error: expected '(' before 'else'
   10 | if else (N % 10 == 3);
      |    ^~~~
      |    (
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:4: error: 'n' was not declared in this scope
    8 |  a=n%10;
      |    ^
a.cc:9:24: error: lvalue required as left operand of assignment
    9 |  if(a=2 ||a=4||a=5||a=7||a=9)
      |                       ~^~~
a.cc:13:19: error: lvalue required as left operand of assignment
   13 |  if(a=1 ||a=0||a=6||a=8)
      |                  ~^~~
Language: C++

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










Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main ()
      | ^~~~
Language: C++

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

Compiler output:
a.cc:6:20: error: extended character 　 is not valid in an identifier
    6 |       std :: cin >>　num;
      |                    ^
a.cc: In function 'int main()':
a.cc:6:20: error: '\U00003000num' was not declared in this scope
    6 |       std :: cin >>　num;
      |                    ^~~~~
a.cc:10:11: error: expected ':' before ',' token
   10 |     case 0,1,6,8:
      |           ^
      |           :
a.cc:10:11: error: expected primary-expression before ',' token
Language: C

#include<bits/stdc++>
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++: No such file or directory
    1 | #include<bits/stdc++>
      |         ^~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main()
{
    int N;

    cin >> N;

    string ANS = "";

    string b = strmid(N, 0, 1);

    if (b == "2" || b == "4" || b == "5" || b == "7" || b == "9")
    {
        ANS = "hon";
    }
    else if (b == "0" || b == "1" || b == "6" || b == "8")
    {
        ANS = "pon";
    }
    else
    {
        ANS = "bon";
    }

    cout << ANS << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: 'strmid' was not declared in this scope; did you mean 'strtod'?
   14 |     string b = strmid(N, 0, 1);
      |                ^~~~~~
      |                strtod
Language: Java

package Atcoder;

import java.util.Scanner;

public class Practice {
    public  static  void main(String[] args){
        Scanner in = new Scanner(System.in);
        int num = in.nextInt();
        String string = String.valueOf(num);
        int statement = Integer.parseInt(String.valueOf(string.charAt(string.length()-1)));
        if (statement==2 || statement==4 ||statement==5 ||statement==7 ||
                statement==9){
            System.out.println("hon");
        }else if(statement==0&&statement==1&&statement==6&&statement==8){
            System.out.println("pon");
        }else if(statement==3){
            System.out.println("bon");
        }
    }
}


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

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

int main() {
	
	int a;

	cin >> a;

	if (a % 10 == 3) {
		cout << "bon" << endl;
	}

	elseif ((a % 10 == 0) || (a % 10 == 1) || (a % 10 == 6) || (a % 10 == 8)) {
		cout << "pon" << endl;
	}

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'elseif' was not declared in this scope
   15 |         elseif ((a % 10 == 0) || (a % 10 == 1) || (a % 10 == 6) || (a % 10 == 8)) {
      |         ^~~~~~
a.cc:19:9: error: 'else' without a previous 'if'
   19 |         else {
      |         ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:24: error: expected ';' before '}' token
   15 |       cout<<"pon"<<'\n'
      |                        ^
      |                        ;
   16 |     }
      |     ~
Language: Java

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

public class A {
    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 A is public, should be declared in a file named A.java
public class A {
       ^
1 error
Language: Java

import java.util.*;

public class A {

  static final String[] ponNum = new String{"0", "1", "6", "8"};
  static final String[] bonNum = new String{"3"};

  public static void main(String[] args) {
    /**
     * N 2,4,5,7,9
     * N 0,1,6,8
     * N 3
     */
    String N = args[0]
    String lastNum = N.substring(N.length - 1, N.length);
    if (Arrays.asList(ponNum).contains(lastNum)) {
      System.out.println("pon");
    } else if (Arrays.asList(bonNum).contains(lastNum)) {
      System.out.println("bon");
    } else {
      System.out.println("hon");
    }
  }
}

Compiler output:
Main.java:5: error: '(' or '[' expected
  static final String[] ponNum = new String{"0", "1", "6", "8"};
                                           ^
Main.java:5: error: not a statement
  static final String[] ponNum = new String{"0", "1", "6", "8"};
                                            ^
Main.java:5: error: ';' expected
  static final String[] ponNum = new String{"0", "1", "6", "8"};
                                               ^
Main.java:6: error: '(' or '[' expected
  static final String[] bonNum = new String{"3"};
                                           ^
Main.java:6: error: not a statement
  static final String[] bonNum = new String{"3"};
                                            ^
Main.java:6: error: ';' expected
  static final String[] bonNum = new String{"3"};
                                               ^
Main.java:14: error: ';' expected
    String N = args[0]
                      ^
7 errors
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected ';' before 'if'
    8 |   ans = N % 10
      |               ^
      |               ;
    9 | 
   10 |     if(ans == 3){
      |     ~~
Language: C++

#include<bits/stdc++.h>
#define MOD (1e9 +7)
#define rep(i, x, n) for(int i = x; i < n; i++)
#define repr(i, x, n) for(int i = x; i > n; i--)

#define ll long long
const long long iinf = 1e18;
const int inf = 1e9; 
using namespace std;


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

}

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

    // int t; cin >> t;
    // int i = 1;
    // while(t--){
    //     //cout << "Case " << i++ << ": " ;
    //     solve();
    //     cout  << endl;
    // }
    solve();

    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:17:8: error: 'c' was not declared in this scope
   17 |     if(c == 0 || c == 1 || c == 6 || c == 8) cout << "pon";
      |        ^
Language: C++

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

int main(){
  int N;
  cin >> N;
  if(N >= 100){
    int h = N/100;
    N -= 100*h;
  }
  if(N >= 10){
    int t = N/10;
    N -= 10*t;
  }
  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:1:9: fatal error: bits/std.h: No such file or directory
    1 | #include<bits/std.h>
      |         ^~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int n;
    cin>>n;
    int res=n%10;
    if(res==2||res==4||res==5||res==7||res==9){
        cout<<"hon"<<endl;
    }
    else if(res==0||res==1||res==6||res==8){
        cout<<"pon"<<endl;
    }
    else if(res==3){
        cout<<"bon"endl;
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: unable to find string literal operator 'operator""endl' with 'const char [4]', 'long unsigned int' arguments
   17 |         cout<<"bon"endl;
      |               ^~~~~~~~~
Language: C++

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



Compiler output:
a.cc:6:20: error: extended character 　 is not valid in an identifier
    6 |       std :: cin >>　num;
      |                    ^
a.cc: In function 'int main()':
a.cc:6:20: error: '\U00003000num' was not declared in this scope
    6 |       std :: cin >>　num;
      |                    ^~~~~
a.cc:10:23: error: expected ':' before ',' token
   10 |                 case 0,1,6,8:
      |                       ^
      |                       :
a.cc:10:23: error: expected primary-expression before ',' token
a.cc: At global scope:
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
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";
	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(){
  cin >> N;
    if (N%10=2||N%10=4||N%10=5||N%10=7||N%10=9){
      cout << "hon" << endl;
    }
  	if (N%10=0||N%10=1||N%10=6||N%10=8){
      cout << "pon" << endl;
    }
  	if (N%10=3){
      cout << "bon" << endl;
    }
}


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

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

// 最小公倍数を求める
int euqlid (int a, int b){
  int temp;
  temp = a % b;
  if(temp == 0)return b;
  return euqlid(b,temp);
}
ll conbination(ll a,ll b){
  ll u = 1;
  ll d = 1;
  while(b != 0){
    u *= a;
    d *= b;
    a--;
    b--;
  }
  return u / d;
}
int strtoint(char s){
  return (int(s-'0'));
}
int fact(int n){
  if(n == 1)return 1;
  return n * fact(n-1);
  }


int main(){
  string n;
  cin >> n;
  string ans;
  int len = n.size()-1;
  if(strtoint(n[len]) == 0 or strtoint(n[len]) == 1 or strtoint(n[len]) ==6 or strtoint(n[len]) ==8)ans = "pon";
  else if(strtoint(n[len]) == 2 or strtoint(n[len]) ==4 or strtoint(n[len]) ==5 or strtoint(n[len]) ==7 or strtoint(n[len]) ==9)ans = "hon";
  else if(strtoint(n[len]) == 3)ans = "bon";
  cout << ans << 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++

int main()
{
	string N;
	cin >> N;

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'string' was not declared in this scope
    3 |         string N;
      |         ^~~~~~
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> N;
      |         ^~~
a.cc:4:16: error: 'N' was not declared in this scope
    4 |         cin >> N;
      |                ^
a.cc:7:17: error: 'cout' was not declared in this scope
    7 |                 cout << "bon" << endl;
      |                 ^~~~
a.cc:7:34: error: 'endl' was not declared in this scope
    7 |                 cout << "bon" << endl;
      |                                  ^~~~
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout << "pon" << endl;
      |                 ^~~~
a.cc:10:34: error: 'endl' was not declared in this scope
   10 |                 cout << "pon" << endl;
      |                                  ^~~~
a.cc:13:17: error: 'cout' was not declared in this scope
   13 |                 cout << "hon" << endl;
      |                 ^~~~
a.cc:13:34: error: 'endl' was not declared in this scope
   13 |                 cout << "hon" << endl;
      |                                  ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'll' was not declared in this scope
    8 |   ll x = s.length()-1;
      |   ^~
a.cc:9:10: error: 'x' was not declared in this scope
    9 |     if(s[x]=='2'||s[x]=='4'||s[x]=='5'||s[x]=='7'||s[x]=='9')
      |          ^
a.cc:15:24: error: expected ';' before '}' token
   15 |       cout<<"pon"<<'\n'
      |                        ^
      |                        ;
   16 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:20:18: error: expected '}' at end of input
   20 |   cout << output;
      |                  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
#define MOD (1e9 +7)
#define rep(i, x, n) for(int i = x; i < n; i++)
#define repr(i, x, n) for(int i = x; i > n; i--)

#define ll long long
const long long iinf = 1e18;
const int inf = 1e9; 
using namespace std;


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

}

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

    int t; cin >> t;
    int i = 1;
    // while(t--){
    //     //cout << "Case " << i++ << ": " ;
    //     solve();
    //     cout  << endl;
    // }
    solve();

    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:17:8: error: 'c' was not declared in this scope
   17 |     if(c == 0 || c == 1 || c == 6 || c == 8) cout << "pon";
      |        ^
Language: Java

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

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java


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

public class A {
    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:6: error: class A is public, should be declared in a file named A.java
public class A {
       ^
1 error
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int n;
    cin>>n;
    int res=n%10;
    if(res==2||res==4||res==5||res==7||res==9){
        cout<<"hon"<<endl;
    }
    else if(res==0||res==1||res==6|res==8){
        cout<<"pon"<<endl;
    }
    else if(res==3){
        cout<<"bon"endl;
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: unable to find string literal operator 'operator""endl' with 'const char [4]', 'long unsigned int' arguments
   17 |         cout<<"bon"endl;
      |               ^~~~~~~~~
Language: C++

N = int(input())
n = N%10
if n==3:
  print('bon')
elif n==0 or n==1 or n==6 or n==8:
  print('pon')
else:
  print('hon')

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

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

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


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

//#include<bits/stdc++.h>
#include<iostream>
#include<cmath>
#include<cstdio>
#include<vector>
#include<set>
#include<map>
#include<stack>
#include<queue>
#include<utility>
#include<algorithm>
#include<cstring>
#include<sstream>
#include <iomanip>

using namespace std;

typedef long long ll ;
typedef double db;
typedef vector<int> vi;
typedef pair<int,int> ii;
typedef vector< pair<int,int> > vii;
const double pi = 2*acos(0) ;

#define pf		  	printf
#define sf			  scanf
#define pb(a)         push_back(a)
#define mp			make_pair
#define fr			 first
#define sc			 second
#define for0(i,n)        for(int i=0;i<n;i++)
#define for1(i,n)        for(int i=1;i<=n;i++)
#define forab(i,a,b)       for(int i=a;i<=b;i++)
#define lcm(a, b)     ((a)*((b)/gcd(a,b)))
#define sq(a)		   (a)*(a)
#define nw				"\n"
#define abs(x)		fabs(x)
#define pcase(z,x)    cout<<"Case "<<z<<": "<<x<<"\n"

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

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


#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
ll gcd(ll a , ll b) { return b==0?a: gcd( b, a%b); }
ll lcm(ll a , ll b) { return a/gcd(a,b) * b ; }
int main()
{
  ios::sync_with_stdio(false);cin.tie(0);
  //freopen("input.txt" , "r" , stdin );
  ll n;
  cin>>n;
  ll 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";
  return 0;
}


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

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

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

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

#include<bits/stdc++.h>
typedef long long ll;
#define moot 1000000007

using namespace std;

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(0);
    int N;
    cin>>N;
    int ones = N % 10;
    if(one == 2 || one == 4 || one == 5 || one == 7 || one == 9)
      cout<<"hon";
    else if(one == 0 || one == 1 || one == 6 || one == 8)
      cout<<"pon";
    else
      cout<<"bon";
    
  return 0;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: 'one' was not declared in this scope; did you mean 'ones'?
   14 |     if(one == 2 || one == 4 || one == 5 || one == 7 || one == 9)
      |        ^~~
      |        ones
Language: C++

#include <iostream>
using namespace std;

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

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

#include <cstdio>

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: cstdio: No such file or directory
    1 | #include <cstdio>
      |          ^~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(void){
  string n;
  cin>>n;
  char ch=n.substr(n.size()-1,1);
  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:19: error: cannot convert 'std::__cxx11::basic_string<char>' to 'char' in initialization
    6 |   char ch=n.substr(n.size()-1,1);
      |           ~~~~~~~~^~~~~~~~~~~~~~
      |                   |
      |                   std::__cxx11::basic_string<char>
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:22:20: error: expected ';' before 'cout'
   22 |   else(N % 10 == 3)
      |                    ^
      |                    ;
   23 |     cout << "bon" << endl;
      |     ~~~~
Language: C++

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



Compiler output:
a.cc:6:13: error: extended character 　 is not valid in an identifier
    6 |       cin >>　num;
      |             ^
a.cc: In function 'int main()':
a.cc:6:13: error: '\U00003000num' was not declared in this scope
    6 |       cin >>　num;
      |             ^~~~~
a.cc:10:23: error: expected ':' before ',' token
   10 |                 case 0,1,6,8:
      |                       ^
      |                       :
a.cc:10:23: error: expected primary-expression before ',' token
a.cc: At global scope:
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

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

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

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

//For fast competitive programming

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

//DATA_TYPES
typedef long long ll; 
typedef vector<int> vi;
typedef pair<int, int> ii; 
typedef vector<ii> vii;
const int INF = 0x3f3f3f3f; //Infinity

//INITIALISING
//memset(arr, 0, sizeof arr);
//vi v(N, 0);

int main()
{
	std::ios_base::sync_with_stdio(0);
	std::cin.tie(NULL);
	
	//write your code here
	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:26:19: error: expected primary-expression before '||' token
   26 |     if ((n%10)==2)||(n%10)==4)||(n%10)==5)||(n%10)==7)||(n%10)==9))
      |                   ^~
a.cc:28:28: error: expected primary-expression before '||' token
   28 |         else if ((n%10)==0)||(n%10)==1)||(n%10)==6)||(n%10)==8))
      |                            ^~
Language: Java

import java.util.Scanner;

public class oasobi {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        String a;

        if (n==3) {
            a="bon";
        }else if(n==0||n==1||n==6||n==8){
            a="pon";
        }else {
            a="hon";
        }
        System.out.println(a);
    }
}


Compiler output:
Main.java:3: error: class oasobi is public, should be declared in a file named oasobi.java
public class oasobi {
       ^
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;
  
  if else( 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:13:6: error: expected '(' before 'else'
   13 |   if else( a==0 || a==1 || a==6 || a==8)
      |      ^~~~
      |      (
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else
      |   ^~~~
Language: C++

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


Compiler output:
a.cc:6:13: error: extended character 　 is not valid in an identifier
    6 |       cin >>　num;
      |             ^
a.cc: In function 'int main()':
a.cc:6:13: error: '\U00003000num' was not declared in this scope
    6 |       cin >>　num;
      |             ^~~~~
a.cc:10:23: error: expected ':' before ',' token
   10 |                 case 0,1,6,8:
      |                       ^
      |                       :
a.cc:10:23: error: expected primary-expression before ',' token
a.cc: At global scope:
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C

#include <cstdio>
#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: cstdio: No such file or directory
    1 | #include <cstdio>
      |          ^~~~~~~~
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" << endl;
	} 
	else if(s[s.length()-1] == "0" || s[s.length()-1] == "1" || s[s.length()-1] == "6" || s[s.length()-1] == "8")
	{
		cout << "pon" << endl;
	} 
	else if(s[s.length()-1] == "3")
	{
		cout << "bon" << endl;
	}
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         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")
a.cc:9:54: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         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")
a.cc:9:80: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         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")
a.cc:9:106: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         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")
a.cc:9:132: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         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")
a.cc:13:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |         else if(s[s.length()-1] == "0" || s[s.length()-1] == "1" || s[s.length()-1] == "6" || s[s.length()-1] == "8")
a.cc:13:59: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |         else if(s[s.length()-1] == "0" || s[s.length()-1] == "1" || s[s.length()-1] == "6" || s[s.length()-1] == "8")
a.cc:13:85: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |         else if(s[s.length()-1] == "0" || s[s.length()-1] == "1" || s[s.length()-1] == "6" || s[s.length()-1] == "8")
a.cc:13:111: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |         else if(s[s.length()-1] == "0" || s[s.length()-1] == "1" || s[s.length()-1] == "6" || s[s.length()-1] == "8")
a.cc:17:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |         else if(s[s.length()-1] == "3")
Language: Java

import java.util.Scanner;

public class Therefore {
	static Scanner src = new Scanner(System.in);
	public static void main(String[] args) {
		String str = src.next();
		char c = str.charAt(str.length() - 1);
		if(c == '3') {
			System.out.println("bon");
		}else if(c == '0' || c == '1' || c == '6' || c == '8') {
			System.out.println("pon");
		}else {
			System.out.println("hon");
		}
	}
}


Compiler output:
Main.java:3: error: class Therefore is public, should be declared in a file named Therefore.java
public class Therefore {
       ^
1 error
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,f;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: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,f;cin>>f;
      |        ^