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

#include<iostream>

using namespace std;


int main() {
  int N; cin >> N;
  set<int> s1{2,4,5,7,9}, s2{0,1,6,8}, s3{3};
  if (s1.find(N%10) != s1.end()) {
    cout << "hon" << endl;
  }
  else if (s2.find(N%10) != s2.end()) {
    cout << "pon" << endl;
  }
  else {
    cout << "bon" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'set' was not declared in this scope
    8 |   set<int> s1{2,4,5,7,9}, s2{0,1,6,8}, s3{3};
      |   ^~~
a.cc:2:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
    1 | #include<iostream>
  +++ |+#include <set>
    2 | 
a.cc:8:7: error: expected primary-expression before 'int'
    8 |   set<int> s1{2,4,5,7,9}, s2{0,1,6,8}, s3{3};
      |       ^~~
a.cc:8:25: error: expected primary-expression before ',' token
    8 |   set<int> s1{2,4,5,7,9}, s2{0,1,6,8}, s3{3};
      |                         ^
a.cc:8:27: error: 's2' was not declared in this scope
    8 |   set<int> s1{2,4,5,7,9}, s2{0,1,6,8}, s3{3};
      |                           ^~
a.cc:8:38: error: expected primary-expression before ',' token
    8 |   set<int> s1{2,4,5,7,9}, s2{0,1,6,8}, s3{3};
      |                                      ^
a.cc:8:40: error: 's3' was not declared in this scope
    8 |   set<int> s1{2,4,5,7,9}, s2{0,1,6,8}, s3{3};
      |                                        ^~
a.cc:9:7: error: 's1' was not declared in this scope
    9 |   if (s1.find(N%10) != s1.end()) {
      |       ^~
Language: C++

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

int main() {
  string N;
  cin>>N;
  
  int x=N.size();
    
  if(x==1){
    if(N=="3")
      cout<<"bon"<<endl;
    else if(N=="0"||N=="1"||N=="6"||N=="8")
      cout<<"pon"<<endl;
    else
      cout<<"hon"<<endl;
  }
  
  if(x==2){
    char s = N.at(1);
    if(s=="3")
      cout<<"bon"<<endl;
    else if(s=="0"||s=="1"||s=="6"||s=="8")
      cout<<"pon"<<endl;
    else
      cout<<"hon"<<endl;
  }
  
  if(x==3){
    char t = N.at(2);
    if(t=="3")
      cout<<"bon"<<endl;
    else if(t=="0"||t=="1"||t=="6"||t=="8")
      cout<<"pon"<<endl;
    else
      cout<<"hon"<<endl;
  }
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |     if(s=="3")
      |        ~^~~~~
a.cc:23:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 |     else if(s=="0"||s=="1"||s=="6"||s=="8")
      |             ~^~~~~
a.cc:23:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 |     else if(s=="0"||s=="1"||s=="6"||s=="8")
      |                     ~^~~~~
a.cc:23:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 |     else if(s=="0"||s=="1"||s=="6"||s=="8")
      |                             ~^~~~~
a.cc:23:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 |     else if(s=="0"||s=="1"||s=="6"||s=="8")
      |                                     ~^~~~~
a.cc:31:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   31 |     if(t=="3")
      |        ~^~~~~
a.cc:33:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   33 |     else if(t=="0"||t=="1"||t=="6"||t=="8")
      |             ~^~~~~
a.cc:33:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   33 |     else if(t=="0"||t=="1"||t=="6"||t=="8")
      |                     ~^~~~~
a.cc:33:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   33 |     else if(t=="0"||t=="1"||t=="6"||t=="8")
      |                             ~^~~~~
a.cc:33:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   33 |     else if(t=="0"||t=="1"||t=="6"||t=="8")
      |                                     ~^~~~~
Language: C

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

int main()
{
 int N,digit;
	scanf("%d",&N);

	digit=N%10;
	if(digit==2)
        printf("hon");
    if(digit== 4)
        printf("hon");
    if(digit==5 )
        printf("hon");
    if(digit==7 )
        printf("hon");
    if(digit==9 )
        printf("hon");
    if(digit==0 )
        printf("pon");
    if(digit==1)
        printf("pon");
    if(digit==6)
        printf("pon");

    if(digit==8)
        printf("pon");
    if(digit==3)
        printf("bon");
    getch();
}


Compiler output:
main.c: In function 'main':
main.c:31:5: error: implicit declaration of function 'getch'; did you mean 'getc'? [-Wimplicit-function-declaration]
   31 |     getch();
      |     ^~~~~
      |     getc
Language: C++

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

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 's' was not declared in this scope
    9 |     s=n%10;
      |     ^
a.cc:12:6: error: 's' was not declared in this scope
   12 |   if(s==0||s==1||s==6||s==8)
      |      ^
a.cc:15:8: error: 's' was not declared in this scope
   15 |     if(s==2||s==4||s==5||s==7||s==9)
      |        ^
Language: C++

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

Compiler output:
a.cc:2:1: error: 'cin' does not name a type
    2 | cin >> n;
      | ^~~
a.cc:3:1: error: 'n' does not name a type
    3 | n %= 10;
      | ^
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if(n == 3)
      | ^~
a.cc:6:1: error: expected unqualified-id before 'else'
    6 | else if(n == 0 || n == 1 || n == 6 || n == 8))
      | ^~~~
a.cc:8:1: error: expected unqualified-id before 'else'
    8 | else
      | ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:20:20: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   20 |     string s = N.at(1);
      |                ~~~~^~~
a.cc:30:20: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   30 |     string t = N.at(2);
      |                ~~~~^~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'p' was not declared in this scope
    7 |   p=n%10;
      |   ^
a.cc:11:11: error: unable to find string literal operator 'operator""endl' with 'const char [4]', 'long unsigned int' arguments
   11 |     cout<<"pon"endl;
      |           ^~~~~~~~~
a.cc:13:11: error: unable to find string literal operator 'operator""endl' with 'const char [4]', 'long unsigned int' arguments
   13 |     cout<<"bon"endl;
      |           ^~~~~~~~~
Language: C++

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

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


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

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

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

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

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

  return 0;
}

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

#include<bits/stdc++.h>
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 if(a = 3){
    cout << "bon" <<endl;
  }
}

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

#include<iostream>

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

#include <stdio.h>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> n;
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << "bon";
      |         ^~~~
a.cc:8:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << "pon";
      |         ^~~~
a.cc:10:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout << "hon";
      |         ^~~~
a.cc:12:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

import java.util.*;
 
class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String hun = n.substring(0);
    String ten = n.substring(1);
    String one = n.substring(2);
    int num = 0;
    String result = "";
    if(one == null){
      if(ten == null){
        num = Interger.paserInt(hun);
        if(num == 3){
          result = "bon";
        }else if(num == 0 && num == 1 && num == 6 && num == 8){
          result = "pon";
        }else{
          result = "hon";
        }
      }else{
        num = Interger.parseInt(ten);
        if(num == 3){
          result = "bon";
        }else if(num == 0 && num == 1 && num == 6 && num == 8){
          result = "pon";
        }else{
          result = "hon";
        }
      }else{
        num = Interger.parseInt(one);
        if(num == 3){
          result = "bon";
        }else if(num == 0 && num == 1 && num == 6 && num == 8){
          result = "pon";
        }else{
          result = "hon";
        }
    }
      System.out.println(result);
    }
    
  }

