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

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

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

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;
  else if(n%10==0 || n%10==1 ||n%10==6 ||n%10==8 ) cout<<"pon"<<endl;
  else cout<<"bon"<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin>>n;
      |   ^~~
a.cc:4:56: error: 'cout' was not declared in this scope
    4 |   if(n%10==2 || n%10==4 ||n%10==5 ||n%10==7 ||n%10==9) cout<<"hon"<<endl;
      |                                                        ^~~~
a.cc:4:69: error: 'endl' was not declared in this scope
    4 |   if(n%10==2 || n%10==4 ||n%10==5 ||n%10==7 ||n%10==9) cout<<"hon"<<endl;
      |                                                                     ^~~~
a.cc:5:52: error: 'cout' was not declared in this scope
    5 |   else if(n%10==0 || n%10==1 ||n%10==6 ||n%10==8 ) cout<<"pon"<<endl;
      |                                                    ^~~~
a.cc:5:65: error: 'endl' was not declared in this scope
    5 |   else if(n%10==0 || n%10==1 ||n%10==6 ||n%10==8 ) cout<<"pon"<<endl;
      |                                                                 ^~~~
a.cc:6:8: error: 'cout' was not declared in this scope
    6 |   else cout<<"bon"<<endl;
      |        ^~~~
a.cc:6:21: error: 'endl' was not declared in this scope
    6 |   else cout<<"bon"<<endl;
      |                     ^~~~
Language: C++

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


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>n;
      |   ^~~
a.cc:6:56: error: 'cout' was not declared in this scope
    6 |   if(n%10==2 || n%10==4 ||n%10==5 ||n%10==7 ||n%10==9) cout<<"hon"<<endl;
      |                                                        ^~~~
a.cc:6:69: error: 'endl' was not declared in this scope
    6 |   if(n%10==2 || n%10==4 ||n%10==5 ||n%10==7 ||n%10==9) cout<<"hon"<<endl;
      |                                                                     ^~~~
a.cc:7:52: error: 'cout' was not declared in this scope
    7 |   else if(n%10==0 || n%10==1 ||n%10==6 ||n%10==8 ) cout<<"pon"<<endl;
      |                                                    ^~~~
a.cc:7:65: error: 'endl' was not declared in this scope
    7 |   else if(n%10==0 || n%10==1 ||n%10==6 ||n%10==8 ) cout<<"pon"<<endl;
      |                                                                 ^~~~
a.cc:8:8: error: 'cout' was not declared in this scope
    8 |   else cout<<"bon"<<endl;
      |        ^~~~
a.cc:8:21: error: 'endl' was not declared in this scope
    8 |   else cout<<"bon"<<endl;
      |                     ^~~~
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<std/c++.h>
      | ^~~~~~~
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>n;
      |   ^~~
a.cc:6:56: error: 'cout' was not declared in this scope
    6 |   if(n%10==2 || n%10==4 ||n%10==5 ||n%10==7 ||n%10==9) cout<<"hon"<<endl;
      |                                                        ^~~~
a.cc:6:69: error: 'endl' was not declared in this scope
    6 |   if(n%10==2 || n%10==4 ||n%10==5 ||n%10==7 ||n%10==9) cout<<"hon"<<endl;
      |                                                                     ^~~~
a.cc:7:52: error: 'cout' was not declared in this scope
    7 |   else if(n%10==0 || n%10==1 ||n%10==6 ||n%10==8 ) cout<<"pon"<<endl;
      |                                                    ^~~~
a.cc:7:65: error: 'endl' was not declared in this scope
    7 |   else if(n%10==0 || n%10==1 ||n%10==6 ||n%10==8 ) cout<<"pon"<<endl;
      |                                                                 ^~~~
a.cc:8:8: error: 'cout' was not declared in this scope
    8 |   else cout<<"bon"<<endl;
      |        ^~~~
a.cc:8:21: error: 'endl' was not declared in this scope
    8 |   else cout<<"bon"<<endl;
      |                     ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ':' before ',' token
    8 |     case 2, 5, 7, 9:
      |           ^
      |           :
a.cc:8:11: error: expected primary-expression before ',' token
a.cc:11:11: error: expected ':' before ',' token
   11 |     case 0, 1, 6, 8:
      |           ^
      |           :
