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

import java.util.Scanner;

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

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

Compiler output:
Main.java:8: error: unexpected type
   if(s%10=2||s%10=4||s%10=5||s%10=7||s%10=9){
       ^
  required: variable
  found:    value
Main.java:8: error: bad operand types for binary operator '||'
   if(s%10=2||s%10=4||s%10=5||s%10=7||s%10=9){
            ^
  first type:  int
  second type: int
Main.java:8: error: bad operand types for binary operator '||'
   if(s%10=2||s%10=4||s%10=5||s%10=7||s%10=9){
                    ^
  first type:  int
  second type: int
Main.java:8: error: bad operand types for binary operator '||'
   if(s%10=2||s%10=4||s%10=5||s%10=7||s%10=9){
                            ^
  first type:  int
  second type: int
Main.java:8: error: bad operand types for binary operator '||'
   if(s%10=2||s%10=4||s%10=5||s%10=7||s%10=9){
                                    ^
  first type:  int
  second type: int
Main.java:11: error: unexpected type
   else if(s%10=0||s%10=1||s%10=6||s%10=8){
            ^
  required: variable
  found:    value
Main.java:11: error: bad operand types for binary operator '||'
   else if(s%10=0||s%10=1||s%10=6||s%10=8){
                 ^
  first type:  int
  second type: int
Main.java:11: error: bad operand types for binary operator '||'
   else if(s%10=0||s%10=1||s%10=6||s%10=8){
                         ^
  first type:  int
  second type: int
Main.java:11: error: bad operand types for binary operator '||'
   else if(s%10=0||s%10=1||s%10=6||s%10=8){
                                 ^
  first type:  int
  second type: int
Main.java:14: error: unexpected type
   else if(s%10=3){
            ^
  required: variable
  found:    value
10 errors
Language: C

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

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

    return 0;

}

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

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

void main(int argc, char **argv)
{
	int n = atoi(argv[1]);
	
	if (!(0 <= n && n <= 999) || argc != 2)
	{
		return;
	}

	int m = n % 10;

	if (m == 2 || m == 4 || m == 5 || m == 7 || m == 9)
	{
		printf("hon");
		return;
	}
	if (m == 0 || m == 1 || m == 6 || m == 8)
	{
		printf("pon");
		return;
	}
	if (m == 3)
	{
		printf("bon");
		return;
	}
	return 0;
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main(int argc, char **argv)
      | ^~~~
a.cc: In function 'int main(int, char**)':
a.cc:10:17: error: return-statement with no value, in function returning 'int' [-fpermissive]
   10 |                 return;
      |                 ^~~~~~
a.cc:18:17: error: return-statement with no value, in function returning 'int' [-fpermissive]
   18 |                 return;
      |                 ^~~~~~
a.cc:23:17: error: return-statement with no value, in function returning 'int' [-fpermissive]
   23 |                 return;
      |                 ^~~~~~
a.cc:28:17: error: return-statement with no value, in function returning 'int' [-fpermissive]
   28 |                 return;
      |                 ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define lvector vector<ll>
#define cvector vector<char>
#define svector vector<string>
#define lque queue<ll>
#define lpque priority_queue<ll>
#define dlpque priority_queue<ll,lvector,greater<ll>>
#define P pair<ll,ll>
#define ALL(a) a.begin(),a.end()
#define RALL(a) a.rbegin(),a.rend()
#define rep(i,n) for(ll i=0; i<n; ++i)
#define print(a) cout << (a) << endl

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  ll n;cin>>n;
  string a="pphbhhphph";
  string ans=s[n%10]+"on";
  print(ans);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:14: error: 's' was not declared in this scope
   21 |   string ans=s[n%10]+"on";
      |              ^
Language: C++

// In the name of Aadi Shakti
// We are nothing and you are everything
// Jai Mata Di

#include <bits/stdc++.h>
using namespace std;
int main()
{
  string str ;
  cin >> str ;
  char last = str [str.size() - 1] ;
  if ( last == '2' or last == '4' or last == '5' or last == '7' or last == '9') 
    cout << "hon" << endl ;
  else if ( last == '1' or las == '6' or last == '8')
    cout << "pon" << endl; 
  else if(last == '3')
    cout << "bon" << endl ;
  return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:28: error: 'las' was not declared in this scope; did you mean 'last'?
   14 |   else if ( last == '1' or las == '6' or last == '8')
      |                            ^~~
      |                            last
Language: C++

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: 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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout << rem << 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:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout << rem << 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)
      |     ^~~~
Language: C++

#include<iostream>
int main(void)
{
  short n;
  cin >> n;
  
  short t = n%10;
  
  switch(t)
  {
    case 2:
    case 4:
    case 5:
    case 7:
    case 9: cout <<"hon"; break;
    case 0:
    case 1:
    case 6:
    case 8: cout <<"pon"; break;
    case 3: cout <<"bon"; break;   
  }
  
  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:15:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |     case 9: cout <<"hon"; break;
      |             ^~~~
      |             std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

/* kadai3_2
   Saikyo_Kazune
*/
#include <stdio.h>
#include <string.h>
 
 
 
int main(void){
   //本の数を要れる変数num_booksを宣言
   int num_pencils;
   scanf("%d",&pencils);
   //1の位の数で場合分け
   switch(num_books%10){
       case 2:case 4:case 5:case 7: case 9:printf("hon\n");break;
       case 0:case 1:case 6:case 8:printf("pon\n");break;
       case 3:printf("bon\n");break;
   }
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:16: error: 'pencils' undeclared (first use in this function); did you mean 'num_pencils'?
   12 |    scanf("%d",&pencils);
      |                ^~~~~~~
      |                num_pencils
main.c:12:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:11: error: 'num_books' undeclared (first use in this function)
   14 |    switch(num_books%10){
      |           ^~~~~~~~~
Language: C

/*	ex3_1
	suzuto	*/

  #include <stdio.h>

  int main(void) {
    int num, first_place; /*変数の宣言*/

    scanf("%d",&num) /*本数の入力*/
    first_place = num % 10 /*本数の一の位をfirst_placeに代入*/

    switch (first_place) {
      case 2:
      case 4:
      case 5:
      case 7:
      case 9:
        printf("hon\n"); /*読み方が「ほん」の時*/
        break
      case 0:
      case 1:
      case 6:
      case 8:
        printf("pon\n"); /*読み方が「ぽん」の時*/
        break
      case 3:
        printf("bon\n"); /*読み方が「ぼん」の時*/
        break
    }
    return 0;
  }


Compiler output:
main.c: In function 'main':
main.c:9:21: error: expected ';' before 'first_place'
    9 |     scanf("%d",&num) /*本数の入力*/
      |                     ^
      |                     ;
   10 |     first_place = num % 10 /*本数の一の位をfirst_placeに代入*/
      |     ~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>

int main()
{
  int a=0;
 std::cin >> a;
  char szbuf[1024];
  sprintf(szbuf,"%dA",a);
  for(int ii=0;ii<100;ii++)
  {
    if(szbuf[ii+1]==0x00)
      break;   
  }
  if(szbuf[ii]=='3')std::cout << a << "bon";
  if(szbuf[ii]=='0'||szbuf[ii]=='1'||szbuf[ii]=='6'||szbuf[ii]=='8')std::cout << a << "pon";
  else
    std::cout << a << "hon";
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: 'ii' was not declared in this scope
   14 |   if(szbuf[ii]=='3')std::cout << a << "bon";
      |            ^~
a.cc:15:12: error: 'ii' was not declared in this scope
   15 |   if(szbuf[ii]=='0'||szbuf[ii]=='1'||szbuf[ii]=='6'||szbuf[ii]=='8')std::cout << a << "pon";
      |            ^~
Language: C

/*  ex3_2
    UMAboogie */
#include <stdio.h>

int main(void){
  int num;
  scanf("%d",&num); //鉛筆の本数を入力
  int unit_1 = num % 10;　//本数の一の位の数をunit_1と定義
  if (unit_1 == 3) {
    printf("bon\n");  //一の位の数が3の時、bonを出力
  } else if (unit_1 == 0 || unit_1 == 1 || unit_1 == 6 || unit_1 == 8){
    printf("pon\n");  //一の位の数が0,1,6,8のいずれかの時、ponが出力
  } else {
    printf("hon\n");  //一の位がそれ以外の数の時、honを出力
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:25: error: stray '\343' in program
    8 |   int unit_1 = num % 10;<U+3000>//<U+672C><U+6570><U+306E><U+4E00><U+306E><U+4F4D><U+306E><U+6570><U+3092>unit_1<U+3068><U+5B9A><U+7FA9>
      |                         ^~~~~~~~
Language: C

/* Work 3_2
 * AtCoder ∴
 * cy_an */

#include <stdio.h>

int main(void){
    int num, num1;       // 変数宣言,nの1の位をn1
    scanf("%d", &n); // nを入力
    num1 = num % 10;

    switch(num1){
        case 2 :
        case 4 :
        case 5 :
        case 7 :
        case 9 : printf("hon\n"); break; // 2, 4, 5, 7, 9のとき"hon"を出力
        case 0 :
        case 1 :
        case 6 :
        case 8 : printf("pon\n"); break; // 0, 1, 6, 8のとき"pon"を出力
        case 3 : printf("bon\n"); break; // 3のとき"bon"を出力
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:18: error: 'n' undeclared (first use in this function)
    9 |     scanf("%d", &n); // nを入力
      |                  ^
main.c:9:18: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

#include <stdio.h>

int main(void){
    int number;
    
    // get inputs
    scanf("%d", &n);

    // output
    switch (number % 10){
    case 2: case 4: case 5: case 7: case 9:
        printf("hon\n");
        break;
    
    case 0: case 1: case 6: case 8:
        printf("pon\n");
        break;

    case 3:
        printf("bon\n");
        break;
    }
    return 0;
}

Compiler output:
main.c:33:5: error: redefinition of 'main'
   33 | int main(void){
      |     ^~~~
main.c:6:5: note: previous definition of 'main' with type 'int(void)'
    6 | int main(void){
      |     ^~~~
main.c: In function 'main':
main.c:37:18: error: 'n' undeclared (first use in this function)
   37 |     scanf("%d", &n);
      |                  ^
main.c:37:18: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>
using namespace std;
int main(void){
  int a;
  string str;
  cin >> a;
  if((a % 10) == 3){
    str = 'bon';
  }
  else if(((a % 10) == 0) || ((a % 10) == 1) ((a % 10) == 6) ((a % 10) == 8)){
    str = 'pon';
  }
  else{
    str = 'hon';
  }
  cout << str << endl;
}


Compiler output:
a.cc:8:11: warning: multi-character character constant [-Wmultichar]
    8 |     str = 'bon';
      |           ^~~~~
a.cc:11:11: warning: multi-character character constant [-Wmultichar]
   11 |     str = 'pon';
      |           ^~~~~
a.cc:14:11: warning: multi-character character constant [-Wmultichar]
   14 |     str = 'hon';
      |           ^~~~~
a.cc: In function 'int main()':
a.cc:8:11: warning: overflow in conversion from 'int' to 'char' changes value from '6451054' to '110' [-Woverflow]
    8 |     str = 'bon';
      |           ^~~~~
a.cc:10:46: error: expression cannot be used as a function
   10 |   else if(((a % 10) == 0) || ((a % 10) == 1) ((a % 10) == 6) ((a % 10) == 8)){
      |                              ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
a.cc:11:11: warning: overflow in conversion from 'int' to 'char' changes value from '7368558' to '110' [-Woverflow]
   11 |     str = 'pon';
      |           ^~~~~
a.cc:14:11: warning: overflow in conversion from 'int' to 'char' changes value from '6844270' to '110' [-Woverflow]
   14 |     str = 'hon';
      |           ^~~~~
Language: C

/*ex3_2
ryo_1129*/
#include <stdio.h>

int main(void){
	int N; //変数宣言
	scanf("%d",&N); //入力
	r = N%10; // remainder
	
	//１の位が３の時、bonを出力
	if(r ==3){
		printf("bon\n");
	//１の位が0,1,6,8の時、ponを出力
	}else if(r == 0 || r == 1|| r == 6 || r == 8){
		printf("pon\n");
	//それ以外、honを出力
	}else{
		printf("hon\n");
	}
	
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: 'r' undeclared (first use in this function)
    8 |         r = N%10; // remainder
      |         ^
main.c:8:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

/*ex3_2
ryo_1129*/
#include <stdio.h>

int main(void){
	int N; //変数宣言
	scanf("%d",&N); //入力
	r = N%10 // remainder
	
	//１の位が３の時、bonを出力
	if(r ==3){
		printf("bon\n");
	//１の位が0,1,6,8の時、ponを出力
	}else if(r == 0 || r == 1|| r == 6 || r == 8){
		printf("pon\n");
	//それ以外、honを出力
	}else{
		printf("hon\n");
	}
	
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: 'r' undeclared (first use in this function)
    8 |         r = N%10 // remainder
      |         ^
main.c:8:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:17: error: expected ';' before 'if'
    8 |         r = N%10 // remainder
      |                 ^
      |                 ;
......
   11 |         if(r ==3){
      |         ~~
Language: C

/*  ex3_2
    potter0723sw  */

#include <stdio.h>

int main(void) {
	int N;
	scanf("%d", &N);
	poo = N % 10; //poOはplace of Oneの略
	if(poo == 2 || poo == 4 || poo == 5 || poo == 7 || poo == 9){//１の位を参照するために%10をした
    	printf("hon\n");
    }else if(poo == 0 || poo == 1 || poo == 6 || poo == 8){
    	printf("pon\n");
    }else printf("bon\n");
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'poo' undeclared (first use in this function)
    9 |         poo = N % 10; //poOはplace of Oneの略
      |         ^~~
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

/*  ex3_2
    potter0723sw  */

#include <stdio.h>

int main(void) {
	int N;
	scanf("%d", &N);
	poO = N % 10 //poOはplace of Oneの略
	if(poO == 2 || poO == 4 || poO == 5 || poO == 7 || poO == 9){//１の位を参照するために%10をした
    	printf("hon\n");
    }else if(poO == 0 || poO == 1 || poO == 6 || poO == 8){
    	printf("pon\n");
    }else printf("bon\n");
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'poO' undeclared (first use in this function)
    9 |         poO = N % 10 //poOはplace of Oneの略
      |         ^~~
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:21: error: expected ';' before 'if'
    9 |         poO = N % 10 //poOはplace of Oneの略
      |                     ^
      |                     ;
   10 |         if(poO == 2 || poO == 4 || poO == 5 || poO == 7 || poO == 9){//１の位を参照するために%10をした
      |         ~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){

  int n;
  cin>>n;
  vector<string> s(10);
   s[0]="pon"
   s[1]="pon"
   s[2]="hon"
   s[3]="bon"
   s[4]="hon"
   s[5]="hon"
   s[6]="pon"
   s[7]="hon"
   s[8]="pon"
   s[9]="hon"
     cout<<s[n%10]<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before 's'
    8 |    s[0]="pon"
      |              ^
      |              ;
    9 |    s[1]="pon"
      |    ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){

  int n;
  cin>>n;
  vector<string> s[10];
   s[0]="pon"
   s[1]="pon"
   s[2]="hon"
   s[3]="bon"
   s[4]="hon"
   s[5]="hon"
   s[6]="pon"
   s[7]="hon"
   s[8]="pon"
   s[9]="hon"
     cout<<s[n%10]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: no match for 'operator=' (operand types are 'std::vector<std::__cxx11::basic_string<char> >' and 'const char [4]')
    8 |    s[0]="pon"
      |         ^~~~~
In file included from /usr/include/c++/14/vector:72,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/vector.tcc:210:5: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]'
  210 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/vector.tcc:211:42: note:   no known conversion for argument 1 from 'const char [4]' to 'const std::vector<std::__cxx11::basic_string<char> >&'
  211 |     operator=(const vector<_Tp, _Alloc>& __x)
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66:
/usr/include/c++/14/bits/stl_vector.h:766:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:766:26: note:   no known conversion for argument 1 from 'const char [4]' to 'std::vector<std::__cxx11::basic_string<char> >&&'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |                 ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:788:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]'
  788 |       operator=(initializer_list<value_type> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   no known conversion for argument 1 from 'const char [4]' to 'std::initializer_list<std::__cxx11::basic_string<char> >'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){

  int N;
  cin>>N;
  
  if(N<10){
  
    if(N==0||1||6||8){
    
      cout<<"pon"<<endl;
    }
    else if(N==3){
    
      cout<<"bon"<<endl;
    }
    else{
    
      cout<<"hon"<<endl;    
    }
  }
  else if(N>9&&N<100){
  
    int x;
     x=N%10;
       
       cin>>x;
       if(x==0||1||6||8){
    
      cout<<"pon"<<endl;
    }
    else if(x==3){
    
      cout<<"bon"<<endl;
    }
    else{
    
      cout<<"hon"<<endl;  
    }
  }
  else{
  int x=N%10
    if(x==0||1||6||8){
    
      cout<<"pon"<<endl;
    }
    else if(x==3){
    
      cout<<"bon"<<endl;
    }
    else{
    
      cout<<"hon"<<endl;   
    }
  }
    
}


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

#include <bits/stdc++.h>
using namespace std;
int main(){

  int N;
  cin>>N;
  
  if(N<10){
  
    if(N=0,1,6,8){
    
      cout<<"pon"<<endl;
    }
    else if(N=3){
    
      cout<<"bon"<<endl;
    }
    else{
    
      cout<<"hon"<<endl;    
    }
  }
  else if(N>9&&N<100){
  
    int x;
     x=N%10
       
       cin>>x;
       if(x=0,1,6,8){
    
      cout<<"pon"<<endl;
    }
    else if(x=3){
    
      cout<<"bon"<<endl;
    }
    else{
    
      cout<<"hon"<<endl;  
    }
  }
  else{
  int x=N%100;
    cin>>x;
    if(x=0,1,6,8){
    
      cout<<"pon"<<endl;
    }
    else if(x=3){
    
      cout<<"bon"<<endl;
    }
    else{
    
      cout<<"hon"<<endl;   
    }
  }
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:12: error: expected ';' before 'cin'
   26 |      x=N%10
      |            ^
      |            ;
   27 | 
   28 |        cin>>x;
      |        ~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){

  int N;
  cin>>N;
  
  if(N<10){
  
    if(N=0,1,6,8){
    
      cout<<"pon"<<endl;
    }
    else if(N=3){
    
      cout<<"bon"<<endl;
    }
    else{
    
      cout<<"hon"<<endl    
    }
  }
  else if(N>9&&N<100){
  
    int x;
     x=N%10
       
       cin>>x;
       if(x=0,1,6,8){
    
      cout<<"pon"<<endl;
    }
    else if(x=3){
    
      cout<<"bon"<<endl;
    }
    else{
    
      cout<<"hon"<<endl    
    }
  }
  else{
  int x=N%100;
    cin>>x;
    if(x=0,1,6,8){
    
      cout<<"pon"<<endl;
    }
    else if(x=3){
    
      cout<<"bon"<<endl;
    }
    else{
    
      cout<<"hon"<<endl    
    }
  }
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:24: error: expected ';' before '}' token
   20 |       cout<<"hon"<<endl
      |                        ^
      |                        ;
   21 |     }
      |     ~                   
a.cc:26:12: error: expected ';' before 'cin'
   26 |      x=N%10
      |            ^
      |            ;
   27 | 
   28 |        cin>>x;
      |        ~~~  
a.cc:39:24: error: expected ';' before '}' token
   39 |       cout<<"hon"<<endl
      |                        ^
      |                        ;
   40 |     }
      |     ~                   
a.cc:55:24: error: expected ';' before '}' token
   55 |       cout<<"hon"<<endl
      |                        ^
      |                        ;
   56 |     }
      |     ~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: lvalue required as left operand of assignment
    8 |   if(N%10=2||4||5||7||9;){
      |      ~^~~
a.cc:8:25: error: expected primary-expression before ')' token
    8 |   if(N%10=2||4||5||7||9;){
      |                         ^
a.cc:12:14: error: lvalue required as left operand of assignment
   12 |     else if(N%10=0||1||6||8;){
      |             ~^~~
a.cc:12:29: error: expected primary-expression before ')' token
   12 |     else if(N%10=0||1||6||8;){
      |                             ^
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: lvalue required as left operand of assignment
    8 |   if(N%10=2||4||5||7||9){
      |      ~^~~
a.cc:9:13: error: 'hon' was not declared in this scope
    9 |     cout << hon << endl;
      |             ^~~
a.cc:12:14: error: lvalue required as left operand of assignment
   12 |     else if(N%10=0||1||6||8){
      |             ~^~~
a.cc:13:15: error: 'hon' was not declared in this scope
   13 |       cout << hon << endl;
      |               ^~~
a.cc:17:17: error: 'bon' was not declared in this scope
   17 |         cout << bon << endl;
      |                 ^~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: lvalue required as left operand of assignment
    8 |   if(N%10=2||4||5||7||9){
      |      ~^~~
a.cc:9:13: error: 'hon' was not declared in this scope
    9 |     cout << hon << endl;
      |             ^~~
a.cc:12:14: error: lvalue required as left operand of assignment
   12 |     else if(N%10=0||1||6||8){
      |             ~^~~
a.cc:13:15: error: 'hon' was not declared in this scope
   13 |       cout << hon << endl;
      |               ^~~
a.cc:17:17: error: 'bon' was not declared in this scope
   17 |         cout << bon << endl;
      |                 ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main(){
      | ~~~                 
a.cc: In function 'int main()':
a.cc:13:18: error: expected ';' before '}' token
   13 |     cout << "bon"
      |                  ^
      |                  ;
   14 | }
      | ~                 
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;

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

switch (N%10){
	case 2;
    case 4;
    case 5;
    case 7;
    case 9;
    
    cout >> "hon";
    
    case 0;
    case 1;
    case 6;
    case 8;
    
    cout >> "pon";
    
    case 3;
    
    cout >> "bon";
}
}


Compiler output:
a.cc:4:6: error: cannot declare '::main' to be a global variable
    4 | int (main) {
      |      ^~~~
a.cc:5:1: error: expected primary-expression before 'int'
    5 | int N;
      | ^~~
a.cc:5:1: error: expected '}' before 'int'
a.cc:4:12: note: to match this '{'
    4 | int (main) {
      |            ^
a.cc:6:1: error: 'cin' does not name a type
    6 | cin >> N;
      | ^~~
a.cc:8:1: error: expected unqualified-id before 'switch'
    8 | switch (N%10){
      | ^~~~~~
a.cc:28:1: error: expected declaration before '}' token
   28 | }
      | ^
Language: Java

import.java.util.*;
class Main{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
  String[]a=new String[]{"pon","pon","hon","bon","hon","hon","hon","hon","hon","hon","hon","hon","hon",};
  int n=sc.nextInt()%10;
  System.out.println(a[n]);
}
}

Compiler output:
Main.java:1: error: <identifier> expected
import.java.util.*;
      ^
1 error
Language: C

/*自分で読むこと推奨



1つ目
1数学$第2章「図形の性質」を読み、練習問題、節末題、演習問題を解く。
2解らないところを昨年までのテキストノートで確認する。
3問題集を解く。全部
2つ目の第3章「整数の性質」
具体的には、3~3の練習から
節末問題までとします。ただし、3「合同式」は難しければ飛ばして構いません。ま
た、対応する問題集の問題151～162
3つ目
今週の数学の課題は
教科書 p.140～150 「第２節　ユークリッドの互除法」
4STEP p.163～168 「第２節　ユークリッドの互除法」
を進めてみてください。締切は5/24（日）までとします。

また、20日までに「第１節　約数と倍数」の課題を進めるよう指示がありましたね。
解き終わったら、課題進捗調査③にも回答してください。
こちらは22日（金）を締切とします。

約数と倍数について、質問がある場合は課題進捗調査③に限定公開コメント
をしてみてください。


今週やることをまとめると、
・教科書、4STEPを進める。
・課題進捗調査③に解答する。
・質問するときは、最新の「課題進捗調査」に限定公開コメントで送信する。

Compiler output:
main.c:1:1: error: unterminated comment
    1 | /*自分で読むこと推奨
      | ^
Language: C++

#include <bits/stdc++.h>

#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()

const char newl = '\n';

using namespace std;
using ll = long long;

auto main() -> int
{
	cin.tie(0);
  	ios::sync_with_stdio(0);

	int N; cin >> N;
    N %= 10;
    
    if(N==3)
  	  cout << "bon" << new1;
    
    else if(N == 2 or N == 4 or N == 5 or N == 7 or N == 9)
      cout << "hon" << new1;
      
    else cout << "pon" << new1;
       
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:28: error: 'new1' was not declared in this scope; did you mean 'newl'?
   23 |           cout << "bon" << new1;
      |                            ^~~~
      |                            newl
a.cc:26:24: error: 'new1' was not declared in this scope; did you mean 'newl'?
   26 |       cout << "hon" << new1;
      |                        ^~~~
      |                        newl
a.cc:28:27: error: 'new1' was not declared in this scope; did you mean 'newl'?
   28 |     else cout << "pon" << new1;
      |                           ^~~~
      |                           newl
Language: C

/*  ex3_2
    Rikuta  */

#include <stdio.h>

int main(void){

    int number,ones_place;
    //input number
    scanf("%d",&number);
    //computing ones_place
    ones_place %= 10;
    //ones_placeの値によって分岐してそれぞれで読み方を出力
    switch (ones_place)
    {
    case 2:
    case 4:
    case 5:
    case 7:
    case 9:
        printf("hon\n");
        break;
    case 0:
    case 1:
    case 6:
    case 8:
        printf("pon\n");
        break;
    case 3:
        printf("bon\n")
    //デフォルトの指示としてswitch文からの脱出
    default:
        break;
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:30:24: error: expected ';' before 'default'
   30 |         printf("bon\n")
      |                        ^
      |                        ;
   31 |     //デフォルトの指示としてswitch文からの脱出
   32 |     default:
      |     ~~~~~~~
Language: C

/*3.2 hightierra*/
#include <stdio.h>

int main(void){
  //変数の定義
  int N,i;
  scanf("%d",&N);
  //iにNの１の位を代入
  i = N % 10;
  
  //iの値で場合わけ
  switch(i){
    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: In function 'main':
main.c:28:12: error: expected ';' before '}' token
   28 |       break
      |            ^
      |            ;
   29 |   }
      |   ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:43:5: error: 'reaturn' was not declared in this scope
   43 |     reaturn 0;
      |     ^~~~~~~
Language: C++

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

Compiler output:
a.cc:2:1: error: 'usindg' does not name a type
    2 | usindg namespace std;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:6:5: 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:10:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |             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:43:5: error: 'reaturn' was not declared in this scope
   43 |     reaturn 0;
      |     ^~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected ',' or ';' before ':' token
    8 |   int last=n%10:
      |                ^
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else if(last==3)
      |   ^~~~
Language: C

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> a;
      |   ^~~
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << "hon";
      |     ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "pon";
      |     ^~~~
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout << "bon";}
      |     ^~~~
Language: C

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

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

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

import java.util.*;
 
public class Main {
  public static void main(String[] arguments) {
    
    Scanner N = new Scanner(System.in);
    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:7: error: bad operand types for binary operator '%'
    int rem = N%10;
               ^
  first type:  Scanner
  second type: int
1 error
Language: Java

import java.util.*;
 
public class Main {
  public static void main(String[] arguments) {
    
    int N = System.in.println();
    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:6: error: cannot find symbol
    int N = System.in.println();
                     ^
  symbol:   method println()
  location: variable in of type InputStream
1 error
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] arguments) {
    
    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:6: error: cannot find symbol
    int rem = N%10;
              ^
  symbol:   variable N
  location: class Main
1 error
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] arguments) {
    
    int rem = N%10;
    
    if (rem == 3) System.out.println("bon");
    if (rem == 0, 1, 6, 8) System.out.println("pon");
    else System.out.println("hon");
  }
}

Compiler output:
Main.java:9: error: ')' expected
    if (rem == 0, 1, 6, 8) System.out.println("pon");
                ^
Main.java:10: error: 'else' without 'if'
    else System.out.println("hon");
    ^
2 errors
Language: C++

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

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

public class Main() {
  int rem = N%10;
  if (rem == 0) System.out.println("pon");
  else System.out.println("hon");
}

Compiler output:
Main.java:1: error: '{' expected
public class Main() {
                 ^
Main.java:3: error: illegal start of type
  if (rem == 0) System.out.println("pon");
  ^
Main.java:3: error: <identifier> expected
  if (rem == 0) System.out.println("pon");
         ^
Main.java:3: error: <identifier> expected
  if (rem == 0) System.out.println("pon");
                                  ^
Main.java:3: error: illegal start of type
  if (rem == 0) System.out.println("pon");
                                   ^
Main.java:4: error: illegal start of type
  else System.out.println("hon");
  ^
Main.java:4: error: <identifier> expected
  else System.out.println("hon");
                         ^
Main.java:4: error: illegal start of type
  else System.out.println("hon");
                          ^
8 errors
Language: Java

public {
  if (N%10 = 0) System.out.println("bon");
  else System.out.println("hon");
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
public {
       ^
Main.java:3: error: class, interface, enum, or record expected
  else System.out.println("hon");
  ^
Main.java:4: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

public static void main(String[] arguments); {
  int rem = N%10;
  if (rem == 3) System.out.println("bon");
  if (rem == 0, 1, 6, 8) System.out.println("pon");
  else System.out.println("hon");
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] arguments); {
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:1: error: class, interface, enum, or record expected
public static void main(String[] arguments); {
                                             ^
Main.java:3: error: class, interface, enum, or record expected
  if (rem == 3) System.out.println("bon");
  ^
Main.java:4: error: class, interface, enum, or record expected
  if (rem == 0, 1, 6, 8) System.out.println("pon");
  ^
Main.java:5: error: class, interface, enum, or record expected
  else System.out.println("hon");
  ^
Main.java:6: error: class, interface, enum, or record expected
}
^
6 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:39: error: expected ';' before 'cout'
   10 |   else(num==0||num==1||num==6||num==8)
      |                                       ^
      |                                       ;
   11 |     cout<<"pon";
      |     ~~~~                               
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else cout<<"bon";
      |   ^~~~
Language: Java


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.reflect.Array;
import java.util.*;


public class main {
    
         
    static FastReader in;
    static StringBuilder out;
    
    public  static void main(String[] args) {
        out = new StringBuilder();
        in = new FastReader();
        String n=in.nextLine();
        char ch=n.charAt(n.length()-1);
        if(ch=='3'){
            System.out.println("bon");
        }else if(ch=='0' || ch=='1' || ch=='6' || ch=='8'){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        }
    }
    static class FastReader {
        BufferedReader br;
        StringTokenizer st;
 
        public FastReader() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }
 
        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
 
        int nextInt() {
            return Integer.parseInt(next());
        }
 
        long nextLong() {
            return Long.parseLong(next());
        }
 
        double nextDouble() {
            return Double.parseDouble(next());
        }
 
        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }
 
     
    
}

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

/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.lang.reflect.Array;
import java.io.*;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{	

	static class FastReader {
		BufferedReader br;
		StringTokenizer st;
 
		public FastReader() {
			br = new BufferedReader(new InputStreamReader(System.in));
		}
 
		String next() {
			while (st == null || !st.hasMoreElements()) {
				try {
					st = new StringTokenizer(br.readLine());
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			return st.nextToken();
		}
 
		int nextInt() {
			return Integer.parseInt(next());
		}
 
		long nextLong() {
			return Long.parseLong(next());
		}
 
		double nextDouble() {
			return Double.parseDouble(next());
		}
 
		String nextLine() {
			String str = "";
			try {
				str = br.readLine();
			} catch (IOException e) {
				e.printStackTrace();
			}
			return str;
		}
	}


	public static int[] fracMul(int a[], int b[]){
		int temp[]=new int[2];
		temp[0]=a[0]*b[0];
		temp[1]=a[1]*b[0];
		return temp;
	}
	public static int[] fracAdd(int a[], int b[]){
		int temp[]=new int[2];
		temp[0]=a[0]*b[1] + a[1]*b[0];
		temp[1]=a[1]*b[1];
		return temp;
	}


	

	static FastReader in;
	static StringBuilder output;
	static int m=998244353;
	
	public static int modPower(int x, int y) { 
		if(y==0){
			return 1;
		}
		long ans=x;
		for(int i=1;i<y;i++){
			ans*=x;
			ans=ans%m;
		}
		return (int)ans;
	}
	public static void main (String[] args) throws java.lang.Exception{
		out = new StringBuilder();
        in = new FastReader();
        String n=in.nextLine();
        char ch=n.charAt(n.length()-1);
        if(ch=='3'){
            System.out.println("bon");
        }else if(ch=='0' || ch=='1' || ch=='6' || ch=='8'){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        }
	}
}


Compiler output:
Main.java:91: error: cannot find symbol
		out = new StringBuilder();
		^
  symbol:   variable out
  location: class Codechef
1 error
Language: C++

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



}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> a;
      |         ^~~
a.cc:7:7: error: 'cout' was not declared in this scope
    7 |       cout << "hon";}
      |       ^~~~
a.cc:9:7: error: 'cout' was not declared in this scope
    9 |       cout << "bon";
      |       ^~~~
a.cc:12:7: error: 'cout' was not declared in this scope
   12 |       cout << "pon";
      |       ^~~~
Language: C++

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



}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> a;
      |         ^~~
a.cc:6:46: error: 'cout' was not declared in this scope
    6 |     if(a==2 || a==4 || a==5 || a==7 || a==9){cout << "hon";}
      |                                              ^~~~
a.cc:7:14: error: 'cout' was not declared in this scope
    7 |     if(a==3){cout << "bon";}
      |              ^~~~
a.cc:8:10: error: 'cout' was not declared in this scope
    8 |     else{cout << "pon";}
      |          ^~~~