Compiler output:
Main.java:31: error: 'else' without 'if'
      }else{
       ^
Main.java:44: error: reached end of file while parsing
  }
   ^
2 errors
Language: C++

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

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


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

#include <iostream>
using namespace std;

int N;
int S;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected initializer before '%' token
    9 |   int N % 10 = S;
      |         ^
Language: C++

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








Compiler output:
a.cc:5:9: error: extended character 　 is not valid in an identifier
    5 |   cin >>　num;
      |         ^
a.cc: In function 'int main()':
a.cc:5:9: error: '\U00003000num' was not declared in this scope
    5 |   cin >>　num;
      |         ^~~~~
a.cc:6:3: error: 'num1' was not declared in this scope; did you mean 'num'?
    6 |   num1=num;
      |   ^~~~
      |   num
Language: C++

#include <iostream>
using namespace std;
int main() {
int n1;cin>>n1;
n1=n1%100;
 if(n1==3)
   cout<<"bon";
 else if(n1==0||n1==1||n1==6||n1==8)
   cout<<"pon";
 else
   cout<<"hon";}
  
	return 0;
}

Compiler output:
a.cc:13:9: error: expected unqualified-id before 'return'
   13 |         return 0;
      |         ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

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

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

#include <include>
using namespace std;
int main() {
int n1;cin>>n1;
n1=n1%100;
 if(n1==3)
   cout<<"bon";
 else if(n1==0||n1==1||n1==6||n1==8)
   cout<<"pon";
 else
   cout<<"hon";}
  
	return 0;
}

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

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

