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

#include <iostream>

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

  int k = n%10;

  if(k==1 or k==0 or k==6 or k==8){
	  cout >> "pon" >> endl;
	  break;
  }
  if(k==3){
	  cout >> "bon" >> endl;
	  break;
  }
  else(k==3){
	  cout >> "hon" >> endl;
	  break;
  }
  continue;
}

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:10:11: 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:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |           cout >> "pon" >> endl;
      |                            ^~~~
      |                            std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:11: error: break statement not within loop or switch
   11 |           break;
      |           ^~~~~
a.cc:14:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |           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:14:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |           cout >> "bon" >> endl;
      |                            ^~~~
      |                            std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:15:11: error: break statement not within loop or switch
   15 |           break;
      |           ^~~~~
a.cc:17:13: error: expected ';' before '{' token
   17 |   else(k==3){
      |             ^
      |             ;
a.cc:21:3: error: continue statement not within a loop
   21 |   continue;
      |   ^~~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  string a;
  cin >> a ;
  if(a[a.size()-1]=='0'||a[a.size()-1]=='1'||a[a.size()-1]=='6'||a[a.size()-1]=='8')
  {
  
    
    
    
    
    
    cout << "pon" ;
  }
  else if(a[a.size()-1]=='3')
  {
  cout<< "bon"}
  else
  {
   cout << "hon" ;
  }
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: lvalue required as left operand of assignment
    8 |   }else if(( N = 0 || N = 1) || ( N = 6 || N = 8)){
      |                  ~~^~~~
a.cc:8:41: error: lvalue required as left operand of assignment
    8 |   }else if(( N = 0 || N = 1) || ( N = 6 || N = 8)){
      |                                       ~~^~~~
a.cc:10:21: error: lvalue required as left operand of assignment
   10 |   }else if((( N = 2 || N = 4) || ( N =5)) || (N = 7 || N =9 )){
      |                   ~~^~~~
a.cc:10:53: error: lvalue required as left operand of assignment
   10 |   }else if((( N = 2 || N = 4) || ( N =5)) || (N = 7 || N =9 )){
      |                                                   ~~^~~~
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;
    if(one == null){
      if(ten == null){
        num = Interger.paserInt(hun);
        if(num == 3){
          System.out.println("bon");
        }else if(num == 0 && num == 1 && num == 6 && num == 8){
          System.out.print("pon");
        }else{
          System.out.print("hon");
        }
      }else if(one != null) {
        num = Interger.parseInt(ten);
        if(num == 3){
          System.out.println("bon");
        }else if(num == 0 && num == 1 && num == 6 && num == 8){
          System.out.print("pon");
        }else{
          System.out.print("hon");
        }
      }else{
        num = Interger.parseInt(one);
        if(num == 3){
          System.out.println("bon");
        }else if(num == 0 && num == 1 && num == 6 && num == 8){
          System.out.print("pon");
        }else{
          System.out.print("hon");
        }
    }
    }
  }

Compiler output:
Main.java:41: error: reached end of file while parsing
  }
   ^
1 error
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");
	if(n==0||n==1||n==6||n==8)
	printf("pon\n");
	if(n==3)
	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 n1;cin>>n1;
if(n1>99)
{ n1/=100;
 if(n1==3)
   cout<<bon;
 else if(n1==0||n1==1||n1==6||n1==8)
   cout<<pon;
 else
   cout<<hon;}
  else if (n1>9)
  {
     n1/=10;
 if(n1==3)
   cout<<bon;
 else if(n1==0||n1==1||n1==6||n1==8)
   cout<<pon;
 else
   cout<<hon;}
  else
  { 
 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: In function 'int main()':
a.cc:8:10: error: 'bon' was not declared in this scope
    8 |    cout<<bon;
      |          ^~~
a.cc:10:10: error: 'pon' was not declared in this scope; did you mean 'pow'?
   10 |    cout<<pon;
      |          ^~~
      |          pow
a.cc:12:10: error: 'hon' was not declared in this scope
   12 |    cout<<hon;}
      |          ^~~
a.cc:17:10: error: 'bon' was not declared in this scope
   17 |    cout<<bon;
      |          ^~~