a.cc:11:11: error: expected primary-expression before ',' token
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ':' before ',' token
    8 |     case 2, 5, 7, 9:
      |           ^
      |           :
a.cc:8:11: error: expected primary-expression before ',' token
a.cc:11:11: error: expected ':' before ',' token
   11 |     case 0, 1, 6, 8:
      |           ^
      |           :
a.cc:11:11: error: expected primary-expression before ',' token
Language: Java

import java.util.*;
import java.io.*;
public class EdA {

	public static void main(String[] args) throws Exception{
		int num = 998244353;

		// TODO Auto-generated method stub
 		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
 		PrintWriter out = new PrintWriter(System.out);
 		int n = Integer.parseInt(bf.readLine());
 		int k = n%10;
 		if (n == 3)
 			out.println("bon");
 		else if (n == 0 || n == 1 || n == 6 || n == 8)
 			out.println("pon");
 		else
 			out.println("hon");
 		out.close();
 		
 		
 		
 	}
}
 	
 
//StringJoiner sj = new StringJoiner(" "); 
//sj.add(strings)
//sj.toString() gives string of those stuff w spaces or whatever that sequence is

 		
 		
 		
 		
	




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

#include "bits/stdc++.h"
using namespace std;
#define ld long double
int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    int a, b, h, m;
    cin >> a >> b >> h >> m;
    h = h * 60 + m;
    ld ha = (h % 720) / 2.0, ma = ld(h % 60) * 6.0;
    ld dif = abs(ha - ma);
    dif = min(dif, 360.0 - dif);
    dif *= acos(-1) / 180.0;
    ld c = (ld)a *(ld) a + (ld)b * (ld)b - 2 *(ld) a *(ld) b * cos(dif);
    cout << setprecision(20) << sqrt(c) << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:3:12: error: expected primary-expression before 'long'
    3 | #define ld long double
      |            ^~~~
a.cc:10:35: note: in expansion of macro 'ld'
   10 |     ld ha = (h % 720) / 2.0, ma = ld(h % 60) * 6.0;
      |                                   ^~
Language: C++

#include <iomanip>

#include "bits/stdc++.h"
using namespace std;
#define ld long double
int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    ld a, b, h, m;
    cin >> a >> b >> h >> m;
    h = h * 60 + m;
    ld ha = (h % 720) / 2, ma = (h % 60) * 6;
    ld dif = abs(ha - ma);
    dif = min(dif, 360.0 - dif);
    dif *= acos(-1) / 180.0;
    ld c = a * a + b * b - 2 * a * b * cos(dif);
    cout << setprecision(20) << sqrt(c) << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: invalid operands of types 'long double' and 'int' to binary 'operator%'
   12 |     ld ha = (h % 720) / 2, ma = (h % 60) * 6;
      |              ~ ^ ~~~
      |              |   |
      |              |   int
      |              long double
a.cc:13:23: error: 'ma' was not declared in this scope; did you mean 'ha'?
   13 |     ld dif = abs(ha - ma);
      |                       ^~
      |                       ha
Language: C

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
using P = pair<int,int>;
/* ちゃんと考えてわかって実装 */

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

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

