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

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

int main(){
    int N;
    cin>>N;
    string S=to_string(N);
    char* a=S.back;
    switch(a[0]){
        case '2':;
        case '4':;
        case '5':;
        case '7':;
        case '9': cout<<"hon"<<endl;break;
        case '0':;
        case '1':;
        case '6':;
        case '8': cout<<"pon"<<endl;break;
        case '3': cout<<"bon"<<endl;break;

        return 0;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: cannot resolve overloaded function 'back' based on conversion to type 'char*'
    9 |     char* a=S.back;
      |               ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'if'
    8 |   if(N.at(long1)=='2'||N.at(long1)=='4'||N.at(long1)=='5'||N.at(long1)=='7'||N.at(long1)=='9'){
      |   ^~
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else if(N.at(long1)=='0'||N.at(long1)=='1'||N.at(long1)=='6'||N.at(long1)=='8'){
      |   ^~~~
Language: C

#include<stdio.h>
#include<string.h>
 
int main(){
  int K[101];
  char S[101];
  scanf("%d",&K);
  scanf("%s",S);
  int l=strlen(S);
  char a='...';
    char S2[1000];
   for(i=0;i<=K;i++){
     S2[i]=S[i];
   }
  
  if(l<=K){
    printf("%s\n",S);
  }else{
    printf("%s%s\n",S2,a)
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:10: warning: multi-character character constant [-Wmultichar]
   10 |   char a='...';
      |          ^~~~~
main.c:10:10: warning: overflow in conversion from 'int' to 'char' changes value from '3026478' to '46' [-Woverflow]
main.c:12:8: error: 'i' undeclared (first use in this function)
   12 |    for(i=0;i<=K;i++){
      |        ^
main.c:12:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:7: warning: comparison between pointer and integer
   16 |   if(l<=K){
      |       ^~
main.c:19:26: error: expected ';' before '}' token
   19 |     printf("%s%s\n",S2,a)
      |                          ^
      |                          ;
   20 |   }
      |   ~
Language: C

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

int main() {
  int N,M;
  cin >> N;
  M = N - N/10 *10;
  string ans;
  if (M==2 || M==4 || M==5 || M==7 || M==9) {
    ans = "hon";
  }
  else if (M==0 || M==1 || M==6 || M==8) {
    ans = "pon";
  }
  else if (M==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

#include<stdio.h>
int main(void){
  int n, m, k;
  scanf("%d", &n);
  m=n%100;
  k=m%10;
  if(k==3){
    printf("bon");
  }
  else if(k==0 || k==1 || k==6 || k==8){
    printf("pon");
  }
  else{
    printf("hon")
  }
  return 0;
}
  

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


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

public class Test {

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

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

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

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

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

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

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

    }
    public static void main(String[] args) {

        FastReader sc =  new FastReader();

        String str =sc.nextLine();
        Integer val = Integer.valueOf(str.charAt(str.length()-1));
        String ans= "";
        if(val==3)ans="bon";
        else if(val==0|| val==1|| val==6 || val==8)ans ="pon";
        else ans="hon";

        System.out.println(ans);
    }
}


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

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

int main() {
  int K;
 string S;
  cin >> K >>S;
  
  if(K => S.size()){
  cout << S << endl;
    
  }
    
    else{
      int t = K - S.size();
      int y = i + K;
   rep(y,t){
   }S.at(i) = " "
    cout << S + "..." << endl;
    }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected primary-expression before '>' token
   12 |   if(K => S.size()){
      |         ^
a.cc:19:15: error: 'i' was not declared in this scope
   19 |       int y = i + K;
      |               ^
Language: C

#include <iostream>
#include <string>
#include <queue>
#include <vector>
#include <algorithm>
#include <math.h>
#include <map>


using namespace std;



int main() {

	const double PI = 3.14159265358979323846;
	double A, B, H, M;
	double x1, x2, y1, y2, angleH, angleM, ans;
	
	cin >> A >> B >> H >> M;

	angleH = -2 * PI * H / 12 + PI / 2 - M * PI / 6 / 60;
	angleM = -2 * PI * M / 60 + PI / 2;

	x1 = A * cos(angleH);
	y1 = A * sin(angleH);
	x2 = B * cos(angleM);
	y2 = B * sin(angleM);

	ans = pow(pow(abs(x2 - x1), 2) + pow(abs(y2 - y1), 2), 0.5);


	cout <<ans;

	return 0;

}	

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: expected '}' at end of input
   13 |     cout<<"bon";
      |                 ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

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


int main() {
  int A,B,H,M;
  cin >> A >> B >> H >> M;
  
  double pi =3.14159265359;
  
  double C;
  C = 2*pi/12;
  double D;
  D = 2*pi/60;
    
  double S;
  S=(A*A+B*B-2*A*B*cos((H*C+M*D/12)-M*D));
  
  cout << sqrtl(long double S) <<endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:17: error: expected primary-expression before 'long'
   22 |   cout << sqrtl(long double S) <<endl;
      |                 ^~~~
Language: C++

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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:24: error: expected ';' before '}' token
   15 |                 b="bon"
      |                        ^
      |                        ;
   16 |         }
      |         ~               
a.cc:19:24: error: expected ';' before '}' token
   19 |                 b="hon"
      |                        ^
      |                        ;
   20 |         }
      |         ~
Language: Java

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

Compiler output:
Main.java:19: error: reached end of file while parsing
      }    
       ^
1 error
Language: C++

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

int main() {

  int n;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: expected ';' before '}' token
   14 |   else cout << "hon"
      |                     ^
      |                     ;
   15 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if (m.at(m.size()-1) == "2" ||
      |       ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:10:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |       m.at(m.size()-1) == "4" ||
      |       ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:11:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |       m.at(m.size()-1) == "5" ||
      |       ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:12:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |       m.at(m.size()-1) == "7" ||
      |       ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:13:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |       m.at(m.size()-1) == "9") {
      |       ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:15:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |   } else if (m.at(m.size()-1) == "0" ||
      |              ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:16:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |              m.at(m.size()-1) == "1" ||
      |              ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:17:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |              m.at(m.size()-1) == "6" ||
      |              ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:18:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |              m.at(m.size()-1) == "8") {
      |              ~~~~~~~~~~~~~~~~~^~~~~~
Language: C++

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

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

    // nの大きさを取得し、n.size()が１のとき、欲しいのは文字列で考えて2番目なのでn.size() + 1を取得する
    int a=0;
    a = n.size() + 1;

    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:10:11: error: request for member 'size' in 'n', which is of non-class type 'int'
   10 |     a = n.size() + 1;
      |           ^~~~
Language: C++

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

int main()
{
	int n;
	cin>>n;
	if(n<=9)
	{
		if(n==2||4||5||7||9)
		{
			cout<<"hon"<<endl;
		}
	else	if(n==0||1||6||8)
		{
			cout<<"pon";
		}
		else if(n==3)
		cout<<"bon";
	}
	if(n>=10&&n<100)
	{
		int s = n%10;
		if(s==2||4||5||7||9)
		{
			cout<<"hon";
		}
	else	if(s==0||1||6||8)
		{
			cout<<"pon";
		}
		else if(s==3)
		cout<<"bon"l;
	}
	if(n>=100&&n<=999)
	{
		int s = n%100,g = s%10;
			if(g==2||4||5||7||9)
		{
			cout<<"hon";
		}
	else	if(g==0||1||6||8)
		{
			cout<<"pon";
		}
		else if(g==3)
		cout<<"bon";
	}
	return 0;
 }

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

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

Compiler output:
a.cc:1:1: error: expected unqualified-id before '{' token
    1 | {
      | ^
Language: C++

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

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

    // nの大きさを取得し、n.size()が１のとき、欲しいのは文字列で考えて2番目なのでn.size() + 1を取得する
    int a=0;
    a = n.size() + 1;

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

import java.util.Scanner;
public class Main {
  public static void main(String[] args){
  Scanner input = new Scanner(System.in);
  String num = input.next();
  String inputLast = num.substring(num.length()-1);
  //System.out.println(inputLast);
    //(inputLast.equals("3")){
    //System.out.println("bon");
    //se if()
    switch(inputLast){
      case "3":
        System.out.println("bon");
        break;
      case "0":
      case "1":
      case "6":
      case "8":
        System.out.println("pon");
        break;
      default:
        System.out.println("hon");
  }
}

Compiler output:
Main.java:24: error: reached end of file while parsing
}
 ^
1 error
Language: C

#include <stdio.h>

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

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%d", &n);
      |         ^~~~~~~
      |         scanf
Language: C

#include<stdio.h>
int main()
{
  int a;
  // 整数の入力
  scanf("%d", &a);
  // 出力
  if(a == 2 or a == 4 or a == 5 or a == 7 or a == 9){
    printf("hon");
  }else if(a == 0 or a == 1 or a == 6 or a == 8){
  	printf("pon");
  }else{
    printf("bon");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:12: error: expected ')' before 'or'
    8 |   if(a == 2 or a == 4 or a == 5 or a == 7 or a == 9){
      |     ~      ^~~
      |            )
main.c:10:18: error: expected ')' before 'or'
   10 |   }else if(a == 0 or a == 1 or a == 6 or a == 8){
      |           ~      ^~~
      |                  )
Language: C++

#include <bits/stdc++.h> 
#define pb push_back
#define fr first
#define sc second
#define MOD 1000000007
#define len(x) x.size()
#define min3(a, b, c) min(a, min(b, c))
#define max3(a, b, c) max(a, max(b, c))
#define all(v) v.begin(), v.end()
#define f(i,a,n) for(int i=a;i<n;i++)
using namespace std;
typedef vector<int> vi;
typedef map<int,int> mii;
typedef pair<int,int> pii; 
typedef long long ll;
typedef pair<ll, ll> pll;
typedef vector<ll> vll;
typedef vector<pll> vpll;
typedef vector<vll> vvll;
typedef vector<string> vs;

int main() {

    /*#ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin) ;
    freopen("output.txt", "w", stdout) ;
    #endif*/
    ios_base::sync_with_stdio(false);
    cin.tie(NULL) ; cout.tie(NULL) ;

    //int t; cin>>t; while(t--) 
	int n; cin>>n;
	if(n%10==3) cout<<"bon";
	else if(n%10==1 || n%10==8 || n%10==0 || n%10==6) cout<<"pon";
	else cout<<"hon"
	
    return 0 ;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:25: error: expected ';' before 'return'
   35 |         else cout<<"hon"
      |                         ^
      |                         ;
   36 | 
   37 |     return 0 ;
      |     ~~~~~~
Language: C++

#include<iostream>
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 if((( N%10 = 2 || N%10 = 4) || ( N%10 = 5 )) || (N%10 = 7 || N%10 = 9 )){
    cout << "hon" << endl;
  }
  return 0;
}

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

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

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

  if(N<10){
    if(N == 2||4||5||7||9){
      cout << "hon" << endl;
    }
    else if(N == 1||6||8){
      cout << "pon" << endl;
    }
    else{
      cout << "bon" << endl;
    }
  }
  else if(9<N&&N<100){
    if(N.at(1)=3){
      cout << "bon"<< endl;
    }
    if(N.at(1)=0||1||6||8){
      cout << "pon"<< endl;
    }
    else{
      cout << "hon" << endl;
    }
  }
  else{
    if(N.at(2)=3){
      cout << "bon"<< endl;
    }
    if(N.at(2)=0||1||6||8){
      cout << "pon"<< endl;
    }
    else{
      cout << "hon" << endl;
    }
    
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:10: error: request for member 'at' in 'N', which is of non-class type 'int'
   20 |     if(N.at(1)=3){
      |          ^~
a.cc:23:10: error: request for member 'at' in 'N', which is of non-class type 'int'
   23 |     if(N.at(1)=0||1||6||8){
      |          ^~
a.cc:31:10: error: request for member 'at' in 'N', which is of non-class type 'int'
   31 |     if(N.at(2)=3){
      |          ^~
a.cc:34:10: error: request for member 'at' in 'N', which is of non-class type 'int'
   34 |     if(N.at(2)=0||1||6||8){
      |          ^~
Language: C++

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

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

  if(N<10){
    if(N == 2||4||5||7||9){
      cout << "hon" << endl;
    }
    else if(N == 1||6||8){
      cout << "pon" << endl;
    }
    else{
      cout << "bon" << endl;
    }
  }
  else if(9<N<100){
    if(N.at(1)=3){
      cout << "bon"<< endl;
    }
    if(N.at(1)=0||1||6||8){
      cout << "pon"<< endl;
    }
    else{
      cout << "hon" << endl;
    }
  }
  else{
    if(N.at(2)=3){
      cout << "bon"<< endl;
    }
    if(N.at(2)=0||1||6||8){
      cout << "pon"<< endl;
    }
    else{
      cout << "hon" << endl;
    }
    
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:10: error: request for member 'at' in 'N', which is of non-class type 'int'
   20 |     if(N.at(1)=3){
      |          ^~
a.cc:23:10: error: request for member 'at' in 'N', which is of non-class type 'int'
   23 |     if(N.at(1)=0||1||6||8){
      |          ^~
a.cc:31:10: error: request for member 'at' in 'N', which is of non-class type 'int'
   31 |     if(N.at(2)=3){
      |          ^~
a.cc:34:10: error: request for member 'at' in 'N', which is of non-class type 'int'
   34 |     if(N.at(2)=0||1||6||8){
      |          ^~
Language: Java

import java.util.*;
 
class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int k = sc.nextInt();
    int count = s.length();
    String add = "...";
    if(count > 100 || k > 100){
      System.out.println(error);
    }
    
    
    if(count <= k){
      System.out.println(s);
    }else{
      String result = s + add;
      System.out.println(result);
    }
  }
}

Compiler output:
Main.java:11: error: cannot find symbol
      System.out.println(error);
                         ^
  symbol:   variable error
  location: class Main
1 error
Language: C++

#include<iostream>
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 if((( N%10 = 2 || N%10 = 4) || ( N%10 = 5 )) || (N%10 = 7 || N%10 =9 )){
    cout << "hon" << endl;
  }
  return 0;
}

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

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


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

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

import java.util.*;
 
class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int k = sc.nextInt();
    int count = s.length();
    String add = "...";
    if(count > 100 || k > 100){
      System.out.println(error);
    }
    
    
    if(count =< k){
      System.out.println(s);
    }else{
      String result = s + add;
      System.out.println(result);
    }
  }
}

Compiler output:
Main.java:15: error: > or ',' expected
    if(count =< k){
                 ^
1 error
Language: C++

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


int main() {
  int A,B,H,M;
  cin >> A >> B >> H >> M;
  
  int C;
  C = 2*M_PI/12;
  int D;
  D = 2*M_PI/60;
    
  int S;
  S=(A*A+B*B-2*A*B*cos((H*C+M*D/12)-M*D));
  
  int T;
  T = long double sqrt(long double S);
  
  cout << S <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:7: error: expected primary-expression before 'long'
   22 |   T = long double sqrt(long double S);
      |       ^~~~
Language: Java

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

Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
1 error
Language: C++

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

#define sz(x) (int)x.size()

int main() {

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

    string s; cin >> s;

    string x = s[sz(s)-1];

    if (sz(x) == 1) {
        if (x[0] == '3') {
            cout << "bon\n";
        } else if (x[0] == '0' || x[0] == '1' || x[0] == '6' || x[0] == '8') {
            cout << "pon\n";
        } else cout << "hon\n";
    }
    assert(false);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   13 |     string x = s[sz(s)-1];
      |                         ^
Language: C++

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

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

  if(N.size()=1){
    if(N == 2||4||5||7||9){
      cout << "hon" << endl;
    }
    else if(N == 1||6||8){
      cout << "pon" << endl;
    }
    else{
      cout << "bon" << endl;
    }
  }
  else if(N.size()=2){
    if(N.at(1)=3){
      cout << "bon"<< endl;
    }
    if(N.at(1)=0||1||6||8){
      cout << "pon"<< endl;
    }
    else{
      cout << "hon" << endl;
    }
  }
  else{
    if(N.at(2)=3){
      cout << "bon"<< endl;
    }
    if(N.at(2)=0||1||6||8){
      cout << "pon"<< endl;
    }
    else{
      cout << "hon" << endl;
    }
    
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: request for member 'size' in 'N', which is of non-class type 'int'
    8 |   if(N.size()=1){
      |        ^~~~
a.cc:19:13: error: request for member 'size' in 'N', which is of non-class type 'int'
   19 |   else if(N.size()=2){
      |             ^~~~
a.cc:20:10: error: request for member 'at' in 'N', which is of non-class type 'int'
   20 |     if(N.at(1)=3){
      |          ^~
a.cc:23:10: error: request for member 'at' in 'N', which is of non-class type 'int'
   23 |     if(N.at(1)=0||1||6||8){
      |          ^~
a.cc:31:10: error: request for member 'at' in 'N', which is of non-class type 'int'
   31 |     if(N.at(2)=3){
      |          ^~
a.cc:34:10: error: request for member 'at' in 'N', which is of non-class type 'int'
   34 |     if(N.at(2)=0||1||6||8){
      |          ^~
Language: C++

/****************************************************
*   Template for coding contests                    *
*   Author    :    Sanjeev Sharma                   *
*   Email     :    thedevelopersanjeev@gmail.com    *
*****************************************************/
#pragma GCC optimize ("O3")
#pragma GCC optimize("Ofast")
#pragma GCC optimize ("unroll-loops")
#pragma GCC optimize("no-stack-protector")
#pragma GCC optimize("fast-math")
#pragma GCC target ("sse4")
#pragma comment(linker, "/stack:200000000")

#include <bits/stdc++.h>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/assoc_container.hpp>

using namespace __gnu_pbds;
using namespace std;

#define deb(x) cout << #x << " is " << x << "\n";
#define int long long
#define mod 1000000007

const double PI = 2 * acos(0.0);
const long long INF = 1e18L + 5;
template <typename T>
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;

void solve() {
	string s;
	cin >> s;
	switch (s[0]) {
	case '2', '4', '5', '7', '9' :
		cout << "hon";
		break;
	case '0', '1', '6', '8' :
		cout << "pon";
		break;
	default:
		cout << "bon";
	}
}

int32_t main() {
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	solve();
	return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:34:17: error: expected ':' before ',' token
   34 |         case '2', '4', '5', '7', '9' :
      |                 ^
      |                 :
a.cc:34:17: error: expected primary-expression before ',' token
a.cc:37:17: error: expected ':' before ',' token
   37 |         case '0', '1', '6', '8' :
      |                 ^
      |                 :
a.cc:37:17: error: expected primary-expression before ',' token
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: request for member 'size' in 'N', which is of non-class type 'int'
    8 |   a = N.size();
      |         ^~~~
a.cc:10:9: error: request for member 'at' in 'N', which is of non-class type 'int'
   10 |   b = N.at(a-1);
      |         ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
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:11:15: error: 'hon' was not declared in this scope
   11 |         cout<<hon;
      |               ^~~
a.cc:15:15: error: 'pon' was not declared in this scope; did you mean 'pow'?
   15 |         cout<<pon;
      |               ^~~
      |               pow
a.cc:18:15: error: 'bon' was not declared in this scope
   18 |         cout<<bon;
      |               ^~~
Language: C

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

//main関数
int main(int N){

	int N_1 = 0;
	
	//1.Nの１桁目を算出する
	N_1 = N % 10;

	//コードを入力してください。
	if(N_1 == 2 or N_1 == 4 or N_1 == 5 or N_1 == 7 or N_1 == 9)
	{
 		printf("hon");
	}
	else if(N_1 == 0 or N_1 == 1 or N_1 == 6 or N_1 == 8){
		printf("pon");
	}
	else{
		printf("bon");
	}

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:20: error: expected ')' before 'or'
   15 |         if(N_1 == 2 or N_1 == 4 or N_1 == 5 or N_1 == 7 or N_1 == 9)
      |           ~        ^~~
      |                    )
main.c:19:25: error: expected ')' before 'or'
   19 |         else if(N_1 == 0 or N_1 == 1 or N_1 == 6 or N_1 == 8){
      |                ~        ^~~
      |                         )
Language: Java

import java.util.Scanner;
class Sol{
	public static void  main(String ... args){
      Scanner sc = new Scanner(System.in);
      int k = sc.nextInt();
      Stirng s = sc.nextLine();
      if(s.length() <= k)
        System.out.print(s);
      else
        System.out.print(s.substring(0, k) + "...");

    }
}

Compiler output:
Main.java:6: error: cannot find symbol
      Stirng s = sc.nextLine();
      ^
  symbol:   class Stirng
  location: class Sol
1 error
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C++

#include<vector>
#define ll long long
#define rep(i,n) for(int i=0;i<(n);i++)

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'string' was not declared in this scope
    8 |     string n;
      |     ^~~~~~
a.cc:2:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    1 | #include<vector>
  +++ |+#include <string>
    2 | #define ll long long
a.cc:10:5: error: 'cin' was not declared in this scope
   10 |     cin >> n;
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<vector>
  +++ |+#include <iostream>
    2 | #define ll long long
a.cc:10:12: error: 'n' was not declared in this scope
   10 |     cin >> n;
      |            ^
a.cc:21:9: error: 'cout' was not declared in this scope
   21 |         cout << "pon" << endl;
      |         ^~~~
a.cc:21:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:26: error: 'endl' was not declared in this scope
   21 |         cout << "pon" << endl;
      |                          ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<vector>
  +++ |+#include <ostream>
    2 | #define ll long long
a.cc:23:9: error: 'cout' was not declared in this scope
   23 |         cout << "bon" << endl;
      |         ^~~~
a.cc:23:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:26: error: 'endl' was not declared in this scope
   23 |         cout << "bon" << endl;
      |                          ^~~~
a.cc:23:26: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:25:9: error: 'cout' was not declared in this scope
   25 |         cout << "hon" << endl;
      |         ^~~~
a.cc:25:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:25:26: error: 'endl' was not declared in this scope
   25 |         cout << "hon" << endl;
      |                          ^~~~
a.cc:25:26: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: Java

import java.util.Scanner;

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

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

# include <iostream>

using namespace std;

//日本語の本（本、ぽん、ぼん）の使い分け

int main(){

cisin >> n;
int res = n % 10;


switch (res)
{
case 2:
case 4:
case 5:
case 7:
case 9:/* constant-expression */:
  cout << "hon";
  break;
case 0:
case 1:
case 6:
case 8:
 cout << "pon";
case 3:
 cout << "bon";
  break;
}


}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'cisin' was not declared in this scope
    9 | cisin >> n;
      | ^~~~~
a.cc:9:10: error: 'n' was not declared in this scope
    9 | cisin >> n;
      |          ^
a.cc:19:33: error: expected primary-expression before ':' token
   19 | case 9:/* constant-expression */:
      |                                 ^
Language: C++

#include <iostream>
using namespace std;

int N;
int S;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: lvalue required as left operand of assignment
    9 |   N % 10 = S;
      |   ~~^~~~
Language: C++

#include <iostream>
using namespace std;

int N;
int S;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: lvalue required as left operand of assignment
    9 |   N % 10 = S;
      |   ~~^~~~
Language: C++

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

}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: request for member 'size' in 'N', which is of non-class type 'int'
    8 |   a = N.size();
      |         ^~~~
a.cc:9:8: error: request for member 'at' in 'N', which is of non-class type 'int'
    9 |   if(N.at(a - 1) == 3) {
      |        ^~
a.cc:12:13: error: request for member 'at' in 'N', which is of non-class type 'int'
   12 |   else if(N.at(a - 1) == 0 || 1 || 6 || 8 ) {
      |             ^~
Language: C++

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

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


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

include <bits/stdc++.h>
#define ref(i,n) for(int i=0;i<n;i++)
using namespace std;
#define INF 10000000
int a[200001],b[200001];
int main()
{
    int n;
    cin>>n;
    int x=n%10;
    if(x==2||x==4||x==7||x==9||x==5) cout<<"jon";
    else if(x==3) cout<<"bon";
    else cout<<"pon";
    return 0;
    
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin>>n;
      |     ^~~
a.cc:11:38: error: 'cout' was not declared in this scope
   11 |     if(x==2||x==4||x==7||x==9||x==5) cout<<"jon";
      |                                      ^~~~
a.cc:12:19: error: 'cout' was not declared in this scope
   12 |     else if(x==3) cout<<"bon";
      |                   ^~~~
a.cc:13:10: error: 'cout' was not declared in this scope
   13 |     else cout<<"pon";
      |          ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int sum=0,num,num1;
  cin >>　num;
  num1=num;
  while (0 < num1){
    num1 = (num1 / 10);
    sum++;
}
  sum=sum-1;
	num=num/(10^sum)
  switch (num) {
		case 3:
			std ::  cout << "bon"<< endl;
			break;
    case 0:
    case 1:
    case 6:
    case 8:
			std ::  cout << "pon"<< endl; 
			break;
		default:
			std ::  cout << "hon"<< endl;
			break;
	}
	return 0;
}

Compiler output:
a.cc:5:9: error: extended character 　 is not valid in an identifier
    5 |   cin >>　num;
      |         ^
a.cc: In function 'int main()':
a.cc:5:9: error: '\U00003000num' was not declared in this scope
    5 |   cin >>　num;
      |         ^~~~~
a.cc:12:25: error: expected ';' before 'switch'
   12 |         num=num/(10^sum)
      |                         ^
      |                         ;
   13 |   switch (num) {
      |   ~~~~~~
Language: C++

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


int main() {
  // ここにプログラムを追記
  
  int S,A;
 
  string n;
  char x;
 
  cin>> n;
  S = n.size();
  A = S-1;
  x = n.at(A);
    if(x =='2'||x=='4'||x=='5'||x=='7'||x=='9')cout<<"hon"<<endl;
  else if(x=='0'||x=='6'||x=='8'x=='1')cout<<"pon"<<endl;
  else cout<<"bon"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:30: error: unable to find character literal operator 'operator""x' with 'char' argument
   19 |   else if(x=='0'||x=='6'||x=='8'x=='1')cout<<"pon"<<endl;
      |                              ^~~~
Language: C++

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


int main() {
  // ここにプログラムを追記
  
  int S,A;
 
  string n;
  char x;
 
  cin>> n;
  S = n.size();
  A = S-1;
  x = n.at(A);
    if(x =='2'||x=='4'||x=='5'||x=='7'||x=='9')cout<<"hon"<<endl;
  else if(x=='0'||x=='6'||x=='8'||x=='1')cout<<"pon"<<endl;
  else cout<<"bon"endl;
}


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


import java.util.Scanner;

public class Therefore {

    private static String solve(int n) {
        if (n % 10 == 2 || n % 10 == 4 || n % 10 == 5 || n % 10 == 7 || n % 10 == 9) {
            return "hon";
        } else if (n % 10 == 6 || n % 10 == 8 || n % 10 == 1 || n % 10 == 0) {
            return "pon";
        } else {
            return "bon";
        }
    }


    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        String res = solve(n);
        System.out.println(res);
    }
}


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

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

int main(void){
    int a;
    cin >> a;
    int b=0;
    for (int i = 10; i < 11; i++){
        b = a %10;
        a/=10;

    }
    if (b==2 || b ==4 || b==5 || b==7 || b==9)
    {
        cout << "hon" << endl;
    }else if(b==0 || b==1 ||b ==6 || b == 8){
        cout << "pon" << endl;
    }else if(b==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 <stdio.h>
int main(void){
  int a[100];
  scanf("%d",&a);
  switch(a[-1]){
    case 3:
      printf("bon");
      break;
    case 0:
    case 1:
    case 6:
    case 8:
      printf("pon");
      break;
    default:
      printf("hon");
      break
  }
}

Compiler output:
main.c: In function 'main':
main.c:17:12: error: expected ';' before '}' token
   17 |       break
      |            ^
      |            ;
   18 |   }
      |   ~
Language: C

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

Compiler output:
main.c:20:10: error: expected declaration specifiers or '...' before string constant
   20 |   printf("%d\n",);
      |          ^~~~~~
main.c:20:17: error: expected declaration specifiers or '...' before ')' token
   20 |   printf("%d\n",);
      |                 ^
main.c:21:4: error: expected identifier or '(' before 'return'
   21 |    return 0;
      |    ^~~~~~
main.c:22:1: error: expected identifier or '(' before '}' token
   22 | }
      | ^
Language: C++

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


int main() {
  // ここにプログラムを追記
  
  int S,A;
 
  string n;
  char x;
 
  cin>> n;
  S = n.size();
  A = S-1;
  x = n.at(A);
    if(x =='2'||x=='4'||x=='5'||x=='7'||x=='9')cout<<"hon"<<endl;
  else if(x=='0'||x=='6'||x=='8'x=='1')cout<<"pon"<<endl;
  else cout<<"bon"endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:30: error: unable to find character literal operator 'operator""x' with 'char' argument
   19 |   else if(x=='0'||x=='6'||x=='8'x=='1')cout<<"pon"<<endl;
      |                              ^~~~
a.cc:20:14: error: unable to find string literal operator 'operator""endl' with 'const char [4]', 'long unsigned int' arguments
   20 |   else cout<<"bon"endl;
      |              ^~~~~~~~~
Language: C++

#include<iostream>
using namespace std;
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";
return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:28: error: lvalue required as left operand of assignment
   12 |       if(n=2||n=4||n=5||n=7||n=9){
      |                           ~^~~
a.cc:15:25: error: lvalue required as left operand of assignment
   15 |         else if(n=1||n=6||n=8){
      |                        ~^~~
a.cc:19:26: error: expected ';' before '}' token
   19 |             printf("bon")
      |                          ^
      |                          ;
   20 |            }
      |            ~              
a.cc:22:4: error: expected '}' at end of input
   22 |   }
      |    ^
a.cc:2:15: note: to match this '{'
    2 | int main(void){
      |               ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: 'nl' was not declared in this scope; did you mean 'ynl'?
   10 |         cout<<"bon"<<nl;
      |                      ^~
      |                      ynl