a.cc:19:10: error: 'pon' was not declared in this scope; did you mean 'pow'?
   19 |    cout<<pon;
      |          ^~~
      |          pow
a.cc:21:10: error: 'hon' was not declared in this scope
   21 |    cout<<hon;}
      |          ^~~
a.cc:25:10: error: 'bon' was not declared in this scope
   25 |    cout<<bon;
      |          ^~~
a.cc:27:10: error: 'pon' was not declared in this scope; did you mean 'pow'?
   27 |    cout<<pon;
      |          ^~~
      |          pow
a.cc:29:10: error: 'hon' was not declared in this scope
   29 |    cout<<hon;}
      |          ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'elif' was not declared in this scope
    9 |   elif (n%10==0 && n%10==1 && n%10==6 && n%10==8){
      |   ^~~~
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else:
      |   ^~~~
a.cc:11:7: error: expected primary-expression before ':' token
   11 |   else:
      |       ^
a.cc: At global scope:
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
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;
    if(one == null){
      if(ten == null){
        num = Interger.paserInt(hun);
        if(num == 3){
          System.out.println("bon");
        }else if(num == 0 && num == 1 && num == 6 && num == 8){
          System.out.print("pon");
        }else{
          System.out.print("hon");
        }
      }else if{
        num = Interger.parseInt(ten);
        if(num == 3){
          System.out.println("bon");
        }else if(num == 0 && num == 1 && num == 6 && num == 8){
          System.out.print("pon");
        }else{
          System.out.print("hon");
        }
      }else{
        num = Interger.parseInt(one);
        if(num == 3){
          System.out.println("bon");
        }else if(num == 0 && num == 1 && num == 6 && num == 8){
          System.out.print("pon");
        }else{
          System.out.print("hon");
        }
    }
    }


Compiler output:
Main.java:21: error: '(' expected
      }else if{
              ^
Main.java:40: error: reached end of file while parsing
    }
     ^
