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

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


Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include<iostream>;
      |                   ^
a.cc: In function 'int main()':
a.cc:17:7: error: duplicate case value
   17 |       case 0||1||6||8:cout<<"hon"<<endl;
      |       ^~~~
a.cc:15:7: note: previously used here
   15 |       case 2||4||5||7||9:cout<<"pon"<<endl;
      |       ^~~~
a.cc:28:7: error: duplicate case value
   28 |       case 0||1||6||8:cout<<"hon"<<endl;
      |       ^~~~
a.cc:26:7: note: previously used here
   26 |       case 2||4||5||7||9:cout<<"pon"<<endl;
      |       ^~~~
a.cc:39:7: error: duplicate case value
   39 |       case 0||1||6||8:cout<<"hon"<<endl;
      |       ^~~~
a.cc:37:7: note: previously used here
   37 |       case 2||4||5||7||9:cout<<"pon"<<endl;
      |       ^~~~
Language: C++

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


Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include<iostream>;
      |                   ^
a.cc: In function 'int main()':
a.cc:8:13: error: expected ';' before '}' token
    8 |     Ketasu=1}
      |             ^
      |             ;
a.cc:10:13: error: expected ';' before '}' token
   10 |     Ketasu=2}
      |             ^
      |             ;
a.cc:12:13: error: expected ';' before '}' token
   12 |     Ketasu=3}
      |             ^
      |             ;
a.cc:17:7: error: duplicate case value
   17 |       case 0||1||6||8:cout<<"hon"<<endl;
      |       ^~~~
a.cc:15:7: note: previously used here
   15 |       case 2||4||5||7||9:cout<<"pon"<<endl;
      |       ^~~~
a.cc:28:7: error: duplicate case value
   28 |       case 0||1||6||8:cout<<"hon"<<endl;
      |       ^~~~
a.cc:26:7: note: previously used here
   26 |       case 2||4||5||7||9:cout<<"pon"<<endl;
      |       ^~~~
a.cc:39:7: error: duplicate case value
   39 |       case 0||1||6||8:cout<<"hon"<<endl;
      |       ^~~~
a.cc:37:7: note: previously used here
   37 |       case 2||4||5||7||9:cout<<"pon"<<endl;
      |       ^~~~
Language: Java

import java.util.*;

public class Solution{
  public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.nextLine();
    if(s == null) System.out.println("");
    else{
     	char c = s.charAt(s.length()-1);
    	String str;
		if(c == '2' || c == '4' || c == '5' || c == '7' || c == '9') str = "hon";
    	else if(c == '0' ||c == '1' || c == '6' || c =='8') str = "pon";
    	else str = "bon";
		System.out.println(str);
    }
  }
}


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

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

int main() {
  int N;
  cin >> N;
  int a;
  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;
}


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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:47: error: expected primary-expression before ')' token
   10 |   if( a==2 || a==4 || a==5 || a==7 || a==9 || ){ std::cout << "hon" <<std::endl;}
      |                                               ^
a.cc:11:39: error: expected primary-expression before ')' token
   11 |   if( a==0 || a==1 || a==6 || a==8 || ){ std::cout << "pon" <<std::endl;}
      |                                       ^
Language: C++

#include<iostream>
using namespace std;

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

	return 0;
}

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

#include<iostream>
uisng namespace std;

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

	return 0;
}

Compiler output:
a.cc:2:1: error: 'uisng' does not name a type
    2 | uisng namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin>>n;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:26: error: lvalue required as left operand of assignment
    8 |     if(t==0 || t==1||t==6||t=8)
      |        ~~~~~~~~~~~~~~~~~~^~~
a.cc:9:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |       cout<<"pon"<<endl;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |       cout<<"pon"<<endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |       cout<<"bon"<<endl;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |       cout<<"bon"<<endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |       cout<<"hon"<<endl;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |       cout<<"hon"<<endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

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


Compiler output:
Main.java:7: error: cannot find symbol
  System.out.pritnln("hon");
            ^
  symbol:   method pritnln(String)
  location: variable out of type PrintStream
