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

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

}


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

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

Compiler output:
main.c: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;
#define ll long long int

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


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

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

Compiler output:
Main.java:13: error: ';' expected
      System.out.println("hon")
                               ^
1 error
Language: Java

import java.util.Scanner;

public class k {
	public static void main(String[] args) {
		Scanner scan = new Scanner (System.in);
		int a = 0;
		for(int i = 1;i>0;i++){
			int n = scan.nextInt();
			if(n>=0&n<=999) {
				a = n;
				break;
			}}
			if(a>=100) {
				for(int j =0;j<11;j++) {
					a=a-100;
					if(a<100) {
						break;
					}
					
				}
			}
			else {}
				
				if(a>=10) {
					for(int j =0;j<11;j++) {
						a=a-10;
						if(a<10) {
							break;
						}
					}
				}
					else {
					}
			
				if(a==2||a==4||a==5||a==7||a==9) {
					System.out.println("hon");
				}
				else if(a==0||a==1||a==6||a==8) {
					System.out.println("pon");
				}
				else {
					System.out.println("bon");
				}
		}
		
		
		
	}




Compiler output:
Main.java:3: error: class k is public, should be declared in a file named k.java
public class k {
       ^
1 error
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==3)cout<<"bon";
	else cout<<pon;
}

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

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

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

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


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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | void main(){
      | ^~~~
Language: Java

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


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

import java.util.Scanner;

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

        int n = sc.nextInt();
        int digit;

        digit = n % 10;

        if (digit == 2 | digit == 4 | digit == 5 | digit == 7 | digit == 9){
            return "hon";

        } else if (digit == 0 | digit == 1 | digit == 6 | digit == 8){
            return "pon";

        } else if (digit == 3){
            return "bon";
        }

        return null;
    }

}

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

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

        int n = sc.nextInt();
        int digit;

        digit = n % 10;

        if (digit == 2 | digit == 4 | digit == 5 | digit == 7 | digit == 9){
            return "hon";

        } else if (digit == 0 | digit == 1 | digit == 6 | digit == 8){
            return "pon";

        } else if (digit == 3){
            return "bon";
        }

        return null;
    }

}

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


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

        int n = sc.nextInt();
        int digit;

        digit = n % 10;

        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 if (n == 3){
            System.out.println("bon");
        }

    }


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

package AtCoder;

import java.util.Scanner;

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

        int n = sc.nextInt();
        int digit;

        digit = n % 10;

        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 if (n == 3){
            System.out.println("bon");
        }

    }

}


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

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

        int n = sc.nextInt();
        int digit;

        digit = n % 10;

        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 if (n == 3){
            System.out.println("bon");
        }

    }

}