2 errors
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:19: error: reached end of file while parsing
}
 ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: lvalue required as left operand of assignment
    8 |   }else if((N = 0 || N = 1) || (N = 6 || N = 8)){
      |                 ~~^~~~
a.cc:8:39: error: lvalue required as left operand of assignment
    8 |   }else if((N = 0 || N = 1) || (N = 6 || N = 8)){
      |                                     ~~^~~~
a.cc:10:20: error: lvalue required as left operand of assignment
   10 |   }else if(((N = 2 || N = 4) || ( N =5)) || (N = 7 || N =9)){
      |                  ~~^~~~
a.cc:10:52: error: lvalue required as left operand of assignment
   10 |   }else if(((N = 2 || N = 4) || ( N =5)) || (N = 7 || N =9)){
      |                                                  ~~^~~~
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");
	if(n==0||n==1||n==6||n==8)
	printf("pon");
	if(n==3)
	printf("bon");
	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<stdio.h>
 
int main(void){
int N; 
scanf("%d",&N);
if (N % 10 == 2,4,5,7,9)
  printf("hon");
else if (N % 10 == 0,1,6,8);
  printf("pon");
else if (N % 10 == 3)
  printf("bon");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:1: error: 'else' without a previous 'if'
   10 | else if (N % 10 == 3)
      | ^~~~
Language: Java

import java.util.Scanner;

public class Therefore {

    private static final Scanner SCANNER = new Scanner(System.in);

    static int readOneInt() {
        String line = SCANNER.nextLine();
        return Integer.parseInt(line);
    }

    public static void main(String[] args) {

//        int tc = Integer.parseInt(SCANNER.nextLine());
        int tc = 1;
        for (int i = 0; i < tc; ++i) {
            test(readOneInt());
        }
    }

    private static void test(int n) {
        int d = n % 10;
        if (d == 2 || d == 4 || d == 5 || d == 7 || d == 9) {
            System.out.println("hon");
        } else if (d == 0 || d == 1 || d == 6 || d == 8) {
            System.out.println("pon");
        } else if (d == 3) {
            System.out.println("bon");
        }
    }
}



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

#include <iostream>
using namespace std;
int main(){
  cin >>　int num[3];
  
  switch (num[1]) {
		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[3];
      |         ^
a.cc: In function 'int main()':
a.cc:4:9: error: '\U00003000int' was not declared in this scope
    4 |   cin >>　int num[3];
      |         ^~~~~
a.cc:6:11: error: 'num' was not declared in this scope; did you mean 'enum'?
    6 |   switch (num[1]) {
      |           ^~~
      |           enum
Language: C++

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










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

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

int main(){

int N[1000];
char a[5];
int  l=strlen(N)
scanf("%d",&N);
if(N[l]==3){
  printf("bon");
}else if((N[l]==0)||(N[l]==6)||(N[l]==1)||(N[l]==8)){
  printf("pon");
}else{
  printf("hon");
}
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:15: error: passing argument 1 of 'strlen' from incompatible pointer type [-Wincompatible-pointer-types]
    8 | int  l=strlen(N)
      |               ^
      |               |
      |               int *
In file included from main.c:2:
/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'int *'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
main.c:9:1: error: expected ',' or ';' before 'scanf'
    9 | scanf("%d",&N);
      | ^~~~~
Language: C

#include <stdio.h>
int main(void){
   int N;
  scanf("%d",&N);
  int split;
  split=N%10;
  switch(split){
    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:22:22: error: expected ';' before 'break'
   22 |       printf("bon\n")
      |                      ^
      |                      ;
   23 |         break;
      |         ~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected declaration specifiers or '...' before string constant
    5 |   scanf("%d",&r);
      |         ^~~~
main.c:5:14: error: expected declaration specifiers or '...' before '&' token
    5 |   scanf("%d",&r);
      |              ^
main.c:8:11: error: expected ')' before '!' token
    8 |     if(n=2 !! 4 !! 5 !! 7 !! 9!!)
      |       ~   ^~
      |           )
main.c:13:7: error: expected expression before '[' token
   13 |       [
      |       ^
main.c:18:24: error: expected ';' before '}' token
   18 |          printf("bon");
      |                        ^
      |                        ;
   19 |        }
      |        ~                
main.c: At top level:
main.c:20:2: error: expected identifier or '(' before '}' token
   20 |  }
      |  ^
Language: C

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

    int i = 0;
    int n;
    scanf("%d", &n);
    while(int n != 0){
    i++;
    n = n%10;
}
    if (i = 2 || i =4 || i = 5|| i = 7|| i = 9){
        printf("hon");
}
    if (i = 0 || i = 1 || i = 6|| i = 8){
        printf("pon");
}
    if (i = 3){
        printf("bon");
}
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:11: error: expected expression before 'int'
    7 |     while(int n != 0){
      |           ^~~
main.c:11:44: error: lvalue required as left operand of assignment
   11 |     if (i = 2 || i =4 || i = 5|| i = 7|| i = 9){
      |                                            ^
main.c:14:37: error: lvalue required as left operand of assignment
   14 |     if (i = 0 || i = 1 || i = 6|| i = 8){
      |                                     ^
Language: Java


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


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

}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'elseif' was not declared in this scope
    9 |   elseif (n%10==0 && n%10==1 && n%10==6 && n%10==8){
      |   ^~~~~~
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else (n%10==3){
      |   ^~~~
a.cc:11:17: error: expected ';' before '{' token
   11 |   else (n%10==3){
      |                 ^
      |                 ;
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;
    if(one == null){
      if(ten == null){
        num = Interger.paserInt(hun);
        if(num == 3){
          System.out.println("bon");
        }else if(num == 0 && num == 1 && num == 6 && num == 8){
          System.out.print("pon");
        }else{
          System.out.print("hon");
        }
      }else{
        num = Interger.parseInt(ten);
        if(num == 3){
          System.out.println("bon");
        }else if(num == 0 && num == 1 && num == 6 && num == 8){
          System.out.print("pon");
        }else{
          System.out.print("hon");
        }
      }else{
        num = Interger.parseInt(one);
        if(num == 3){
          System.out.println("bon");
        }else if(num == 0 && num == 1 && num == 6 && num == 8){
          System.out.print("pon");
        }else{
          System.out.print("hon");
        }
    }
    }
}

Compiler output:
Main.java:30: error: 'else' without 'if'
      }else{
       ^
Main.java:41: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

import java.util.Scanner;
public class MyClass {
    public static void main(String args[]) {
    Scanner obj = new Scanner(Syatem.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:9: error: unclosed character literal
        System.out.print('hon');
                         ^
Main.java:9: error: unclosed character literal
        System.out.print('hon');
                             ^
Main.java:9: error: not a statement
        System.out.print('hon');
                           ^
Main.java:13: error: unclosed character literal
        System.out.print('pon');
                         ^
Main.java:13: error: unclosed character literal
        System.out.print('pon');
                             ^
Main.java:13: error: not a statement
        System.out.print('pon');
                           ^
Main.java:17: error: unclosed character literal
        System.out.print('bon');
                         ^
Main.java:17: error: unclosed character literal
        System.out.print('bon');
                             ^
Main.java:17: error: not a statement
        System.out.print('bon');
                           ^
Main.java:19: error: reached end of file while parsing
}
 ^
10 errors
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:1: error: expected '}' before 'else'
    8 | else if (N % 10 == 0,1,6,8);
      | ^~~~
main.c:10:1: error: 'else' without a previous 'if'
   10 | else if (N % 10 == 3)
      | ^~~~
main.c: At top level:
main.c:13:1: error: expected identifier or '(' before 'return'
   13 | return 0;
      | ^~~~~~
main.c:14:1: error: expected identifier or '(' before '}' token
   14 | }
      | ^
Language: C++

#include <iostream>
#include <vector>
#include <unordered_map>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <algorithm>
#include <string>
#include <cmath>
#include <list>
#include <string.h>
using namespace std;
#define fo(i,l,r) for(int i=l;i<=r;++i)
#define fi(i,r,l) for(int i=r;i>=l;--i)
#define pb push_back
#define po pop_back
#define INF 1e9+9
void input(vector<int>& arr,int n){
  fo(i,0,n-1){
    cin>>arr[i];
  }
}
void solve(){
  int n;
  cin>>n;
  int last = n%10;
  if(last==2||last==4||last==5||last==7||last==9){
    cout<<"hon";
  }else if(last==0||last==1||last==6||last==8){
    cout<<"pon";
  }else{
    cout<<"bon"
  }
  cout<<endl;
}
int main(){
  int t;
  cin>>t;
  while(t--){

  }
  return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:33:16: error: expected ';' before '}' token
   33 |     cout<<"bon"
      |                ^
      |                ;
   34 |   }
      |   ~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:19:7: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   19 |       print("pon\n");
      |       ^~~~~
      |       printf
main.c:22:21: error: expected ';' before 'break'
   22 |       print("bon\n")
      |                     ^
      |                     ;
   23 |         break;
      |         ~~~~~
Language: Java

import java.util.Scanner;

public class Contest1 {

    private static final Scanner SCANNER = new Scanner(System.in);

    static int readOneInt() {
        String line = SCANNER.nextLine();
        return Integer.parseInt(line);
    }

    public static void main(String[] args) {

//        int tc = Integer.parseInt(SCANNER.nextLine());
        int tc = 1;
        for (int i = 0; i < tc; ++i) {
            test(readOneInt());
        }
    }

    private static void test(int n) {
        int d = n % 10;
        if (d == 2 || d == 4 || d == 5 || d == 7 || d == 9) {
            System.out.println("hon");
        } else if (d == 0 || d == 1 || d == 6 || d == 8) {
            System.out.println("pon");
        } else if (d == 3) {
            System.out.println("bon");
        }
    }
}



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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:4: error: expected initializer before '>>' token
    6 | cin>>n;
      |    ^~
a.cc:15:6: error: expected primary-expression before ')' token
   15 | else(){
      |      ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define fast ios_base::sync_with_stdio(false),cin.tie(0),cout.tie(0);
#define INF 1000000000001
#define DIM 100001
#define mod 1000000007
#define PI 3.1415926535897932384626433
#define se second
#define fi first
#define pb push_back
#define T true
#define F false
#define endl "\n"
#define gg cout<<"OPS"<<endl;
#define qwe return 0;
#define amen exit(0);
typedef char ch;
typedef bool boll;
typedef string st;
typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;
typedef set < string > sst;
typedef set < long long > sll;
typedef queue < long long > que;
typedef deque < long long > deq;
typedef vector < long long > vec;
typedef map < long long, long long > mll;
typedef pair < long long, long long > pll;
typedef vector < pair < long long, long long > > vpl;
typedef pair < long long, unsigned long long > pul;
typedef tree<ll, null_type, less<ll>, rb_tree_tag, tree_order_statistics_node_update> sat_set;
ll t,n;
int main()
{
     fast;
     ll k=0;
     st ss;
     cin>>ss;
     for(int i=0;i<ss.size();i++){
        if(ss[i]=='2' || ss[i]=='4' || ss[i]=='5' || ss[i]=='7' || ss[i]=='9'){
            f1=1;
        }
        else if(ss[i]=='0' || ss[i]=='1' || ss[i]=='6' || ss[i]=='8'){
            f2=1;
        }
        else {
            f3=1;
        }
     }
     if(f1==1)cout<<"hon";
     if(f2==1)cout<<"pon";
     if(f3==1)cout<<"bon";
     cout<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:45:13: error: 'f1' was not declared in this scope; did you mean 'y1'?
   45 |             f1=1;
      |             ^~
      |             y1
a.cc:48:13: error: 'f2' was not declared in this scope; did you mean 'fi'?
   48 |             f2=1;
      |             ^~
      |             fi
a.cc:51:13: error: 'f3' was not declared in this scope; did you mean 'fi'?
   51 |             f3=1;
      |             ^~
      |             fi
a.cc:54:9: error: 'f1' was not declared in this scope; did you mean 'y1'?
   54 |      if(f1==1)cout<<"hon";
      |         ^~
      |         y1
a.cc:55:9: error: 'f2' was not declared in this scope; did you mean 'fi'?
   55 |      if(f2==1)cout<<"pon";
      |         ^~
      |         fi
a.cc:56:9: error: 'f3' was not declared in this scope; did you mean 'fi'?
   56 |      if(f3==1)cout<<"bon";
      |         ^~
      |         fi
Language: C

#include <stdio.h>
int main(){
 
 int N;
 int x;
 int y;
 
 scanf("%d", &N);
 
 x = N % 100;
 y = x % 10;
 
 switch(y){
 case 3:
  printf("bon");
  break;
 case 0:
 case 1:
 case 6:
 case 8:
  printf("pon");
  break;
 default:
  printf("hon");
 }
 
 return 0
}

Compiler output:
main.c: In function 'main':
main.c:27:10: error: expected ';' before '}' token
   27 |  return 0
      |          ^
      |          ;
   28 | }
      | ~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int count;
	cin >> count;
	count = count % 10;
	int hon[] = {2,4,5,7,9};
	int *h;
	h = find(hon, hon + 5, count);
	if (h !=hon+5)
	{
		cout << "hon";
	}
	else {
		int pon[] = {0,1,6,8};
		int *p;
		p = find(pon, pon + 4, count);
		if (p!=pon+4)
		{
			cout << "pon";
		}
		else {
			cout << "bon";
		}
	}
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: no matching function for call to 'find(int [5], int*, int&)'
   11 |         h = find(hon, hon + 5, count);
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
                 from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   template argument deduction/substitution failed:
a.cc:11:17: note:   mismatched types 'std::istreambuf_iterator<_CharT>' and 'int*'
   11 |         h = find(hon, hon + 5, count);
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~
a.cc:19:25: error: no matching function for call to 'find(int [4], int*, int&)'
   19 |                 p = find(pon, pon + 4, count);
      |                     ~~~~^~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   template argument deduction/substitution failed:
a.cc:19:25: note:   mismatched types 'std::istreambuf_iterator<_CharT>' and 'int*'
   19 |                 p = find(pon, pon + 4, count);
      |                     ~~~~^~~~~~~~~~~~~~~~~~~~~
Language: Java

import java.util.*;

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

    }
}


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

#include<iostream>
using namespace std;
int main()
{
  string a;
  cin >> a ;
  if(a[a.size()-1]==0||a[a.size()-1]==1||a[a.size()-1]==6||a[a.size()-1]==8)
  {
  
    
    
    
    
    
    cout << "pon" ;
  }
  else if(a[a.size()-1]==3)
  {
  cout<< "bon"}
  else
  {
   cout << "hon" ;
  }
}

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

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


















Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: expected primary-expression before ')' token
   10 |   }else if(N = 2,4,5,7,9,){
      |                          ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:1: error: expected '}' before 'else'
    8 | else if (N % 10 == 0,1,6,8);
      | ^~~~
main.c:10:1: error: 'else' without a previous 'if'
   10 | else if (N % 10 == 3);
      | ^~~~
main.c: At top level:
main.c:12:1: error: expected identifier or '(' before 'return'
   12 | return 0;
      | ^~~~~~
main.c:13:1: error: expected identifier or '(' before '}' token
   13 | }
      | ^
Language: Java

import java.util.*;
public class App {
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        sc.close();

        switch(n%10){
            case 2:
            case 4:
            case 5:
            case 7:
            case 9:
                System.out.println("hon");
                break;
            case 0:
            case 1:
            case 6:
            case 8:
                System.out.println("pon");
                break;
            case 3:
                System.out.println("bon");
                break;
        }
    }
}

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

imort java.util.*;
public class Atcoder
{
  public static void main(String args[])
  {
    Scanner sc=new Scanner(System.in);
    int N=sc.nextInt();
      int number=N%10;
       if(number>=1 && number<=9)
       {
       if(number==2 ||number ==4|| number==5|| number==7 ||number==9)
       {
         System.out.println("hon");
       }
       else  if(number==0 ||number == 1|| number==6|| number==8)
         {
         System.out.println("pon");
       }
         else 
           {
         System.out.println("bon");
       }
       }   
  }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
imort java.util.*;
^
1 error
Language: C++

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

int main()
{
	const string[] table = {
    	"pon",
        "pon",
        "hon",
        "bon",
        "hon",
        "hon",
        "pon",
        "hon",
        "pon",
        "hon"
    };
     
	int N;
    cin >> N;
    cont << table[N%10];
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: structured binding declaration cannot have type 'const std::string' {aka 'const std::__cxx11::basic_string<char>'}
    7 |         const string[] table = {
      |                     ^~
a.cc:7:21: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:7:21: error: empty structured binding declaration
a.cc:7:24: error: expected initializer before 'table'
    7 |         const string[] table = {
      |                        ^~~~~
a.cc:22:5: error: 'cont' was not declared in this scope; did you mean 'const'?
   22 |     cont << table[N%10];
      |     ^~~~
      |     const
a.cc:22:13: error: 'table' was not declared in this scope; did you mean 'mutable'?
   22 |     cont << table[N%10];
      |             ^~~~~
      |             mutable
Language: C++

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


Compiler output:
a.cc:6:20: error: extended character 　 is not valid in an identifier
    6 |       std :: cin >>　num;
      |                    ^
a.cc: In function 'int main()':
a.cc:6:20: error: '\U00003000num' was not declared in this scope
    6 |       std :: cin >>　num;
      |                    ^~~~~
a.cc:10:11: error: expected ':' before ',' token
   10 |     case 0,1,6,8:
      |           ^
      |           :
a.cc:10:11: error: expected primary-expression before ',' token
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int a, b;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin>>a;
      |   ^~~
a.cc:7:3: error: 'b' does not name a type
    7 |   b=a%10;
      |   ^
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if(b==2||b==4||b==5||b==7||b==9){
      |   ^~
a.cc:11:3: error: expected unqualified-id before 'if'
   11 |   if(b==0||b==1||b==6||b==8){
      |   ^~
a.cc:14:3: error: expected unqualified-id before 'else'
   14 |   else{
      |   ^~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

using namespace std;

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

  int k = N.size();
  char m =N.at(k-1);

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

 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string N;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>N;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:5:8: error: 'N' was not declared in this scope
    5 |   cin>>N;
      |        ^
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout<<"hon"<<endl;
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:18: error: 'endl' was not declared in this scope
   11 |     cout<<"hon"<<endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout<<"pon"<<endl;
      |     ^~~~
a.cc:14:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:18: error: 'endl' was not declared in this scope
   14 |     cout<<"pon"<<endl;
      |                  ^~~~
a.cc:14:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout<<"bon"<< endl;
      |     ^~~~
a.cc:17:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:19: error: 'endl' was not declared in this scope
   17 |     cout<<"bon"<< endl;
      |                   ^~~~
a.cc:17:19: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: request for member 'size' in 'N', which is of non-class type 'int'
    8 |   int x= N.size();
      |            ^~~~
a.cc:9:12: error: request for member 'at' in 'N', which is of non-class type 'int'
    9 |   int s= N.at(0);
      |            ^~
a.cc:10:12: error: request for member 'at' in 'N', which is of non-class type 'int'
   10 |   int t= N.at(1);
      |            ^~
a.cc:11:12: error: request for member 'at' in 'N', which is of non-class type 'int'
   11 |   int u= N.at(2);
      |            ^~
a.cc:14:18: error: lvalue required as left operand of assignment
   14 |     if(s==2||s==4||s=5||s==7||s==9)
      |        ~~~~~~~~~~^~~
a.cc:23:18: error: lvalue required as left operand of assignment
   23 |     if(t==2||t==4||t=5||t==7||t==9)
      |        ~~~~~~~~~~^~~
a.cc:32:18: error: lvalue required as left operand of assignment
   32 |     if(u==2||u==4||u=5||u==7||u==9)
      |        ~~~~~~~~~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
int n;cin>>n;
string x= to_string(n);
int n=x.length();
if(x[n-1]==3)
cout<<"bon"<<endl;
else if(x[n-1]==0||x[n-1]==1||x[n-1]==6||x[n-1]==8)
cout<<"pon"<<endl;
else
cout<<"hon";


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: redeclaration of 'int n'
    6 | int n=x.length();
      |     ^
a.cc:4:5: note: 'int n' previously declared here
    4 | int n;cin>>n;
      |     ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    4 |   int ichi:
      |           ^
main.c:4:11: error: expected expression before ':' token
main.c:6:3: error: 'ichi' undeclared (first use in this function)
    6 |   ichi = N % 10;
      |   ^~~~
main.c:6:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

//

#include "pch.h"
#include <iostream>
#include <string>


int main()
{
    int32_t n;
    std::cin >> n;
	const auto v = n % 10;
    if(v==3){
		std::cout << "bon" << std::endl;

	}
	else {
		if (v == 0||v==1||v==6||v==8) {
			std::cout << "pon" << std::endl;
		}
		else {
			std::cout << "hon" << std::endl;
		}
	}
    return 0;

}



Compiler output:
a.cc:3:10: fatal error: pch.h: No such file or directory
    3 | #include "pch.h"
      |          ^~~~~~~
compilation terminated.
Language: C++

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










Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main ()
      | ^~~~
Language: C++

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> N;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #Include <bits/stdc++.h>
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << "bon" << endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |     cout << "bon" << endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #Include <bits/stdc++.h>
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "pon" << endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:22: error: 'endl' was not declared in this scope
   10 |     cout << "pon" << endl;
      |                      ^~~~
a.cc:10:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "hon" << endl;
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:22: error: 'endl' was not declared in this scope
   12 |     cout << "hon" << endl;
      |                      ^~~~
a.cc:12:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: request for member 'size' in 'N', which is of non-class type 'int'
    8 |   int x=N.size();
      |           ^~~~
a.cc:9:11: error: request for member 'at' in 'N', which is of non-class type 'int'
    9 |   int s=N.at(0);
      |           ^~
a.cc:10:11: error: request for member 'at' in 'N', which is of non-class type 'int'
   10 |   int t=N.at(1);
      |           ^~
a.cc:11:11: error: request for member 'at' in 'N', which is of non-class type 'int'
   11 |   int u=N.at(2);
      |           ^~
a.cc:14:18: error: lvalue required as left operand of assignment
   14 |     if(s==2||s==4||s=5||s==7||s==9)
      |        ~~~~~~~~~~^~~
a.cc:23:18: error: lvalue required as left operand of assignment
   23 |     if(t==2||t==4||t=5||t==7||t==9)
      |        ~~~~~~~~~~^~~
a.cc:32:18: error: lvalue required as left operand of assignment
   32 |     if(u==2||u==4||u=5||u==7||u==9)
      |        ~~~~~~~~~~^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: expected primary-expression before ')' token
   10 |   }else if(N = 2,4,5,7,9,){
      |                          ^
Language: C++

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

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