#iclude<bits/stdc++.h>
using namespacec std;
int main()
{int n ;
 cin>>n;
 int j=n%10;
 if(j==0||j==1||j==6||j==8)
 {
   cout<<'pon'<<endl;
 }
 else if(j==3)

 {
   cout<<'bon'<<endl;
 }
  else
  {
  cout<<'hon'<<endl;
  }
  
  
  
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc:9:10: warning: multi-character character constant [-Wmultichar]
    9 |    cout<<'pon'<<endl;
      |          ^~~~~
a.cc:14:10: warning: multi-character character constant [-Wmultichar]
   14 |    cout<<'bon'<<endl;
      |          ^~~~~
a.cc:18:9: warning: multi-character character constant [-Wmultichar]
   18 |   cout<<'hon'<<endl;
      |         ^~~~~
a.cc:2:7: error: expected nested-name-specifier before 'namespacec'
    2 | using namespacec std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:2: error: 'cin' was not declared in this scope
    5 |  cin>>n;
      |  ^~~
a.cc:9:4: error: 'cout' was not declared in this scope
    9 |    cout<<'pon'<<endl;
      |    ^~~~
a.cc:9:17: error: 'endl' was not declared in this scope
    9 |    cout<<'pon'<<endl;
      |                 ^~~~
a.cc:14:4: error: 'cout' was not declared in this scope
   14 |    cout<<'bon'<<endl;
      |    ^~~~
a.cc:14:17: error: 'endl' was not declared in this scope
   14 |    cout<<'bon'<<endl;
      |                 ^~~~
a.cc:18:3: error: 'cout' was not declared in this scope
   18 |   cout<<'hon'<<endl;
      |   ^~~~
a.cc:18:16: error: 'endl' was not declared in this scope
   18 |   cout<<'hon'<<endl;
      |                ^~~~
Language: Java

import java.util.*

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        int a = nextInt();
        String s = String.valueOf(a);
        char[] work = new char[text.length()];
        
        for (int i = 0; i < text.length(); i++){
        	work[i] = text.charAt(i);
        }
        if (work[text.length-1] == '2' || work[text.length-1] == '4' || work[text.length-1] == '5' || work[text.length-1] == '7' || work[text.length-1] == '9'){
        	System.out.println("hon");
        }
        else if (work[text.length-1] == '0' || work[text.length-1] == '6' || work[text.length-1] == '1' || work[text.length-1] == '8'){
        	System.out.println("pon");
        }
        else{
        	System.out.println("bon");
        }
		
      
    }
}

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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> N;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:13:17: error: 'cout' was not declared in this scope
   13 |                 cout << "pon";
      |                 ^~~~
a.cc:13:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << "hon";
      |                 ^~~~
a.cc:16:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:17: error: 'cout' was not declared in this scope
   19 |                 cout << "bon";
      |                 ^~~~
a.cc:19:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:12:5: error: duplicate case value
   12 |     case 7: printf("hon");
      |     ^~~~
main.c:11:5: note: previously used here
   11 |     case 7:
      |     ^~~~
Language: Java

import java.util.*;

class Main{


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

       } else{
                         System.out.println("hon");

       }
     }

}

Compiler output:
Main.java:10: error: cannot find symbol
       char c= s.charAr(s.length()-1);
                ^
  symbol:   method charAr(int)
  location: variable s of type String
1 error
Language: Java

import java.util.*;

public class A{
	int N;
	Scanner reader = new Scanner(System.in);
	public static void main(String[]args) {
		 A p = new A();
		 p.run();
	}

	public void run() {
		N = reader.nextInt();
		if(N%10==3)
			System.out.print("bon");
		if(N%10==0||N%10==1||N%10==6||N%10==8)
			System.out.print("pon");
		else
			System.out.print("hon");
	}
}