Compiler output:
a.cc:13:9: error: expected unqualified-id before 'return'
   13 |         return 0;
      |         ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C

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

int main()
{
 int num,digit;
	printf("Enter a number:");
	scanf("%d",&num);

	digit=num%10;
	if(digit==2)
        printf("hon");
    if(digit== 4)
        printf("hon");
    if(digit==5 )
        printf("hon");
    if(digit==7 )
        printf("hon");
    if(digit==9 )
        printf("hon");
    if(digit==0 )
        printf("pon");
    if(digit==1)
        printf("pon");
    if(digit==6)
        printf("pon");

    if(digit==8)
        printf("pon");
    if(digit==3)
        printf("bon");
    getch();
}


Compiler output:
main.c: In function 'main':
main.c:32:5: error: implicit declaration of function 'getch'; did you mean 'getc'? [-Wimplicit-function-declaration]
   32 |     getch();
      |     ^~~~~
      |     getc
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:12: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |            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:7:26: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |                          cout << "hon";
      |                          ^~~~
      |                          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:26: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |                          cout << "pon";
      |                          ^~~~
      |                          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:26: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |                          cout << "bon";
      |                          ^~~~
      |                          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 <bits/stdc++.h>
using namespace std;
int main(){
    string N;
    cin>>N;
vector<string>wtf(N.size());
for(int i=0; i<10; i++){
if(i==3){
wtf.at(i)=="bon";
}
else if(i==0||i==1||i==6||i==8){
wtf.at(i)=="pon";
}
else
wtf.at(i)=="hon"<<endl;
}
if(N.size()==3){
string h=wtf.at(2);
cout<<h<<endl;
}
else if(N.size()==1){
string j=wtf.at(1);
cout<<j<<endl;
}
else
string k=wtf.at(0);
cout<<k<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
    9 | wtf.at(i)=="bon";
      | ~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
a.cc:12:10: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   12 | wtf.at(i)=="pon";
      | ~~~~~~~~~^~~~~~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
a.cc:15:17: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   15 | wtf.at(i)=="hon"<<endl;
      |            ~~~~~^~~~~~
a.cc:27:7: error: 'k' was not declared in this scope
   27 | cout<<k<<endl;
      |       ^
Language: Java

import java.util.*;
import java.util.stream.*;

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

        System.out.println(pos);
    }
}


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

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: lvalue required as left operand of assignment
    5 |  if(N%10=3)
      |         ^
main.c:10:15: error: lvalue required as left operand of assignment
   10 |  else if((N%10=0)||(N%10=1)||(N%10=6)||(N%10=8))
      |               ^
main.c:10:25: error: lvalue required as left operand of assignment
   10 |  else if((N%10=0)||(N%10=1)||(N%10=6)||(N%10=8))
      |                         ^
main.c:10:35: error: lvalue required as left operand of assignment
   10 |  else if((N%10=0)||(N%10=1)||(N%10=6)||(N%10=8))
      |                                   ^
main.c:10:45: error: lvalue required as left operand of assignment
   10 |  else if((N%10=0)||(N%10=1)||(N%10=6)||(N%10=8))
      |                                             ^
Language: Java

import java.util.*;

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:25: error: expected '}' at end of input
   15 |   cout << "hon" << endl;
      |                         ^