Compiler output:
Main.java:1: error: class Therefore is public, should be declared in a file named Therefore.java
public class Therefore {
       ^
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Therefore
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Therefore
3 errors
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:3: error: expected '}' before 'else'
    9 |   else if(n==0|| n==1|| n==6|| n==8){
      |   ^~~~
Language: C++

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        String hon = "24579";
        String pon = "0168";
        
        String N;
        N = new Scanner(System.in).next();

        String s = String.valueOf(N.charAt(N.length() - 1));
        
        if (hon.contains(s)){
            System.out.println("hon");
        }
        if (pon.contains(s)){
            System.out.println("pon");
        }
        if (N == "3") System.out.println("bon");
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C

#include <stdio.h>

int main(void)
{
	int num;

	scanf_s("%d", &num);

	if (num % 10 == 3)
	{
		printf("bon\n");
	}
	else if(num % 10 == 0 || num % 10 == 1 || num % 10 == 6 || num % 10 == 8)
	{
		printf("pon\n");
	}
	else
	{
		printf("hon\n");
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |         scanf_s("%d", &num);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>

int main(void)
{
	int num;

	scanf("%d", &num);

	if (num % 10 == 3)
	{
		printf_s("bon\n");
	}
	else if(num % 10 == 0 || num % 10 == 1 || num % 10 == 6 || num % 10 == 8)
	{
		printf_s("pon\n");
	}
	else
	{
		printf_s("hon\n");
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:17: error: implicit declaration of function 'printf_s'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 |                 printf_s("bon\n");
      |                 ^~~~~~~~
      |                 printf
Language: C

#include <stdio.h>

int main(void)
{
  int a;
  
  printf("整数を入力");
  scanf("%d",&a);
  
  a = a%100;
  a = a%10;
  
  switch() {
    case 0:puts("hon"); break;
    case 1:puts("pon"); break;
    case 2:puts("hon"); break;
    case 3:puts("bon"); break;
    case 4:puts("hon"); break;
    case 5:puts("hon"); break;
    case 6:puts("pon"); break;
    case 7:puts("hon"); break;
    case 8:puts("pon"); break;
    case 9:puts("hon"); break;
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:10: error: expected expression before ')' token
   13 |   switch() {
      |          ^
Language: C

#incloud <stdio.h>

int main(void)
{
  int a;
  
  printf("整数を入力");
  scanf("%d",&a);
  
  a = a%100;
  a = a%10;
  
  switch() {
    case 0:puts("hon"); break;
    case 1:puts("pon"); break;
    case 2:puts("hon"); break;
    case 3:puts("bon"); break;
    case 4:puts("hon"); break;
    case 5:puts("hon"); break;
    case 6:puts("pon"); break;
    case 7:puts("hon"); break;
    case 8:puts("pon"); break;
    case 9:puts("hon"); break;
  }
  return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #incloud; did you mean #include?
    1 | #incloud <stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |   printf("整数を入力");
      |   ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | #incloud <stdio.h>
main.c:7:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    7 |   printf("整数を入力");
      |   ^~~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |   scanf("%d",&a);
      |   ^~~~~
main.c:8:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:8:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:10: error: expected expression before ')' token
   13 |   switch() {
      |          ^
main.c:14:12: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
   14 |     case 0:puts("hon"); break;
      |            ^~~~
main.c:14:12: note: include '<stdio.h>' or provide a declaration of 'puts'
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class a168{
    public static void main(String[] args){
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            String N = reader.readLine();
            int len = (int)N.length()-1;
            String last = N.substring(len);
            System.out.println(last);
            if(last.equals("3")){
                System.out.println("bon");
            }else if(last.equals("0") || last.equals("1") || last.equals("6") || last.equals("8")){
                System.out.println("pon");
            }else{
                System.out.println("hon");
            }
        }catch(IOException e){
            System.out.println("aaaa");
        }
    }
}

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

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

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

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

#include<iostream>
using namespae std;

int main(){
  int n;
  cint>>n;
  int no = n%10;
  swith(no){
    case 1:
          cout<<"pon";
   		  break;
    case 0:
    	  cout<<"pon";
   		  break;
     case 6:
    	  cout<<"pon";
   		  break;
     case 8:
    	  cout<<"pon";
   		  break;
     case 3:
    	  cout<<"bon";
   		  break;
     case 2:
    	  cout<<"hon";
   		  break;
     case 4:
    	  cout<<"hon";
   		  break;
     case 5:
    	  cout<<"hon";
   		  break;
     case 7:
    	  cout<<"hon";
   		  break;
     case 9:
    	  cout<<"hon";
   		  break;
  }
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespae'
    2 | using namespae std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cint' was not declared in this scope; did you mean 'uint'?
    6 |   cint>>n;
      |   ^~~~
      |   uint
a.cc:8:3: error: 'swith' was not declared in this scope; did you mean 'wcwidth'?
    8 |   swith(no){
      |   ^~~~~
      |   wcwidth
Language: Java


import java.util.Scanner;

public class TripleDots {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        filter( scanner.nextInt(), scanner.next() );

    }

    public static void filter(int k, String s) {

        if(s.length() <= k) {
            System.out.println(s);
        }else {
            System.out.println(s.substring(0,k) + "...");
        }

    }
}


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


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;


     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 class TripleDots {

    public static void main(String[] args) {
        FastReader fastReader = new FastReader();
        filter( fastReader.nextInt(), fastReader.next() );

    }

    private static void filter(int reach, String s) {

        int len = s.length();
        if( len <= reach ){
            System.out.println(s);
        }else{
            System.out.println( s.substring(0, reach ) + "..." );
        }

    }
}



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


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;


     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 class TripleDots {

    public static void main(String[] args) {
        FastReader fastReader = new FastReader();
        filter( fastReader.nextInt(), fastReader.next() );

    }

    private static void filter(int reach, String s) {

        int len = s.length();
        if( len == reach ){
            System.out.println(s);
        }else{
            System.out.println( s.substring(0, reach ) + "..." );
        }

    }
}


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

import java.util.Scanner;
import java.util.StringTokenizer;

public class Therefore {

    public static void main(String[] args) {

        Scanner fastReader = new Scanner(System.in);
        find( fastReader.nextInt() );

    }

    public static void find( int num ){

        int lastDigit = num % 10;

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


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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Solution {

    public static void main(String[] args) {

        FastReader fastReader = new FastReader();
        find( fastReader.nextInt() );

    }

    public static void find( int num ){

        int lastDigit = num % 10;

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

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:6: error: class Solution is public, should be declared in a file named Solution.java
public class Solution {
       ^
1 error
Language: C

#include<stdio.h>

/*「hon」表示判定用定義*/
#define hon_2	2
#define hon_4	4
#define hon_5	5
#define hon_7	7
#define hon_9	9
#define hon		"hon"


/*「pon」表示判定用定義*/
#define pon_0	0
#define pon_1	1
#define pon_6	6
#define pon_8	8
#define pon		"pon"


/*「bon」表示判定用定義*/
#define bon_3	3
#define bon		"bon"


int main()
{
    int		N;
	int		temp_yo;		/* 1桁目算出用用変数	*/
	char	s[3];
	
	scanf("%d", &N);		/* Nの取得 */
	
	temp_yo = N % 10;

	if((hon_2 == temp_yo)
	|| (hon_4 == temp_yo)
	|| (hon_5 == temp_yo)
	|| (hon_7 == temp_yo)
	|| (hon_9 == temp_yo) ){		/* 2,4,5,7,9の時	*/
		s = hon;
	}
	else if((pon_0 == temp_yo)
	||		(pon_1 == temp_yo)
	||		(pon_6 == temp_yo)
	||		(pon_8 == temp_yo) ){	/* 0,1,6,8の時	*/
		s = pon;
	}
	else{							/* 上記以外(3の時)*/
		s = bon;
	}
		
	
    printf("%s\n", s);		/* 回答表示*/
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:40:19: error: assignment to expression with array type
   40 |                 s = hon;
      |                   ^
main.c:46:19: error: assignment to expression with array type
   46 |                 s = pon;
      |                   ^
main.c:49:19: error: assignment to expression with array type
   49 |                 s = bon;
      |                   ^
Language: C

#include<stdio.h>

/*「hon」表示判定用定義*/
#define hon_2	2
#define hon_4	4
#define hon_5	5
#define hon_7	7
#define hon_9	9

/*「pon」表示判定用定義*/
#define pon_0	0
#define pon_1	1
#define pon_6	6
#define pon_8	8

/*「bon」表示判定用定義*/
#define pon_3	3


int main()
{
    int		N;
	int		temp_yo;		/* 1桁目算出用用変数	*/
	char	s[3];
	
	scanf("%d", &N);		/* Nの取得 */
	
	temp_yo = M % 10;

	if((hon_2 == temp_yo)
	|| (hon_4 == temp_yo)
	|| (hon_5 == temp_yo)
	|| (hon_7 == temp_yo)
	|| (hon_9 == temp_yo) ){		/* 2,4,5,7,9の時	*/
		s = "hon";
	}
	else if((pon_0 == temp_yo)
	||		(pon_1 == temp_yo)
	||		(pon_6 == temp_yo)
	||		(pon_8 == temp_yo) ){	/* 0,1,6,8の時	*/
		s = "pon";
	}
	else{							/* 上記以外(3の時)*/
		s = "bon";
	}
		
	
    printf("%s\n", s);		/* 回答表示*/
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:28:19: error: 'M' undeclared (first use in this function)
   28 |         temp_yo = M % 10;
      |                   ^
main.c:28:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:35:19: error: assignment to expression with array type
   35 |                 s = "hon";
      |                   ^
main.c:41:19: error: assignment to expression with array type
   41 |                 s = "pon";
      |                   ^
main.c:44:19: error: assignment to expression with array type
   44 |                 s = "bon";
      |                   ^
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String args []){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int ans = a % 10;
    switch(ans){
      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 0:
        System.out.println("bon");
        break;
    }
  }
}

Compiler output:
Main.java:22: error: duplicate case label
      case 0:
      ^
1 error
Language: C

#include<stdio.h>

int main(void)
{
  int n;
  scanf("%d",&N);
  N=N%100;
  N=N%10;
  switch(N){
    case 1:
      printf("pon\n");
      break;
    case 2:
      printf("hon\n");
      break;
    case 3:
      printf("bon\n");
      break;
    case 4:
      printf("hon\n");
      break;
    case 5:
      printf("hon\n");
      break;
    case 6:
      printf("pon\n");
      break;  
    case 7:
      printf("hon\n");
      break;
    case 8:
      printf("pon\n");
      break;
    case 9:
      printf("hon\n");
      break;
    case 0:
      printf("pon\n");
      break;   
  }
    return 0;
  }

Compiler output:
main.c: In function 'main':
main.c:6:15: error: 'N' undeclared (first use in this function)
    6 |   scanf("%d",&N);
      |               ^
main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C

int main(void)
{
  int n;
  scanf("%d",&N);
  N=N%100;
  N=N%10;
  switch(N){
    case 1:
      printf("pon\n");
      break;
    case 2:
      printf("hon\n");
      break;
    case 3:
      printf("bon\n");
      break;
    case 4:
      printf("hon\n");
      break;
    case 5:
      printf("hon\n");
      break;
    case 6:
      printf("pon\n");
      break;  
    case 7:
      printf("hon\n");
      break;
    case 8:
      printf("pon\n");
      break;
    case 9:
      printf("hon\n");
      break;
    case 0:
      printf("pon\n");
      break;   
  }
    return 0;
  }

Compiler output:
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d",&N);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void)
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d",&N);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:15: error: 'N' undeclared (first use in this function)
    4 |   scanf("%d",&N);
      |               ^
main.c:4:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:7: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |       printf("pon\n");
      |       ^~~~~~
main.c:9:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:7: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include<stdio.h>

int main()
{
    int Anum,FirstNo;
    cin >>
        Anum;
    //桁数チェック
    FirstNo = Anum%10;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >>
      |     ^~~
Language: C

#include<stdio.h>

int main()
{
    int Anum,FirstNo;
    cin >>
        Anum;
    //桁数チェック
    FirstNo = Anum%10;

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


Compiler output:
main.c: In function 'main':
main.c:6:5: error: 'cin' undeclared (first use in this function)
    6 |     cin >>
      |     ^~~
main.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

/* https://www.youtube.com/watch?v=dQw4w9WgXcQ thanks for coming. -bedirhan */
#include <bits\stdc++.h>
using namespace std;
int main()
{
    int n;
    cin >> n;
    if (10 <= n < 100)
    {
        n = n % 10;
    }
    else if (100 <= n < 1000)
    {
        n = (n % 100) % 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";
    }
}


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

import java.util.*;

class Main {
  public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
    final int n = sc.nextInt();
    final int m = n % 10;
    switch (m) {
      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:
      default:
	    System.out.println("bon");
        break;
  }
}


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

import java.util.Scanner;
public class _168 {

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

}

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

import java.util.Scanner;
public class _168 {

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

}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:57: error: expected ';' before 'endl'
    9 |   if (a==2 || a==4 || a==5 || a==7 || a==9)cout << "pon" endl;
      |                                                         ^~~~~
      |                                                         ;
Language: Java

import java.util.Scanner;
public class honn {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		if(N%10==3) {
			System.out.println("bon");
			}
		if(N%10==0||N%10==1||N%10==6||N%10==8){
			System.out.println("pon");
			}else {
				System.out.println("honn");
			}
	}

}


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

import java.util.Scanner;

public class main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();

		int l = String.valueOf(a).length();

		String r = String.valueOf(a).substring(l - 1);
		int p = Integer.parseInt(r);

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


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

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

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

import java.util.Scanner;

public class main {
  public static void main(String args[]){

    Scanner scan = new Scanner(System.in);
    int val = scan.nextInt();
    if(val>99){
    for(i=2;i>=;i--){
		x=val%10
		a[i]=x
		val=val/10
    }
          if(a[2]==2 ||a[2]==4 || a[2]==5 || a[2]==7 || a[2]==9){
			System.out.println("hon");
          }else if(a[2]==0 ||a[2]==1 || a[2]==6 ||a[2]==8){
			System.out.println("pon");
          }else{
            System.out.println("bon");
          }
    }else if(val>9){
       for(i=1;i>=;i--){
		x=val%10
		a[i]=x
		val=val/10
    }
          if(a[1]==2 ||a[1]==4 || a[1]==5 || a[1]==7 || a[1]==9){
			System.out.println("hon");
          }else if(a[1]==0 ||a[1]==1 || a[1]==6 ||a[1]==8){
			System.out.println("pon");
          }else{
            System.out.println("bon");
          }
    }else{
      if(val==2 ||val==4 || val==5 || val==7 || val==9){
			System.out.println("hon");
          }else if(val==0 ||val==1 || val==6 || val==8){
			System.out.println("pon");
          }else{
            System.out.println("bon");
          }


Compiler output:
Main.java:9: error: illegal start of expression
    for(i=2;i>=;i--){
               ^
Main.java:10: error: ';' expected
		x=val%10
		        ^
Main.java:11: error: ';' expected
		a[i]=x
		      ^
Main.java:12: error: ';' expected
		val=val/10
		          ^
Main.java:22: error: illegal start of expression
       for(i=1;i>=;i--){
                  ^
Main.java:23: error: ';' expected
		x=val%10
		        ^
Main.java:24: error: ';' expected
		a[i]=x
		      ^
Main.java:25: error: ';' expected
		val=val/10
		          ^
Main.java:41: error: reached end of file while parsing
          }
           ^
9 errors
Language: Java

import java.io.*;
import java.util.*;
import java.lang.*;

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:59: error: 'pon' was not declared in this scope; did you mean 'pow'?
    7 |        if(n%10==0 || n%10==6 || n%10==1 || n%10==8) cout<<pon<<endl;
      |                                                           ^~~
      |                                                           pow
a.cc:8:76: error: 'hon' was not declared in this scope
    8 |        else if(n%10==2 || n%10==4 || n%10 ==5 || n%10==7 || n%10==9) cout<<hon<<endl;
      |                                                                            ^~~
a.cc:9:31: error: 'bon' was not declared in this scope
    9 |        else if(n%10==3) cout<<bon<<endl;
      |                               ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
typedef long long ll;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    int n, m;
    cin >> m;
    n = m %
    if (n == 3)
        cout << "bon";
    else if (n <= 1 || n == 6 || n == 8)
        cout << "pon";
    else
        cout << "hon";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected primary-expression before 'if'
   12 |     if (n == 3)
      |     ^~
a.cc:14:5: error: 'else' without a previous 'if'
   14 |     else if (n <= 1 || n == 6 || n == 8)
      |     ^~~~
Language: Java

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

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

#include<iostream>
using namespace std;
{
  int N;
  cin >> N;
  
  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:8:13: warning: multi-character character constant [-Wmultichar]
    8 |     cout << 'hon';
      |             ^~~~~
a.cc:10:13: warning: multi-character character constant [-Wmultichar]
   10 |     cout << 'pon';
      |             ^~~~~
a.cc:12:13: warning: multi-character character constant [-Wmultichar]
   12 |     cout << 'bon';
      |             ^~~~~
a.cc:3:1: error: expected unqualified-id before '{' token
    3 | {
      | ^
Language: C++

main = do
    n <- readLn :: IO Int
    putStrLn $ ["pon", "pon", "hon", "bon", "hon", "hon", "pon", "hon", "pon", "hon"] !! (mod n 10)


Compiler output:
a.cc:1:1: error: 'main' does not name a type
    1 | main = do
      | ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:23:3: error: expected declaration or statement at end of input
   23 |   }
      |   ^
Language: C++

#include <stdio.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;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> n;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<string> s(10);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <stdio.h>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:7:10: error: 'string' was not declared in this scope
    7 |   vector<string> s(10);
      |          ^~~~~~
a.cc:2:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    1 | #include <stdio.h>
  +++ |+#include <string>
    2 | using namespace std;
a.cc:7:18: error: 's' was not declared in this scope
    7 |   vector<string> s(10);
      |                  ^
a.cc:18:3: error: 'cout' was not declared in this scope
   18 |   cout << s[n%10] << endl;
      |   ^~~~
a.cc:18:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:22: error: 'endl' was not declared in this scope
   18 |   cout << s[n%10] << endl;
      |                      ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <stdio.h>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C++

#include <stdio.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;
  return 0:
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> n;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<string> s(10);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <stdio.h>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:7:10: error: 'string' was not declared in this scope
    7 |   vector<string> s(10);
      |          ^~~~~~
a.cc:2:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    1 | #include <stdio.h>
  +++ |+#include <string>
    2 | using namespace std;
a.cc:7:18: error: 's' was not declared in this scope
    7 |   vector<string> s(10);
      |                  ^
a.cc:18:3: error: 'cout' was not declared in this scope
   18 |   cout << s[n%10] << endl;
      |   ^~~~
a.cc:18:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:22: error: 'endl' was not declared in this scope
   18 |   cout << s[n%10] << endl;
      |                      ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <stdio.h>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:19:11: error: expected ';' before ':' token
   19 |   return 0:
      |           ^
      |           ;
a.cc:19:11: error: expected primary-expression before ':' token
Language: C++

#include <cmath>
#include <iostream>
#include <iomanip>
#include <set>
#include <string>

#ifdef MY_LOCAL
#define MY_NAMESPACE(n) namespace n {
#define MY_NAMESPACE_   }
#else
#define MY_NAMESPACE(n)
#deinfe MY_NAMESPACE_
#endif

//#ifdef MY_LOCAL
//namespace ABC168A {
//#endif
MY_NAMESPACE(ABC168A)

using namespace std;
int main()
{
	int n;
	cin >> n;

	string ans;
	switch (n % 10)
	{
	case 0:
	case 1:
	case 6:
	case 8:
		ans = "pon";
		break;
	case 2:
	case 4:
	case 5:
	case 7:
	case 9:
		ans = "hon";
		break;
	case 3:
		ans = "bon";
		break;
	}

	cout << ans << endl;
	return 0;
}

MY_NAMESPACE_

Compiler output:
a.cc:12:2: error: invalid preprocessing directive #deinfe; did you mean #define?
   12 | #deinfe MY_NAMESPACE_
      |  ^~~~~~
      |  define
a.cc:51:1: error: 'MY_NAMESPACE_' does not name a type; did you mean 'MY_NAMESPACE'?
   51 | MY_NAMESPACE_
      | ^~~~~~~~~~~~~
      | MY_NAMESPACE
Language: C++

#include <cmath>
#include <iostream>
#include <iomanip>
#include <set>
#include <string>

#ifdef MY_LOCAL
  #define MY_NAMESPACE(n) namespace n {
  #define MY_NAMESPACE_ }
#else
  #define MY_NAMESPACE(n)
  #deinfe MY_NAMESPACE_
#endif

//#ifdef MY_LOCAL
//namespace ABC168A {
//#endif
MY_NAMESPACE(ABC168A)

using namespace std;
int main()
{
	int n;
	cin >> n;

	string ans;
	switch (n % 10)
	{
	case 0:
	case 1:
	case 6:
	case 8:
		ans = "pon";
		break;
	case 2:
	case 4:
	case 5:
	case 7:
	case 9:
		ans = "hon";
		break;
	case 3:
		ans = "bon";
		break;
	}

	cout << ans << endl;
	return 0;
}

MY_NAMESPACE_

Compiler output:
a.cc:12:4: error: invalid preprocessing directive #deinfe; did you mean #define?
   12 |   #deinfe MY_NAMESPACE_
      |    ^~~~~~
      |    define
a.cc:51:1: error: 'MY_NAMESPACE_' does not name a type; did you mean 'MY_NAMESPACE'?
   51 | MY_NAMESPACE_
      | ^~~~~~~~~~~~~
      | MY_NAMESPACE
Language: C

#include <bits/stdc++.h>

using namespace std;

int main()
{
	int n;
	cin >> n;
	switch(n%10){
	case 2:
	case 4:
	case 5:
	case 7:
	case 9:
		cout << "hon" << endl;
		break;

	case 0:
	case 1:
	case 6:
	case 8:
		cout << "pon" << endl;
		break;

	case 3:
		cout << "bon" << endl;
	}
}

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

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

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

    return 0;    

}

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