Compiler output:
Main.java:3: 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 Therefore{
	int N;
	Scanner reader = new Scanner(System.in);
	public static void main(String[]args) {
		 Therefore p = new Therefore();
		 p.run();
	}

	public void run() {
		N = reader.nextInt();
		if(N%10==3)
			System.out.print("bon");
		if(N%10==0||N%10==1||N%10==6||N%10==8)
			System.out.print("pon");
		else
			System.out.print("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: Java

import java.util.*;

public class Snuke{
	int N;
	Scanner reader = new Scanner(System.in);
	public static void main(String[]args) {
		 Snuke p = new Snuke();
		 p.run();
	}

	public void run() {
		N = reader.nextInt();
		if(N%10==3)
			System.out.print("bon");
		if(N%10==0||N%10==1||N%10==6||N%10==8)
			System.out.print("pon");
		else
			System.out.print("hon");
	}
}


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

import java.util.*;

public class Snuke{
	int N;
	public static void main(String[]args) {
		 Snuke p = new Snuke();
		 p.run();
	}

	public void run() {
		N = reader.nextInt();
		if(N%10==3)
			System.out.print("bon");
		if(N%10==0||N%10==1||N%10==6||N%10==8)
			System.out.print("pon");
		else
			System.out.print("hon");
	}
}


Compiler output:
Main.java:3: error: class Snuke is public, should be declared in a file named Snuke.java
public class Snuke{
       ^
Main.java:11: error: cannot find symbol
		N = reader.nextInt();
		    ^
  symbol:   variable reader
  location: class Snuke
2 errors
Language: Java

import java.util.*;

public class Snuke{
	
	public static void main(String[]args) {
		 Snuke p = new Snuke();
		 p.run();
	}

	public void run() {
		N = reader.nextInt();
		if(N%10==3)
			System.out.print("bon");
		if(N%10==0||N%10==1||N%10==6||N%10==8)
			System.out.print("pon");
		else
			System.out.print("hon");
	}
}


Compiler output:
Main.java:3: error: class Snuke is public, should be declared in a file named Snuke.java
public class Snuke{
       ^
Main.java:11: error: cannot find symbol
		N = reader.nextInt();
		^
  symbol:   variable N
  location: class Snuke
Main.java:11: error: cannot find symbol
		N = reader.nextInt();
		    ^
  symbol:   variable reader
  location: class Snuke
Main.java:12: error: cannot find symbol
		if(N%10==3)
		   ^
  symbol:   variable N
  location: class Snuke
Main.java:14: error: cannot find symbol
		if(N%10==0||N%10==1||N%10==6||N%10==8)
		   ^
  symbol:   variable N
  location: class Snuke
Main.java:14: error: cannot find symbol
		if(N%10==0||N%10==1||N%10==6||N%10==8)
		            ^
  symbol:   variable N
  location: class Snuke
Main.java:14: error: cannot find symbol
		if(N%10==0||N%10==1||N%10==6||N%10==8)
		                     ^
  symbol:   variable N
  location: class Snuke
Main.java:14: error: cannot find symbol
		if(N%10==0||N%10==1||N%10==6||N%10==8)
		                              ^
  symbol:   variable N
  location: class Snuke
8 errors
Language: Java

import java.util.Scanner;

public class main {
	public static void main(String[] args){
		try(Scanner input = new Scanner(System.in)){
			String testCase = input.nextLine();
			solution(testCase);
		}
	}
	public static void solution(String str){
		String onesDigit = str.substring(str.length()-1);
		int x = Integer.parseInt(onesDigit);
		if (x==2||x==4||x==5||x==7||x==9){
			System.out.println("hon");
		}
		if (x==0||x==1||x==6||x==8){
			System.out.println("pon");
		}
		if (x==3){
			System.out.println("bon");
		}
	}
}


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

import java.util.Scanner;

public class one {
	public static void main(String[] args){
		try(Scanner input = new Scanner(System.in)){
			String testCase = input.nextLine();
			solution(testCase);
		}
	}
	public static void solution(String str){
		String onesDigit = str.substring(str.length()-1);
		int x = Integer.parseInt(onesDigit);
		if (x==2||x==4||x==5||x==7||x==9){
			System.out.println("hon");
		}
		if (x==0||x==1||x==6||x==8){
			System.out.println("pon");
		}
		if (x==3){
			System.out.println("bon");
		}
	}
}


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

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

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

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

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

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

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

Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
  public static void main(String[] args)
                ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.Scanner;

public class App {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        scan.close();

        int num2 = num % 10;

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


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

#include <bits/stdc++.h>
#define ll long long
#define db double
using namespace std;
int main()
{
    int x;
    cin>>x;
    x%=10;
    if(x==3) puts("bon");
    else if(x==1 || x==0 || x==6 || x==8)
        puts("pon");
    else pus("hon");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: 'pus' was not declared in this scope; did you mean 'puts'?
   13 |     else pus("hon");
      |          ^~~
      |          puts
Language: Java

import java.util.Scanner;

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


Compiler output:
Main.java:11: error: bad operand types for binary operator '||'
    }else if (num == 0 || num = 1 || NUM = 6 || NUM = 8){
                       ^
  first type:  boolean
  second type: int
Main.java:11: error: cannot find symbol
    }else if (num == 0 || num = 1 || NUM = 6 || NUM = 8){
                                     ^
  symbol:   variable NUM
  location: class Main
Main.java:11: error: cannot find symbol
    }else if (num == 0 || num = 1 || NUM = 6 || NUM = 8){
                                                ^
  symbol:   variable NUM
  location: class Main
3 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main {
       ^
Main.java:11: error: bad operand types for binary operator '||'
    }else if (num == 0 || 1 || 6 || 8){
                       ^
  first type:  boolean
  second type: int
2 errors
Language: Java

import java.util.Scanner;
public class guess{
  public static void main(String args[]){
      Scanner guess = new Scanner(System.in);
      System.out.println("Enter a number: ");
      int n = guess.nextInt(); 
      String number = String.valueOf(n);
      if(number.charAt(1) == 2 || number.charAt(1) == 4 || number.charAt(1)== 5 || number.charAt(1) == 7 || number.charAt(1) == 9){
          System.out.println("hon");
        }
        else if(number.charAt(1) == 0 || number.charAt(1) == 1 || number.charAt(1) == 6 || number.charAt(1) == 8){
            System.out.println("pon");
        }
      else{
          System.out.println("bon");
        }
      
}
}


Compiler output:
Main.java:2: error: class guess is public, should be declared in a file named guess.java
public class guess{
       ^
1 error
Language: Java

import java.util.*;
public class guess{
  static String translation(int n){
      String number = String.valueOf(n);
      
      if(number.charAt(1) == 2 || number.charAt(1) == 4 || number.charAt(1)== 5 || number.charAt(1) == 7 || number.charAt(1) == 9){
          System.out.println("hon");
        }
        else if(number.charAt(1) == 0 || number.charAt(1) == 1 || number.charAt(1) == 6 || number.charAt(1) == 8){
            System.out.println("pon");
        }
      else{
          System.out.println("bon");
        }
      return null;
}
}


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

#include <bits/stdc++.h>

using namespace std;

#define ll long long

int main() {

	ios::sync_with_stdio(false);
	cin.tie(0);

	int n;
	cin >> n;
	int t = n % 10;
	if(t == 2 || t == 4 || t == 5 || t == 7 || t == 9) cout << "hon\n";
	else if(t == 3) cout << "bon\n";i
	else cout << "pon\n";

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:41: error: 'i' was not declared in this scope
   16 |         else if(t == 3) cout << "bon\n";i
      |                                         ^
Language: Java

import java.util.*;
class java
{
  public static void main(String args[])
  {
    Scanner sc=new Scanner(System.in);
    String s,d;
    double k;
    k=sc.nextDouble();
    s=sc.nextLine();
    int p=s.length();
    if(k<p)
    {
      d=s.substring(0,k);
      System.out.println(d+"...");
    }
    else
    {
      System.out.println(s);
    }
  }
}

    

Compiler output:
Main.java:14: error: incompatible types: possible lossy conversion from double to int
      d=s.substring(0,k);
                      ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: C

#include<stdio.h>
int main()
{
  char c[1000]="",k;
  scanf("%d\n",&k);
  scanf("%s\n",c);
  int i,s=0;
  for(i=0;c[i]!='\0';i++)
  {
      s++;
  }
  
      if(k<s){
          for(i=0;i<k;i++)
          {
              printf("%c",c[i]);
          }
          printf("...");
      }
      else
      {
          
          for(i=0;i<n;i++)
          {
              printf("%c",c[i]);
          }
      }
    
  }

Compiler output:
main.c: In function 'main':
main.c:23:21: error: 'n' undeclared (first use in this function)
   23 |           for(i=0;i<n;i++)
      |                     ^
main.c:23:21: 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;
    int d;
    while(n != 0){
        d = n%10;
        n/=10;
    }

    switch(d){
        case 2: case 4:  case 5: case 7: case 9:
            cout << "hon";
            break;
        case 0: case 1: case 6: case 8:
            cout << "pon";
            break;
        case 3:
            cout << "bon";
            break;
        default: 
    }
    return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:5: error: expected primary-expression before '}' token
   24 |     }
      |     ^
Language: C++

#include <bits/stdc++.h>

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

    switch(n % 10){
        case 2: case 4:  case 5: case 7: case 9:
            cout << "hon";
            break;
        case 3:
            cout << "pon";
            break;
        default: cout << "bon";
        
    }
    return 0; 
}

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

#include <iostream>

using namespace std;

int main(void)
{
    int N;
    cin >> N;
    switch (N % 10)
    {
    case (2):
    case (4):
    case (5):
    case (7):
    case (9):
        cout << "hon\n";
        break;
    case (1):
    case (6):
    case (8):
    case (0):
        cout << "pon\n";
        break;
    default:
        cout << "bon";
    }
}


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

#include <math.h>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;


int main() {
    int K;
    string S;
    cin >> K >> S;
    string ans;
    if (S.size() < K) {
      for (int i = 0; i < K; i++) {
        ans += S[i];
      }
    }
    else {
      for (int i = 0; i < K; i++) {
        ans += S[i];
      }
      ans += "...";
    }
    cout << ans << endl;
    return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:26:14: error: expected '}' at end of input
   26 |     return 0;
      |              ^
a.cc:9:12: note: to match this '{'
    9 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h.
using namespace std;
int main(){
  string s;
  cin >> s;
  char c = s[s.size()-1];
  if(c == '2' || c == '4' || c == '5' || c == '7' || c == '9') cout << "hon\n";
  else if(c == '3') cout << "bon\n";
  else cout << "pon\n";
}

Compiler output:
a.cc:1:25: error: missing terminating > character
    1 | #include <bits/stdc++.h.
      |                         ^
a.cc:1:10: fatal error: bits/stdc++.h.: No such file or directory
    1 | #include <bits/stdc++.h.
      |          ^
compilation terminated.
Language: Java

public class Main {
	public static void main(String[] args) {
		 Scanner sc = new Scanner(System.in);
			String A = sc.nextLine();
	        char B = A.charAt(A.length() -1);

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

	}


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

public static void main(String[] args) {
			  int A = Input.getInt("数字入力>");
			  switch(A%10){
			  case 2:
			  case 4:
			  case 5:
			  case 7:
			  case 9:
				  System.out.println("hon");
				  break;
			  case 1:
			  case 6:
			  case 8:
				  System.out.println("pon");
			  case 3:
				  System.out.println("bon");
			  }     
	}

}


Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:20: error: class, interface, enum, or record expected
}
^
2 errors
Language: C

include <stdio.h>

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

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C++

#include<iostream>
#include<string>
#include<iomanip>
#include<cmath>
#include<vector>
#include<algorithm>
#include<utility>

using namespace std;

#define int long long
#define endl "\n"

constexpr long long INF = (long long)1e18;
constexpr long long MOD = 1'000'000'007; 

struct fast_io {
	fast_io(){
		std::cin.tie(nullptr);
		std::ios::sync_with_stdio(false);
	};
} fio;

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


#coding:utf-8
import RPi.GPIO as GPIO
import time

#macrio
led=24


#macrio
button=25

#settings
GPIO.setmode(GPIO.BCM)
GPIO.setup(led,GPIO.OUT,initial=GPIO.LOW)


#settings
GPIO.setmode(GPIO.BCM)
GPIO.setup(button,GPIO.IN,pull_up_down=GPIO.PUD_DOWN)

print("push button")
while True:
    btn = GPIO.input(button)
    if btn == True:
         GPIO.output(led, 1)
         time.sleep(6)
         GPIO.output(led, 0)
         break;
    time.sleep(1)
#coding:utf-8
import RPi.GPIO as GPIO
import time

#macrio
led=24


#macrio
button=25

#settings
GPIO.setmode(GPIO.BCM)
GPIO.setup(led,GPIO.OUT,initial=GPIO.LOW)


#settings
GPIO.setmode(GPIO.BCM)
GPIO.setup(button,GPIO.IN,pull_up_down=GPIO.PUD_DOWN)

print("push button")
while True:
    btn = GPIO.input(button)
    if btn == True:
         GPIO.output(led, 1)
         time.sleep(6)
         GPIO.output(led, 0)
         break;
    time.sleep(1)


Compiler output:
a.cc:43:2: error: invalid preprocessing directive #coding
   43 | #coding:utf-8
      |  ^~~~~~
a.cc:47:2: error: invalid preprocessing directive #macrio
   47 | #macrio
      |  ^~~~~~
a.cc:51:2: error: invalid preprocessing directive #macrio
   51 | #macrio
      |  ^~~~~~
a.cc:54:2: error: invalid preprocessing directive #settings
   54 | #settings
      |  ^~~~~~~~
a.cc:59:2: error: invalid preprocessing directive #settings
   59 | #settings
      |  ^~~~~~~~
a.cc:72:2: error: invalid preprocessing directive #coding
   72 | #coding:utf-8
      |  ^~~~~~
a.cc:76:2: error: invalid preprocessing directive #macrio
   76 | #macrio
      |  ^~~~~~
a.cc:80:2: error: invalid preprocessing directive #macrio
   80 | #macrio
      |  ^~~~~~
a.cc:83:2: error: invalid preprocessing directive #settings
   83 | #settings
      |  ^~~~~~~~
a.cc:88:2: error: invalid preprocessing directive #settings
   88 | #settings
      |  ^~~~~~~~
a.cc:44:1: error: 'import' does not name a type
   44 | import RPi.GPIO as GPIO
      | ^~~~~~
a.cc:44:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:71:5: error: 'time' does not name a type
   71 |     time.sleep(1)
      |     ^~~~
a.cc:8:1: note: 'time' is defined in header '<ctime>'; this is probably fixable by adding '#include <ctime>'
    7 | #include<utility>
  +++ |+#include <ctime>
    8 | 
a.cc:100:5: error: 'time' does not name a type
  100 |     time.sleep(1)
      |     ^~~~
a.cc:100:5: note: 'time' is defined in header '<ctime>'; this is probably fixable by adding '#include <ctime>'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: redeclaration of 'int n'
    7 |         int n = n%10;
      |             ^
a.cc:5:13: note: 'int n' previously declared here
    5 |         int n;
      |             ^
Language: Java

import java.util.*;
import java.lang.*;
import java.io.*;
public class example
{
	static String check(int num)
	{
		if(num==3) return "bon";
		else if(num==0 || num==1 || num==6 || num==8) return "pon";
		else return "hon";
	}
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int num = n%10;
		System.out.println(check(num));
	}
}

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

 #include<bits/stdc++.h>
using namespace std;
#define lli long long int
#define pb push_back
#define forr(i,x,y) for(int i=x;i< y;i++)
#define sci(x) int x; cin>>x;
#define scii(x,y) int x,y; cin>>x>>y;
#define sciii(x,y,z) int x,y,z; cin>>x>>y>>z;
#define tc(x) sci(x); while(x--)
int main(){
    int n;
    cin>>n;
    int x =n%10;
    if(x==2||x==4||x==5||x==7||x==9)cout<<"hon"<<endl;
    else if(x==0||x==1||x==6||x==8)cout<<"pon"<<endl;
    else cout<<bon<<endl;
    return 0;
}

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

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

int main(){
    ios::sync_with_stdio(false);
    cin.tie(NULL);
    int n;
    cin>>n;
    n=n%10;
    if(n==2 || n==4 || n==5 || n==7 || n==9)
        cout<<"hon"<<endl;
    if(n==0 || n==1 || n==6 || n=8)
        cout<<"pon"<<endl;
    if(n==3)
        cout<<"bon"<<endl;
    return 0;
}

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'scanf' was not declared in this scope
    3 |   scanf("%d",N);
      |   ^~~~~
a.cc:6:44: error: 'printf' was not declared in this scope
    6 |   if(n==2 || n==4 || n==5 || n==7 || n==9) printf("hon");
      |                                            ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:7:37: error: 'printf' was not declared in this scope
    7 |   if(n==0 || n==1 || n==6 || n==8 ) printf("pon");
      |                                     ^~~~~~
a.cc:7:37: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:8:12: error: 'printf' was not declared in this scope
    8 |   if(n==3) printf("bon");
      |            ^~~~~~
a.cc:8:12: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: Java

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

        int longHand = sc.nextInt();
        int shortHand = sc.nextInt();
        int hour = sc.nextInt();
        int minutes = sc.nextInt();

        double hourAngle = 360 * hour / 12 + 30 * minutes /60;
        double minutesAngle = 360 * minutes / 60;
        double angleDiff = hourAngle - minutesAngle;

        if ( angleDiff <= 180.0){
            angleDiff = angleDiff;
        }else{
            angleDiff = 360 - angleDiff;
        }
        double cosine = Math.cos(Math.toRadians(angleDiff));

        double squrt = longHand * longHand + shortHand * shortHand - 2 * longHand * shortHand * cosine;
        double answer = Math.sqrt(squrt);

    
        System.out.println(answer);
    }
}

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

import java.util.Scanner;
public class atcoder {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt();
		
		if(n<=9) {
			if(n==2 || n==4 || n==5 || n==7 || n==9) {
		
				System.out.println("hon");
			
			}else if(n==3){
			
				System.out.println("pon");
				
			}else {
				System.out.println("bon");
			}
		}else()

	}

}

Compiler output:
Main.java:22: error: -> expected
		}else()
		       ^
Main.java:24: error: illegal start of expression
	}
	^
Main.java:22: error: not a statement
		}else()
		     ^
3 errors
Language: Java


import java.util.Scanner;

public class Solution {
    Scanner in = new Scanner(System.in);

    String run() {
        int N = in.nextInt();
        switch (N % 10) {
            case 3:
                return "bon";
            case 0:
            case 1:
            case 6:
            case 8:
                return "pon";
            default:
                return "hon";
        }
    }

    public static void main(String[] args) {
        System.out.println(new Solution().run());
    }
}


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


import java.util.Scanner;

public class A {
    Scanner in = new Scanner(System.in);

    String run() {
        int N = in.nextInt();
        switch (N % 10) {
            case 3:
                return "bon";
            case 0:
            case 1:
            case 6:
            case 8:
                return "pon";
            default:
                return "hon";
        }
    }

    public static void main(String[] args) {
        System.out.println(new A().run());
    }
}


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

import java.util.Scanner;

public class Main{
  
  public static void main(String[] args){
    
    Scanner scan = new Scanner(System.in);
    int how = scan.nextInt();
    int count = 0;
    count = how%10;
    
    if(count = 3){
      System.out.println("bon");
    }else if(count = 0){
      System.out.println("pon");
    }else if(count = 1){
      System.out.println("pon");
    }else if(count = 6){
      System.out.println("pon");
    }else if(count = 8){
      System.out.println("pon");
    }else{
      System.out.println("hon");
    }

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

import java.util.*;
public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
    	int number = scan.next();
    
		if(number % 10 == 2 ||number % 10 == 4 ||number % 10 == 5 ||number % 10 == 7 ||number % 10 == 9){
    		System.out.println("hon");
		}else if(number % 10 == 3 ){
    		System.out.println("bon");
    	}else{
          System.out.println("pon");
        }
    
	}
}

Compiler output:
Main.java:5: error: incompatible types: String cannot be converted to int
    	int number = scan.next();
    	                      ^
1 error
Language: C++

#include<iostream>
#include<vector>
#include<string>
using namespace std;
 
int main()
{
    int n;
    cin >> n;
    const char* hon = "hon";
    const char* pon = "pon";
    const char* bon = "bon";
    switch (n%10)
    {
    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;
#include<iostream>
#include<vector>
#include<string>
using namespace std;

int main()
{
    int n;
    cin >> n;
    const char* hon = "hon";
    const char* pon = "pon";
    const char* bon = "bon";
    switch (n%10)
    {
    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:38:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   38 | int main()
      |         ^~
a.cc:38:9: note: remove parentheses to default-initialize a variable
   38 | int main()
      |         ^~
      |         --
a.cc:38:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:39:1: error: a function-definition is not allowed here before '{' token
   39 | {
      | ^
a.cc:65:2: error: expected '}' at end of input
   65 | }
      |  ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
Language: C++

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

int main()
{
    int n;
    cin >> n;
    const char* hon = "hon";
    const char* pon = "pon";
    const char* bon = "bon";
    switch (n%10)
    {
    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:32:14: error: expected '}' at end of input
   32 |     return 0;
      |              ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:48: error: expected ';' before '{' token
   15 |   else (rem==2||rem==4||rem==5||rem==7||rem==9){
      |                                                ^
      |                                                ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:33: error: 'rem7' was not declared in this scope; did you mean 'rem'?
   15 |   else (rem==2||rem==4||rem==5||rem7||rem==9){
      |                                 ^~~~
      |                                 rem
Language: C

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

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

class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		n = n % 10;
		if(n==3){
			System.out.println("bon");
		}else if(n==0||n==1||n==6||n==8){
			System.out.println("pon");
		}else{
			System.out.println("hon");
		}
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner in = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Ideone
Main.java:5: error: cannot find symbol
		Scanner in = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Ideone
2 errors