a.cc:3:13: note: to match this '{'
    3 | int main () {
      |             ^
Language: Java

import java.util.*;
 
class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String hun = n.substring(0);
    String ten = n.substring(1);
    String one = n.substring(2);
    int num = 0;
    String result = "";
    if(one == null){
      if(ten == null){
        num = Interger.paserInt(hun);
        if(num == 3){
          result = "bon";
        }else if(num == 0 && num == 1 && num == 6 && num == 8){
          result = "pon";
        }else{
          result = "hon";
        }
      }else{
        num = Interger.parseInt(ten);
        if(num == 3){
          result = "bon";
        }else if(num == 0 && num == 1 && num == 6 && num == 8){
          result = "pon";
        }else{
          result = "hon";
        }
      }else if(one != null) {
        num = Interger.parseInt(one);
        if(num == 3){
          result = "bon";
        }else if(num == 0 && num == 1 && num == 6 && num == 8){
          result = "pon";
        }else{
          result = "hon";
        }
    }
      System.out.println(result);
    }
    
  }

Compiler output:
Main.java:31: error: 'else' without 'if'
      }else if(one != null) {
       ^
Main.java:44: error: reached end of file while parsing
  }
   ^
2 errors
Language: C++

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

int main() {
  string N;
  cin >> N;
  
  int x = N[N.size() - 1];
  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;
  }
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   14 |     cout < "bon" << endl;
      |            ~~~~~~^~~~~~~
Language: C

#include <stdio.h>
int main(void){
  int a[100];
  scanf("%d",&a);
  switch(a[-1]){
    case 3:
      printf("bon");
      break;
    case 0:
    case 1:
    case 6:
    case 8:
      printf("pon");
      break;
    default:
      printf("hon");
      break
  }
}
  

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

#include <iostream>

using namespace std;