Main.java:10: error: cannot find symbol
  System.out.pritnln("pon");
            ^
  symbol:   method pritnln(String)
  location: variable out of type PrintStream
Main.java:14: error: cannot find symbol
  System.out.pritnln("bon");
            ^
  symbol:   method pritnln(String)
  location: variable out of type PrintStream
3 errors
Language: Java

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


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
importjava.util.Scanner;
^
1 error
Language: Java

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

Compiler output:
Main.java:2: 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, m) for (int i = (int)(n); i < (int)(m); i++)
#define repr(i, n, m) for (int i = (int)(n) - 1; i >= (int)(m); i--)
using namespace std;
using ll = int64_t;
const int MOD = 1000000007; // 10^9+7

int main() {
    string n; cin >> n;
    int a = n[n.size() - 1] - '0';a

    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:36: error: expected ';' before 'if'
   10 |     int a = n[n.size() - 1] - '0';a
      |                                    ^
      |                                    ;
   11 | 
   12 |     if (a == 3) cout << "bon" << endl;
      |     ~~                              
a.cc:13:5: error: 'else' without a previous 'if'
   13 |     else if (a == 0 || a == 1 || a == 6 || a == 8) cout << "pon" << endl;
      |     ^~~~
Language: C++

#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
int n;
cin >> n;
switch(n%10)
{
case  2:
case 4:
case 5:
case 7:
case 9: cout << "hon";
break;
case  0:
case 1:
case 6:
case 8: cot << "pon";
break;
case 3: cout << "bon";
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: 'cot' was not declared in this scope
   19 | case 8: cot << "pon";
      |         ^~~
Language: C++


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

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



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

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

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

  vector<int> data1 = {2, 4, 5, 7, 9};
  vector<int> data2 = {0, 1, 6, 8};
  vector<int> data3 = {3};

  for (int i = 0; i < 5; i++){
    if (N % 10 == data1.at(i)){
      cout << "hon" << endl;
      break;
    }
  }

  for (int i = 0; i < 4; i++) {
    if (N % 10 == data2.at(i)) {
      cout << "pon" << endl;
    }
  }

  if (N % 10 == data3.(0)) {
    cout << "bon" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:23: error: expected unqualified-id before '(' token
   25 |   if (N % 10 == data3.(0)) {
      |                       ^
Language: C++

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

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

  vector<int> data1 = {2, 4, 5, 7, 9}
  vector<int> data2 = {0, 1, 6, 8}
  vector<int> data3 = {3}

  for (int i = 0; i < 5; i++){
    if (N % 10 == data1.at(i)){
      cout << "hon" << endl;
      break;
    }
  }

  for (int i = 0; i < 4; i++) {
    if (N % 10 == data2.at(i)) {
      cout << "pon" << endl;
    }
  }

  if (N % 10 == data3.(0)) {
    cout << "bon" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'vector'
    9 |   vector<int> data2 = {0, 1, 6, 8}
      |   ^~~~~~
a.cc:12:3: error: expected ',' or ';' before 'for'
   12 |   for (int i = 0; i < 5; i++){
      |   ^~~
a.cc:12:19: error: 'i' was not declared in this scope
   12 |   for (int i = 0; i < 5; i++){
      |                   ^
a.cc:20:19: error: 'data2' was not declared in this scope; did you mean 'data3'?
   20 |     if (N % 10 == data2.at(i)) {
      |                   ^~~~~
      |                   data3
a.cc:25:23: error: expected unqualified-id before '(' token
   25 |   if (N % 10 == data3.(0)) {
      |                       ^
Language: C++

#include<iostream>

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


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

#include<bits\stdc++.h>

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

Compiler output:
a.cc:1:9: fatal error: bits\stdc++.h: No such file or directory
    1 | #include<bits\stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.io.*;
public class Main{
  public static void main(String[] args) throws IOException{
    
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    int A,B,H,M;
    
    try{
      String[] contexts = reader.readLine().split(" ");
      A = Integer.parseInt(contexts[0]);
      B = Integer.parseInt(contexts[1]);
      H = Integer.parseInt(contexts[2]);
      M = Integer.parseInt(contexts[3]);
    }finally{
      reader.close();
    }
    
    // 角度
    int intAngle = Math.abs((360 / 12) * H - (360 / 60) * M);
    
    // 長さ
    double dblLen;
    dblLen += Math.pow(A * 1.0, 2.0)
    dblLen += Math.pow(B * 1.0, 2.0)
    dblLen -= 2.0 * A * B * Math.cos(Math.toRadians(intAngle));
    
    System.out.print(sqrt(dblLen));
  }
}


Compiler output:
Main.java:23: error: ';' expected
    dblLen += Math.pow(A * 1.0, 2.0)
                                    ^
Main.java:24: error: ';' expected
    dblLen += Math.pow(B * 1.0, 2.0)
                                    ^
2 errors
Language: Java

import java.io.*;
public class Main{
  public static void main(String[] args) throws IOException{
    
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    int A,B,H,M;
    
    try{
      String[] contexts = reader.readLine().split(" ");
      A = Integer.parseInt(contexts[0]);
      B = Integer.parseInt(contexts[1]);
      H = Integer.parseInt(contexts[2]);
      M = Integer.parseInt(contexts[3]);
    }finally{
      reader.close();
    }
    
    // 角度
    int intAngle = Math.abs((360 / 12) * H - (360 / 60) * M);
    
    // 長さ
    double dblLen;
    dblLen += Math.pow(A * 1.0, 2.0);
    dblLen += Math.pow(B * 1.0, 2.0);
    dblLen -= 2.0 * A * B * Math.cos(Math.toRadians(intAngle));
    
    System.out.print(sqrt(dblLen));
}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: lvalue required as left operand of assignment
    9 |   else if(s=0||s=1||s=6||s=8) cout<<"pon"<<endl;
      |                       ~^~~
Language: C++

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

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

#include<iostream>
using namespace std;
int mai(){
  int N=0;
  cin>>N;
  int a=N%10;
  	if(a==3) cout<<"bon";
  	else if(a==0||a==1||a==6||a==8) cout<<"pon";
  	else cout<<"hon";
}

Compiler output:
a.cc: In function 'int mai()':
a.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:6:49: error: lvalue required as left operand of assignment
    6 |   if ( n%10 =1 ||  n%10 =6 ||  n%10 =8 ||  n%10 =0 ){
      |                                                 ^
main.c:9:17: error: lvalue required as left operand of assignment
    9 |   else if (n%10 =3){
      |                 ^
Language: C

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

  
  
  

Compiler output:
main.c: In function 'main':
main.c:6:49: error: lvalue required as left operand of assignment
    6 |   if ( n%10 =1 ||  n%10 =6 ||  n%10 =8 ||  n%10 =0 );
      |                                                 ^
main.c:8:3: error: 'else' without a previous 'if'
    8 |   else if (n%10 =3);
      |   ^~~~
main.c:8:17: error: lvalue required as left operand of assignment
    8 |   else if (n%10 =3);
      |                 ^
main.c:10:3: error: 'else' without a previous 'if'
   10 |   else ;
      |   ^~~~
Language: C++

#include <iostream>
#include <string.h>
using namespace std;
int main() {
    int n_int;
    std::string n;
    cin >> n_int;
    n=std::to_string(n_int);
    int size = n.size();
    std::string out = "hon";
    if(n[size] == '0'){out = "pon";}
    else if(n[size] == '1'){out = "pon";}
    else if(n[size] == '6'){out = "pon";}
    else if(n[size] == '8'){out = "pon";}
    else if(n[size] == '3'){out = "bon";}
    cout << out << "\n";}

}


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

#include <iostream>
#include <string.h>
using namespace std;
int main() {
    int n_int;
    std::string n;
    cin >> n_int;
    n=std::to_string(n_int);
    int size = n.size();
    std::string out == "hon";
    if(n[size] == '0'){out = "pon";}
    else if(n[size] == '1'){out = "pon";}
    else if(n[size] == '6'){out = "pon";}
    else if(n[size] == '8'){out = "pon";}
    else if(n[size] == '3'){out = "bon";}
    cout << out << "\n";}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: expected initializer before '==' token
   10 |     std::string out == "hon";
      |                     ^~
a.cc:11:24: error: 'out' was not declared in this scope
   11 |     if(n[size] == '0'){out = "pon";}
      |                        ^~~
a.cc:12:29: error: 'out' was not declared in this scope
   12 |     else if(n[size] == '1'){out = "pon";}
      |                             ^~~
a.cc:13:29: error: 'out' was not declared in this scope
   13 |     else if(n[size] == '6'){out = "pon";}
      |                             ^~~
a.cc:14:29: error: 'out' was not declared in this scope
   14 |     else if(n[size] == '8'){out = "pon";}
      |                             ^~~
a.cc:15:29: error: 'out' was not declared in this scope
   15 |     else if(n[size] == '3'){out = "bon";}
      |                             ^~~
a.cc:16:13: error: 'out' was not declared in this scope
   16 |     cout << out << "\n";}
      |             ^~~
a.cc: At global scope:
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include <iostream>
#include <string.h>
using namespace std;
int main() {
    int n_int;
    std::string n;
    cin >> n_int;
    n=std::to_string(n_int);
    int size = n.size();
    std::string out == "hon"
    if(n[size] == '0'){out = "pon";}
    else if(n[size] == '1'){out = "pon";}
    else if(n[size] == '6'){out = "pon";}
    else if(n[size] == '8'){out = "pon";}
    else if(n[size] == '3'){out = "bon";}
    cout << out << "\n";}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: expected initializer before '==' token
   10 |     std::string out == "hon"
      |                     ^~
a.cc:12:5: error: 'else' without a previous 'if'
   12 |     else if(n[size] == '1'){out = "pon";}
      |     ^~~~
a.cc:12:29: error: 'out' was not declared in this scope
   12 |     else if(n[size] == '1'){out = "pon";}
      |                             ^~~
a.cc:13:29: error: 'out' was not declared in this scope
   13 |     else if(n[size] == '6'){out = "pon";}
      |                             ^~~
a.cc:14:29: error: 'out' was not declared in this scope
   14 |     else if(n[size] == '8'){out = "pon";}
      |                             ^~~
a.cc:15:29: error: 'out' was not declared in this scope
   15 |     else if(n[size] == '3'){out = "bon";}
      |                             ^~~
a.cc:16:13: error: 'out' was not declared in this scope
   16 |     cout << out << "\n";}
      |             ^~~
a.cc: At global scope:
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include <iostream>
#include <string.h>
using namespace std;
int main() {
    int n_int;
    std::string n;
    cin >> n_int;
    n=std::to_string(n_int);
    if(n[n.size()] == '2' || n[n.size()] == '4' || n[n.size()] == '5' || n['] == '7' || n[n.size()] == '9'){
          cout << "hon" << "\n";}
  else     if(n[n.size()] == '0'|| n[n.size()] == '1' || n[n.size()] == '6' || n[n.size()] == '8' ){
          cout << "pon" << "\n";}
  else     if(n[n.size()] == '3'){
          cout << "ban" << "\n";}

}


Compiler output:
a.cc:9:76: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    9 |     if(n[n.size()] == '2' || n[n.size()] == '4' || n[n.size()] == '5' || n['] == '7' || n[n.size()] == '9'){
      |                                                                            ^~~~~~~
a.cc:9:84: warning: multi-character literal with 19 characters exceeds 'int' size of 4 bytes
    9 |     if(n[n.size()] == '2' || n[n.size()] == '4' || n[n.size()] == '5' || n['] == '7' || n[n.size()] == '9'){
      |                                                                                    ^~~~~~~~~~~~~~~~~~~~~
a.cc:9:106: warning: missing terminating ' character
    9 |     if(n[n.size()] == '2' || n[n.size()] == '4' || n[n.size()] == '5' || n['] == '7' || n[n.size()] == '9'){
      |                                                                                                          ^
a.cc:9:106: error: missing terminating ' character
    9 |     if(n[n.size()] == '2' || n[n.size()] == '4' || n[n.size()] == '5' || n['] == '7' || n[n.size()] == '9'){
      |                                                                                                          ^~~
a.cc: In function 'int main()':
a.cc:9:83: error: expected ']' before numeric constant
    9 |     if(n[n.size()] == '2' || n[n.size()] == '4' || n[n.size()] == '5' || n['] == '7' || n[n.size()] == '9'){
      |                                                                                   ^
      |                                                                                   ]
a.cc:9:83: error: expected ')' before numeric constant
    9 |     if(n[n.size()] == '2' || n[n.size()] == '4' || n[n.size()] == '5' || n['] == '7' || n[n.size()] == '9'){
      |       ~                                                                           ^
      |                                                                                   )
a.cc: At global scope:
a.cc:11:3: error: expected unqualified-id before 'else'
   11 |   else     if(n[n.size()] == '0'|| n[n.size()] == '1' || n[n.size()] == '6' || n[n.size()] == '8' ){
      |   ^~~~
a.cc:13:3: error: expected unqualified-id before 'else'
   13 |   else     if(n[n.size()] == '3'){
      |   ^~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

#include <iostream>
#include <string.h>
using namespace std;
int main() {
    int n_int;
    std::string n;
    cin >> n_int;
    n=std::to_string(n_int);
    if(n[n.size()] == "2" || n[n.size()] == "4" || n[n.size()] == "5" || n[n.size()] == "7" || n[-1] == "9"){
          cout << "hon" << "\n";}
  else     if(n[n.size()] == "0"|| n[n.size()] == "1" || n[n.size()] == "6" || n[n.size()] == "8" ){
          cout << "pon" << "\n";}
  else     if(n[n.size()] == "3"){
          cout << "ban" << "\n";}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(n[n.size()] == "2" || n[n.size()] == "4" || n[n.size()] == "5" || n[n.size()] == "7" || n[-1] == "9"){
a.cc:9:42: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(n[n.size()] == "2" || n[n.size()] == "4" || n[n.size()] == "5" || n[n.size()] == "7" || n[-1] == "9"){
a.cc:9:64: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(n[n.size()] == "2" || n[n.size()] == "4" || n[n.size()] == "5" || n[n.size()] == "7" || n[-1] == "9"){
a.cc:9:86: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(n[n.size()] == "2" || n[n.size()] == "4" || n[n.size()] == "5" || n[n.size()] == "7" || n[-1] == "9"){
a.cc:9:102: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(n[n.size()] == "2" || n[n.size()] == "4" || n[n.size()] == "5" || n[n.size()] == "7" || n[-1] == "9"){
a.cc:11:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   else     if(n[n.size()] == "0"|| n[n.size()] == "1" || n[n.size()] == "6" || n[n.size()] == "8" ){
a.cc:11:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   else     if(n[n.size()] == "0"|| n[n.size()] == "1" || n[n.size()] == "6" || n[n.size()] == "8" ){
a.cc:11:70: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   else     if(n[n.size()] == "0"|| n[n.size()] == "1" || n[n.size()] == "6" || n[n.size()] == "8" ){
a.cc:11:92: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   else     if(n[n.size()] == "0"|| n[n.size()] == "1" || n[n.size()] == "6" || n[n.size()] == "8" ){
a.cc:13:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   else     if(n[n.size()] == "3"){
Language: C++

#include <iostream>
#include <string.h>
using namespace std;
int main() {
    int n_int;
    std::string n;
    cin >> n_int;
    n=std::to_string(n_int);
    if(n[-1] == "2" || n[-1] == "4" || n[-1] == "5" || n[-1] == "7" || n[-1] == "9"){
          cout << "hon" << "\n";}
  else     if(n[-1] == "0"|| n[-1] == "1" || n[-1] == "6" || n[-1] == "8" ){
          cout << "pon" << "\n";}
  else     if(n[-1] == "3"){
          cout << "ban" << "\n";}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(n[-1] == "2" || n[-1] == "4" || n[-1] == "5" || n[-1] == "7" || n[-1] == "9"){
a.cc:9:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(n[-1] == "2" || n[-1] == "4" || n[-1] == "5" || n[-1] == "7" || n[-1] == "9"){
a.cc:9:46: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(n[-1] == "2" || n[-1] == "4" || n[-1] == "5" || n[-1] == "7" || n[-1] == "9"){
a.cc:9:62: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(n[-1] == "2" || n[-1] == "4" || n[-1] == "5" || n[-1] == "7" || n[-1] == "9"){
a.cc:9:78: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(n[-1] == "2" || n[-1] == "4" || n[-1] == "5" || n[-1] == "7" || n[-1] == "9"){
a.cc:11:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   else     if(n[-1] == "0"|| n[-1] == "1" || n[-1] == "6" || n[-1] == "8" ){
a.cc:11:36: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   else     if(n[-1] == "0"|| n[-1] == "1" || n[-1] == "6" || n[-1] == "8" ){
a.cc:11:52: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   else     if(n[-1] == "0"|| n[-1] == "1" || n[-1] == "6" || n[-1] == "8" ){
a.cc:11:68: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   else     if(n[-1] == "0"|| n[-1] == "1" || n[-1] == "6" || n[-1] == "8" ){
a.cc:13:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   else     if(n[-1] == "3"){
Language: C++

#include <iostream>
#include <string.h>
using namespace std;
int main() {
    int n_int;
    std::string n;
    cin >> n;
    n=std::to_string(n_int);
    if(n[-1] == "2" || n[-1] == "4" || n[-1] == "5" || n[-1] == "7" || n[-1] == "9"){
          cout << "hon" << "\n";}
  else     if(n[-1] == "0"|| n[-1] == "1" || n[-1] == "6" || n[-1] == "8" ){
          cout << "pon" << "\n";}
  else     if(n[-1] == "3"){
          cout << "ban" << "\n";}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(n[-1] == "2" || n[-1] == "4" || n[-1] == "5" || n[-1] == "7" || n[-1] == "9"){
a.cc:9:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(n[-1] == "2" || n[-1] == "4" || n[-1] == "5" || n[-1] == "7" || n[-1] == "9"){
a.cc:9:46: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(n[-1] == "2" || n[-1] == "4" || n[-1] == "5" || n[-1] == "7" || n[-1] == "9"){
a.cc:9:62: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(n[-1] == "2" || n[-1] == "4" || n[-1] == "5" || n[-1] == "7" || n[-1] == "9"){
a.cc:9:78: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(n[-1] == "2" || n[-1] == "4" || n[-1] == "5" || n[-1] == "7" || n[-1] == "9"){
a.cc:11:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   else     if(n[-1] == "0"|| n[-1] == "1" || n[-1] == "6" || n[-1] == "8" ){
a.cc:11:36: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   else     if(n[-1] == "0"|| n[-1] == "1" || n[-1] == "6" || n[-1] == "8" ){
a.cc:11:52: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   else     if(n[-1] == "0"|| n[-1] == "1" || n[-1] == "6" || n[-1] == "8" ){
a.cc:11:68: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   else     if(n[-1] == "0"|| n[-1] == "1" || n[-1] == "6" || n[-1] == "8" ){
a.cc:13:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   else     if(n[-1] == "3"){
Language: C++

#include <iostream>
#include <string.h>
using namespace std;
int main() {
    int n;
    cin >> n;
    n=std::to_string(n);
    if(n[-1] == "2" || n[-1] == "4" || n[-1] == "5" || n[-1] == "7" || n[-1] == "9"){
          cout << "hon" << "\n";}
  else     if(n[-1] == "0"|| n[-1] == "1" || n[-1] == "6" || n[-1] == "8" ){
          cout << "pon" << "\n";}
  else     if(n[-1] == "3"){
          cout << "ban" << "\n";}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int' in assignment
    7 |     n=std::to_string(n);
      |       ~~~~~~~~~~~~~~^~~
      |                     |
      |                     std::string {aka std::__cxx11::basic_string<char>}
a.cc:8:9: error: invalid types 'int[int]' for array subscript
    8 |     if(n[-1] == "2" || n[-1] == "4" || n[-1] == "5" || n[-1] == "7" || n[-1] == "9"){
      |         ^
a.cc:8:25: error: invalid types 'int[int]' for array subscript
    8 |     if(n[-1] == "2" || n[-1] == "4" || n[-1] == "5" || n[-1] == "7" || n[-1] == "9"){
      |                         ^
a.cc:8:41: error: invalid types 'int[int]' for array subscript
    8 |     if(n[-1] == "2" || n[-1] == "4" || n[-1] == "5" || n[-1] == "7" || n[-1] == "9"){
      |                                         ^
a.cc:8:57: error: invalid types 'int[int]' for array subscript
    8 |     if(n[-1] == "2" || n[-1] == "4" || n[-1] == "5" || n[-1] == "7" || n[-1] == "9"){
      |                                                         ^
a.cc:8:73: error: invalid types 'int[int]' for array subscript
    8 |     if(n[-1] == "2" || n[-1] == "4" || n[-1] == "5" || n[-1] == "7" || n[-1] == "9"){
      |                                                                         ^
a.cc:10:16: error: invalid types 'int[int]' for array subscript
   10 |   else     if(n[-1] == "0"|| n[-1] == "1" || n[-1] == "6" || n[-1] == "8" ){
      |                ^
a.cc:10:31: error: invalid types 'int[int]' for array subscript
   10 |   else     if(n[-1] == "0"|| n[-1] == "1" || n[-1] == "6" || n[-1] == "8" ){
      |                               ^
a.cc:10:47: error: invalid types 'int[int]' for array subscript
   10 |   else     if(n[-1] == "0"|| n[-1] == "1" || n[-1] == "6" || n[-1] == "8" ){
      |                                               ^
a.cc:10:63: error: invalid types 'int[int]' for array subscript
   10 |   else     if(n[-1] == "0"|| n[-1] == "1" || n[-1] == "6" || n[-1] == "8" ){
      |                                                               ^
a.cc:12:16: error: invalid types 'int[int]' for array subscript
   12 |   else     if(n[-1] == "3"){
      |                ^
Language: C++

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

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

   string s[9] = {"pon", "pon", "hon", "bon", "hon", "hon", "pon", "hon", "pon", "hon"};

   cout << s[n % 10] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:87: error: too many initializers for 'std::string [9]' {aka 'std::__cxx11::basic_string<char> [9]'}
   11 |    string s[9] = {"pon", "pon", "hon", "bon", "hon", "hon", "pon", "hon", "pon", "hon"};
      |                                                                                       ^
Language: Java

import java.util.Scanner;

public class A {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Integer number = scanner.nextInt();

        if (number >= 10) {
            number = number % 10;
        }

        if (number == 2 | number == 4 | number == 5 | number == 7 | number == 9) {
            System.out.println("hon");
        } else if (number == 0 | number == 1 | number == 6 | number ==8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }
    }
}


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: C++

#include<bits/stdc++.h>

using namespace std;

typedef long long int ll;

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

int main()
{
	int t = 1;
//	cin >> t;
	while(t--)
	{
		solve();
	}
	return 0;
}



Compiler output:
a.cc: In function 'void solve()':
a.cc:13:21: error: expected primary-expression before '=' token
   13 |         else if(n = =0 || n == 1 || n == 6 || n  == 8) cout  << "pon";
      |                     ^
Language: C

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;
  scanf("%d",&n);
  
  switch (n%10){
    case 2:
    case 4:
    case 5:
    case 7:
    case 9:
      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: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;
    scanf("%d", &n);

    switch (n % 10)
    {
    case 3:
        printf("bon\n");
        break;
    case 0:
    case 1:
    case 6:
    case 8:
        printf("pon\n");
        break;
    default:
        printf("hon\n")
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:24: error: expected ';' before '}' token
   20 |         printf("hon\n")
      |                        ^
      |                        ;
   21 |     }
      |     ~
Language: C++

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

using namespace std;
using ll = long long;

int main(){
cin.tie(0);
int n,k;
cin >>n;
k=n%10;
if(k=2||k=4||k=6||k=7||k=0)cout << "hon";
else if(k==3)cout <<"bon";
else cout <<"pon";

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:22: error: lvalue required as left operand of assignment
   14 | if(k=2||k=4||k=6||k=7||k=0)cout << "hon";
      |                     ~^~~
Language: Java

import java.util.*;

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

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) {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner scan = new Scanner(System.in);
		int n =scan.nextInt();
		
		
		System.out.println(n);
		
	
		switch(n % 10) {
		
		case 2:
			System.out.println("hon");
			break;
		case 4:
			System.out.println("hon");
			break;
		case 5:
			System.out.println("hon");
			break;
		case 7:
			System.out.println("hon");
			break;
		case 9:
			System.out.println("hon");
			break;
		 
		case 0:
			System.out.println("pon");
			break;
		case 1:
			System.out.println("pon");
			break;
		case 6:
			System.out.println("pon");
			break;
		case 8: 
			System.out.println("pon");
			break;
		
		case 3:
			System.out.println("bon");
			break;
		
		default: break;
		
		}
			
	}
}


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: Java

import java.util.*;
class Main {

  static Integer[] PON_ARR = new Integer[]{0,1,6,8};
  static  Integer[] BON_ARR = new Integer[]{3};
  static  List<Integer> PON_LIST = Arrays.asList(PON_ARR);
  static  List<Integer> BON_LIST = Arrays.asList(BON_ARR);

  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int k = sc.nextInt();
    String s = sc.nextLine();
    
    int lenS = s.length();
    
    if( lenS > k ) {
        SYstem.out.println( s.substring(0, k) + "...");    
    }else{
        SYstem.out.println( s );    
    }
  }
}


Compiler output:
Main.java:17: error: package SYstem does not exist
        SYstem.out.println( s.substring(0, k) + "...");    
              ^
Main.java:19: error: package SYstem does not exist
        SYstem.out.println( s );    
              ^
2 errors
Language: Java

import java.util.*;
class Main {

  static Integer[] PON_ARR = new Integer[]{0,1,6,8};
  static  Integer[] BON_ARR = new Integer[]{3};
  static  List<Integer> PON_LIST = Arrays.asList(PON_ARR);
  static  List<Integer> BON_LIST = Arrays.asList(BON_ARR);

  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int k = sc.nextInt();
    String s = sc.nextLine();
    
    int lenS = s.length();
    
    if( lenS > k ) {
        SYstem.out.println( s.substr(0, k) + "...");    
    }else{
        SYstem.out.println( s );    
    }
  }
}


Compiler output:
Main.java:17: error: cannot find symbol
        SYstem.out.println( s.substr(0, k) + "...");    
                             ^
  symbol:   method substr(int,int)
  location: variable s of type String
Main.java:17: error: package SYstem does not exist
        SYstem.out.println( s.substr(0, k) + "...");    
              ^
Main.java:19: error: package SYstem does not exist
        SYstem.out.println( s );    
              ^
3 errors
Language: Java

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

Compiler output:
Main.java: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 sc = new Scanner (System.in);
    	int N = sc.nextInt();
    	switch (int N%10){
      		case 2:
      		case 4:
      		case 5:
      		case 7:
      		case 9:   
      			System.out.println("hon");
      			break;
      		case 0:
      		case 1:
      		case 6:
      		case 8:
        		System.out.println("pon");
        		break;
      		case 3:
        		System.out.println("bon");
            	break;
        }
    }
}

Compiler output:
Main.java:6: error: '.class' expected
    	switch (int N%10){
    	            ^
Main.java:6: error: case, default, or '}' expected
    	switch (int N%10){
    	             ^
Main.java:6: error: case, default, or '}' expected
    	switch (int N%10){
    	              ^
Main.java:6: error: case, default, or '}' expected
    	switch (int N%10){
    	                ^
Main.java:6: error: case, default, or '}' expected
    	switch (int N%10){
    	                 ^
5 errors