int main() {
  int N,m;
  cin >> N;
  
  m=1000%N;
  
  if(m==3){
    cont << "bon";
  }else if(m==0 || m==1 || m==6 || m==8){
    cont << "pon";
  }else{
    cont << "hon";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'cont' was not declared in this scope; did you mean 'const'?
   12 |     cont << "bon";
      |     ^~~~
      |     const
a.cc:14:5: error: 'cont' was not declared in this scope; did you mean 'const'?
   14 |     cont << "pon";
      |     ^~~~
      |     const
a.cc:16:5: error: 'cont' was not declared in this scope; did you mean 'const'?
   16 |     cont << "hon";
      |     ^~~~
      |     const
Language: C++


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



Compiler output:
a.cc: In function 'int main()':
a.cc:19:18: error: duplicate case value
   19 |                  case 9:
      |                  ^~~~
a.cc:13:9: note: previously used here
   13 |         case 9:
      |         ^~~~
Language: C

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

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

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

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

  return 0;
}



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

#include <stdio.h>
int main(){

    int n;
    scanf("%d", &n);
    while(1=1){
    n = n%10;
    if(n <10 && 0 < n)
        break;
}
    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:
main.c: In function 'main':
main.c:6:12: error: lvalue required as left operand of assignment
    6 |     while(1=1){
      |            ^
main.c:11:44: error: lvalue required as left operand of assignment
   11 |     if (n = 2 || n =4 || n = 5|| n = 7|| n = 9){
      |                                            ^
main.c:14:37: error: lvalue required as left operand of assignment
   14 |     if (n = 0 || n = 1 || n = 6|| n = 8){
      |                                     ^
Language: C

#include <stdio.h>

int main(void)
{
  int a;
  scanf("%d",&a);
  
  if ((n % 100) ==2,4,5,7,9)
    puts("hon");
  else if ((n % 100)  ==0,1,6,8)
    puts("pon");
  else ((n % 100) ==3)
    puts("bon")
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:8: error: 'n' undeclared (first use in this function)
    8 |   if ((n % 100) ==2,4,5,7,9)
      |        ^
main.c:8:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:23: error: expected ';' before 'puts'
   12 |   else ((n % 100) ==3)
      |                       ^
      |                       ;
   13 |     puts("bon")
      |     ~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:21:19: error: expected primary-expression before '<' token
   21 |         if(n>=10&&<100)
      |                   ^
Language: C

#include<stdio.h>
#include<math.h>
#include<string.h>
int main( )
{ 
	int i;
	int a[5]={2,4,5,7,9};
	int b[5]={0,1,6,8};
	int c=3;
	int n;
	scanf("%d",&n);
	int x;
	x=n%10;
	for(i=0;i<5;i++)
	{
		if(a[i]==x)
		{printf("hon"),return 0;}
	}
	for(i=0;i<4;i++)
	{
		if(b[i]==x)
		{printf("pon"),return 0;}
	}
	if(x==c)
	{printf("bon"),return 0;}
}


Compiler output:
main.c: In function 'main':
main.c:17:32: error: expected expression before 'return'
   17 |                 {printf("hon"),return 0;}
      |                                ^~~~~~
main.c:22:32: error: expected expression before 'return'
   22 |                 {printf("pon"),return 0;}
      |                                ^~~~~~
main.c:25:24: error: expected expression before 'return'
   25 |         {printf("bon"),return 0;}
      |                        ^~~~~~
Language: C++

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






Compiler output:
a.cc:5:9: error: extended character 　 is not valid in an identifier
    5 |   cin >>　int num;
      |         ^
a.cc: In function 'int main()':
a.cc:4:10: error: expected initializer before '++' token
    4 |   int sum++;
      |          ^~
a.cc:5:9: error: '\U00003000int' was not declared in this scope
    5 |   cin >>　int num;
      |         ^~~~~
a.cc:6:14: error: 'num' was not declared in this scope; did you mean 'enum'?
    6 |   while (0 < num){
      |              ^~~
      |              enum
a.cc:8:5: error: 'sum' was not declared in this scope
    8 |     sum++;
      |     ^~~
a.cc:10:11: error: 'num' was not declared in this scope; did you mean 'enum'?
   10 |   switch (num/(10^sum)) {
      |           ^~~
      |           enum
a.cc:10:19: error: 'sum' was not declared in this scope
   10 |   switch (num/(10^sum)) {
      |                   ^~~
Language: Java

import java.util.*;

class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String hun = n.substring(0);
    String ten = n.substring(1);
    String one = n.substring(2);
    int num = 0;
    String result = "";
    if(one == null){
      if(ten == null){
        num = Interger.paserInt(hun);
        if(num == 3){
          result = "bon";
        }else if(num == 0 && num == 1 && num == 6 && num == 8){
          result = "pon";
        }else{
          result = "hon";
        }
      }else{
        num = Interger.parseInt(ten);
        if(num == 3){
          result = "bon";
        }else if(num == 0 && num == 1 && num == 6 && num == 8){
          result = "pon";
        }else{
          result = "hon";
        }
      }else if(one != null) {
        num = Interger.parseInt(one);
        if(num == 3){
          result = "bon";
        }else if(num == 0 && num == 1 && num == 6 && num == 8){
          result = "pon";
        }else{
          result = "hon";
        }
    }
    }
    System.out.println(result);
  }

Compiler output:
Main.java:31: error: 'else' without 'if'
      }else if(one != null) {
       ^
Main.java:43: error: reached end of file while parsing
  }
   ^
2 errors
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:24: error: expected ')' before 'or'
   11 |         if (n % 10 == 0 or n % 10 == 1 or n % 10 == 6 or n % 10 == 8)
      |            ~           ^~~
      |                        )
main.c:13:24: error: expected ')' before 'or'
   13 |         if (n % 10 == 2 or n % 10 == 4 or n % 10 == 5 or n % 10 == 7 or n % 10 == 9)
      |            ~           ^~~
      |                        )
Language: C++

#include<cstudio>
#include<stdlib.h>
using nanespace std;
int main() {
int n, r;
scanf("%d", &n);
if(n/10 != 0) {
r = n%10;
} else {
r=n;
}
if(r == 3){
printf("%s","bon");
}else if(r==0 || r==1 || r==6||r==8){
printf("%s","pon");
}else{
printf("%s","hon");
}
}

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

import java.util.*;
public class prob_A {
	public static void main(String[] args){
    //読み方を格納数r
    String yomi[] = {"hon","pon","bon"};
    int index = 0;
    //標準入力のインスタンス作成
		Scanner sc = new Scanner(System.in);
		// 整数Nの入力
		int N = sc.nextInt();
		// 出力
    int keta_1 = N%10;
    if ( keta_1 == 0 || keta_1==1 || keta_1==6 || keta_1==8 ){
      index=1;
    }else if( keta_1==3 ){
      index=2;
    }
		System.out.println(yomi[index]);
	}
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'elif' was not declared in this scope
   12 |   elif (a==3) {
      |   ^~~~
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else {
      |   ^~~~
a.cc:17:4: error: expected '}' at end of input
   17 |   }
      |    ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include<bits\stdc++.h>
using namespace std;
int main()
{
	int n;
	scanf("%d",&n);
    n=n%10;
    if(n==2||n==4||n==5||n==7||n==9)
	printf("hon\n");
	else if(n==0||n==1||n==6||n==8)
	printf("pon\n");
	else
	printf("bon\n");
	return 0; 
 } 

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: expected ';' before 'if'
   11 |     a == 10*i + j
      |                  ^
      |                  ;
   12 | 
   13 |   if( j == ( (2 || 4) || (5 || 7) )|| 9 ){
      |   ~~              
a.cc:19:3: error: 'else' without a previous 'if'
   19 |   else if( j == ( (0 || 1) || (6 || 8) ){
      |   ^~~~
a.cc:19:41: error: expected ')' before '{' token
   19 |   else if( j == ( (0 || 1) || (6 || 8) ){
      |          ~                              ^
      |                                         )
a.cc:31:3: error: expected primary-expression before '}' token
   31 |   }
      |   ^
Language: C++

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





Compiler output:
a.cc:4:9: error: extended character 　 is not valid in an identifier
    4 |   cin >>　int num;
      |         ^
a.cc: In function 'int main()':
a.cc:4:9: error: '\U00003000int' was not declared in this scope
    4 |   cin >>　int num;
      |         ^~~~~
a.cc:5:14: error: 'num' was not declared in this scope; did you mean 'enum'?
    5 |   while (0 < num){
      |              ^~~
      |              enum
a.cc:8:11: error: 'num' was not declared in this scope; did you mean 'enum'?
    8 |   switch (num) {
      |           ^~~
      |           enum
Language: C++

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

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

    int a=n/10;
    a*=10;
    n-=a;
    if(n==3){
        cout << "bon" << endl;
    }else if(n==0||n==1||n==6||n==8){
        cout << "pon" << endl;
    }else (
        cout << "hon" << endl;
    )

    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:30: error: expected ')' before ';' token
   19 |         cout << "hon" << endl;
      |                              ^
      |                              )
a.cc:18:11: note: to match this '('
   18 |     }else (
      |           ^
a.cc:20:5: error: expected primary-expression before ')' token
   20 |     )
      |     ^
Language: C++

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

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

    int a=n/10;
    a*=10;
    n-=a;
    if(n==3){
        cout << "bon" << endl;
    }else if(n==0||n==1||n==6||n==8||){
        cout << "pon" << endl;
    }else (
        cout << "hon" << endl;
    )

    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:38: error: expected primary-expression before ')' token
   16 |     }else if(n==0||n==1||n==6||n==8||){
      |                                      ^
a.cc:19:30: error: expected ')' before ';' token
   19 |         cout << "hon" << endl;
      |                              ^
      |                              )
a.cc:18:11: note: to match this '('
   18 |     }else (
      |           ^
a.cc:20:5: error: expected primary-expression before ')' token
   20 |     )
      |     ^
Language: C++


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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before 'switch'
    7 |     N=N%10
      |           ^
      |           ;
    8 |     switch (N) {
      |     ~~~~~~
Language: C++

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




Compiler output:
a.cc:4:9: error: extended character 　 is not valid in an identifier
    4 |   cin >>　int num;
      |         ^
a.cc: In function 'int main()':
a.cc:4:9: error: '\U00003000int' was not declared in this scope
    4 |   cin >>　int num;
      |         ^~~~~
a.cc:5:14: error: 'num' was not declared in this scope; did you mean 'enum'?
    5 |   while (0 < num){
      |              ^~~
      |              enum
a.cc:6:5: error: 'sum' was not declared in this scope
    6 |     sum += (num% 10); // ①
      |     ^~~
a.cc:9:11: error: 'num' was not declared in this scope; did you mean 'enum'?
    9 |   switch (num) {
      |           ^~~
      |           enum
Language: Java

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

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