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

import java.util.*;
 
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.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");
		}

		if(N % 10 == 2 && N % 10 == 4 && N % 10 == 5 && N % 10 == 7 && N % 10 == 9){
		System.out.println("hon");
		}
	}

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

n = int(input())

n %= 10
if n == 3:
    print('bon')
if n == 0 or 1 or 6 or 8:
    print('pon')
else:
    print('hon')

Compiler output:
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('bon')
      |           ^~~~~
a.cc:7:11: warning: multi-character character constant [-Wmultichar]
    7 |     print('pon')
      |           ^~~~~
a.cc:9:11: warning: multi-character character constant [-Wmultichar]
    9 |     print('hon')
      |           ^~~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^
Language: C

#include <stdio.h>

int main(){
	int x,y;
	scanf("%d",&x);
	y=x%10;
	if(y==3) printf("bon");
	else if(y==0||y==1||y==6||y==8) printf("pon");
	else prinf("hon");
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:14: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    9 |         else prinf("hon");
      |              ^~~~~
      |              printf
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected ';' before 'if'
    7 |   y = (x % 10)
      |               ^
      |               ;
    8 |   if(y == 3){
      |   ~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ')' before ';' token
    7 |   y = (x % 10;)
      |       ~      ^
      |              )
a.cc:7:15: error: expected primary-expression before ')' token
    7 |   y = (x % 10;)
      |               ^
Language: C++

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

int main() {
  char NumStr;
  cin >> NumStr;
  char x = NumStr[2];
  int n = atoi(x.c_str());
  if(n == 2 || n == 4 || n == 5 || n == 7 || n == 9) {
    cout << "hon" << endl;
    if(n == 0 || n == 1 || n == 6 || n == 8) {
      cout << "pon" << endl;
    }
    else
      cout << "bon" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: invalid types 'char[int]' for array subscript
    7 |   char x = NumStr[2];
      |                  ^
a.cc:8:18: error: request for member 'c_str' in 'x', which is of non-class type 'char'
    8 |   int n = atoi(x.c_str());
      |                  ^~~~~
Language: C++

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

int main() {
  char NumStr;
  cin >> NumStr;
  char x = NumStr[3];
  int n = atoi(x.c_str());
  if(n == 2 || n == 4 || n == 5 || n == 7 || n == 9) {
    cout << "hon" << endl;
    if(n == 0 || n == 1 || n == 6 || n == 8) {
      cout << "pon" << endl;
    }
    else
      cout << "bon" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: invalid types 'char[int]' for array subscript
    7 |   char x = NumStr[3];
      |                  ^
a.cc:8:18: error: request for member 'c_str' in 'x', which is of non-class type 'char'
    8 |   int n = atoi(x.c_str());
      |                  ^~~~~
Language: C++

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

int main() {
  char NumStr;
  cin >> NumStr;
  char x = Numstr[3];
  int n = atoi(x.c_str());
  if(n == 2 || n == 4 || n == 5 || n == 7 || n == 9) {
    cout << "hon" << endl;
    if(n == 0 || n == 1 || n == 6 || n == 8) {
      cout << "pon" << endl;
    }
    else
      cout << "bon" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'Numstr' was not declared in this scope; did you mean 'NumStr'?
    7 |   char x = Numstr[3];
      |            ^~~~~~
      |            NumStr
a.cc:8:18: error: request for member 'c_str' in 'x', which is of non-class type 'char'
    8 |   int n = atoi(x.c_str());
      |                  ^~~~~
Language: C++

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

int main() {
  char NumStr;
  cin >> NumStr;
  char x = Numstr[3];
  int n = atoi(x.c_Str());
  if(n == 2 || n == 4 || n == 5 || n == 7 || n == 9) {
    cout << "hon" << endl;
    if(n == 0 || n == 1 || n == 6 || n == 8) {
      cout << "pon" << endl;
    }
    else
      cout << "bon" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'Numstr' was not declared in this scope; did you mean 'NumStr'?
    7 |   char x = Numstr[3];
      |            ^~~~~~
      |            NumStr
a.cc:8:18: error: request for member 'c_Str' in 'x', which is of non-class type 'char'
    8 |   int n = atoi(x.c_Str());
      |                  ^~~~~
Language: C++

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

int main() {
  char NumStr;
  cin >> NumStr;
  char x = Numstr[3];
  int n = atoi(x.Str_c());
  if(n == 2 || n == 4 || n == 5 || n == 7 || n == 9) {
    cout << "hon" << endl;
    if(n == 0 || n == 1 || n == 6 || n == 8) {
      cout << "pon" << endl;
    }
    else
      cout << "bon" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'Numstr' was not declared in this scope; did you mean 'NumStr'?
    7 |   char x = Numstr[3];
      |            ^~~~~~
      |            NumStr
a.cc:8:18: error: request for member 'Str_c' in 'x', which is of non-class type 'char'
    8 |   int n = atoi(x.Str_c());
      |                  ^~~~~
Language: C++

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


int main(){
  int n;
  cin >> n;
  string ans;
  if(n%10 == 2 || n%10 == 4 || n%10 == 5 || n%10 == 7 || n%10 == 9) {
    ans = 'hon';
  }
  else if(n%10 == 0 || n%10 == 1 || n%10 == 6 || n%10 == 8) {
    ans = 'pon';
  }
  else {
    ans = 'bon'
  }

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

Compiler output:
a.cc:11:11: warning: multi-character character constant [-Wmultichar]
   11 |     ans = 'hon';
      |           ^~~~~
a.cc:14:11: warning: multi-character character constant [-Wmultichar]
   14 |     ans = 'pon';
      |           ^~~~~
a.cc:17:11: warning: multi-character character constant [-Wmultichar]
   17 |     ans = 'bon'
      |           ^~~~~
a.cc: In function 'int main()':
a.cc:11:11: warning: overflow in conversion from 'int' to 'char' changes value from '6844270' to '110' [-Woverflow]
   11 |     ans = 'hon';
      |           ^~~~~
a.cc:14:11: warning: overflow in conversion from 'int' to 'char' changes value from '7368558' to '110' [-Woverflow]
   14 |     ans = 'pon';
      |           ^~~~~
a.cc:17:11: warning: overflow in conversion from 'int' to 'char' changes value from '6451054' to '110' [-Woverflow]
   17 |     ans = 'bon'
      |           ^~~~~
a.cc:17:16: error: expected ';' before '}' token
   17 |     ans = 'bon'
      |                ^
      |                ;
   18 |   }
      |   ~
Language: C++

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

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


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

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

Compiler output:
main.c: In function 'main':
main.c:17:9: error: implicit declaration of function 'getch'; did you mean 'getc'? [-Wimplicit-function-declaration]
   17 |         getch();
      |         ^~~~~
      |         getc
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";
	else if(n%10==0||n%10==1||n%10==6||n%10==8)
		cout << "pon"
	else
	cout << "bon"
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: expected ';' before 'else'
   11 |                 cout << "pon"
      |                              ^
      |                              ;
   12 |         else
      |         ~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'rem' was not declared in this scope; did you mean 'drem'?
    8 |   rem=n%10;
      |   ^~~
      |   drem
Language: Java

import java.util.*;

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

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

import java.util.*;
 public class Main {
	public static void main(String[] args){
      
      int N = 999;

      if(N % 10  ==  2 || N % 10  = 4 || N % 10  == 5 || N % 10  == 7 || N % 10  == 9){
         System.out.println("hon");
         
      }else if(N % 10  == 3){

         System.out.println("bon");

      }else{

         System.out.println("pon");

       
      }
      
   }
 }




Compiler output:
Main.java:7: error: bad operand types for binary operator '||'
      if(N % 10  ==  2 || N % 10  = 4 || N % 10  == 5 || N % 10  == 7 || N % 10  == 9){
                       ^
  first type:  boolean
  second type: int
Main.java:7: error: bad operand types for binary operator '||'
      if(N % 10  ==  2 || N % 10  = 4 || N % 10  == 5 || N % 10  == 7 || N % 10  == 9){
                                      ^
  first type:  int
  second type: boolean
2 errors
Language: Java

import java.util.*;
 public class Main {
	public static void main(String[] args){
      
      int N = 999;

      if(N % 10  ==  2 || N % 10  = 4 || N % 10  == 5 || N % 10  == 7 || N % 10  == 9){
         System.out.println("hon");
         
      }else if(N % 10  == 3){

         System.out.println("bon");

      }else{

         System.out.println("pon");

       
      }
      
   }
 }





Compiler output:
Main.java:7: error: bad operand types for binary operator '||'
      if(N % 10  ==  2 || N % 10  = 4 || N % 10  == 5 || N % 10  == 7 || N % 10  == 9){
                       ^
  first type:  boolean
  second type: int
Main.java:7: error: bad operand types for binary operator '||'
      if(N % 10  ==  2 || N % 10  = 4 || N % 10  == 5 || N % 10  == 7 || N % 10  == 9){
                                      ^
  first type:  int
  second type: boolean
2 errors
Language: C

#include <stdio.h> 2
3 int main(void) {
4 int n;
5 scanf("%d", &n);
6
7 switch (n % 10) {
8 case 2:
9 case 4:
10 case 5:
11 case 7:
12 case 9:
13 puts("hon");
14 break;
15 case 0:
16 case 1:
17 case 6:
18 case 8:
19 puts("pon");
20 break;
21 case 3:
Listing 1
C での実装例
 1
22 23 24 25 26 27
puts("bon");
break; }
return 0;

Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> 2
      |                    ^
main.c:2:1: error: expected identifier or '(' before numeric constant
    2 | 3 int main(void) {
      | ^
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";
    } else if (n%10 == 0 || n%10 == 1 || n%10 == 6 || n%10 == 8) {
        cout<<"pon";
    } else {
        cout<<"bon";
    return 0;}





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

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

int main() {
 string b;
  cin >> b;
  for (int i = 1; i < 4; i++){
  if(b.size() == i){
    if (b.at(i-1) == 2 || b.at(i-1) == 4 || b.at(i-1) == 5|| b.at(i-1) == 7 || b.at(i-1) == 9){
      cout << "hon" << endl;
    }
    else if (b.at(i-1) == 0 || b.at(i-1) == 1 || b.at(i-1) == 6|| b.at(i-1) == 8){
      cout << "pon" << endl;
    }
    else if (b.at(i-1) == 3){
      cout << "bon" << endl;
    }
  }
}

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

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

int main() {
 string b;
  cin >> b;
  for (int i = 0; i < 2; i++){
  if(b.size() == i + 1){
    if (b.at(2) == 2 || b.at(2) == 4 || b.at(2) == 5|| b.at(2) == 7 || b.at(2) == 9){
      cout << "hon" << endl;
    }
    else if (b.at(2) == 0 || b.at(2) == 1 || b.at(2) == 6|| b.at(2) == 8){
      cout << "pon" << endl;
    }
    else if (b.at(2) == 3){
      cout << "bon" << endl;
    }
  }
}

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

#include <stdio.h>

using namespace std;
typedef long long llong;

#define MAX
const llong mod = 1000000000 + 7;

int main()
{
  int n, i;
  char units[3][3] = {"bon", "pon", "hon"};
  scanf("%d", &n);

  switch (n % 10)
  {
  case 3:
    i = 0;
    break;
  case 0:
  case 1:
  case 6:
  case 8:
    i = 1;
  default:
    i = 2;
    break;
  }

  printf("%s\n", units[i]);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: initializer-string for 'char [3]' is too long [-fpermissive]
   12 |   char units[3][3] = {"bon", "pon", "hon"};
      |                       ^~~~~
a.cc:12:30: error: initializer-string for 'char [3]' is too long [-fpermissive]
   12 |   char units[3][3] = {"bon", "pon", "hon"};
      |                              ^~~~~
a.cc:12:37: error: initializer-string for 'char [3]' is too long [-fpermissive]
   12 |   char units[3][3] = {"bon", "pon", "hon"};
      |                                     ^~~~~
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int n;
    cin >> n;
    n=n%10
    if (n==2||n==4||n==5||n==7||n==9){
        cout << "hon";
    }
    if (n==0||n==1||n==6||n==8){
        cout << "pon"
    }
    if (n==3){
        cout << "bon"
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before 'if'
    7 |     n=n%10
      |           ^
      |           ;
    8 |     if (n==2||n==4||n==5||n==7||n==9){
      |     ~~     
a.cc:12:22: error: expected ';' before '}' token
   12 |         cout << "pon"
      |                      ^
      |                      ;
   13 |     }
      |     ~                 
a.cc:15:22: error: expected ';' before '}' token
   15 |         cout << "bon"
      |                      ^
      |                      ;
   16 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define all(v) v.begin(),v.end()

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



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

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

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

    string ans;

    if(N%10 == 3) ans = "bon";
    else if(N%10 == 0 || N%10 == 1 || N%10 == 6 || N%10 == 8) ans = "pon";
    else ans = "hon";

    cout << ans << endl;

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

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

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
Main.java:6: error: '(' or '[' expected
	   Scanner sc = new Scanner;
	                           ^
Main.java:13: error: not a statement
       else(r == 3)
           ^
Main.java:13: error: ';' expected
       else(r == 3)
                   ^
4 errors
Language: C++

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
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 | #inlude<iostream>
a.cc:7:50: error: 'cout' was not declared in this scope
    7 |   if(unit==2||unit==4||unit==5||unit==7||unit==9)cout<<"hon";
      |                                                  ^~~~
a.cc:7:50: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:46: error: 'cout' was not declared in this scope
    8 |   else if(unit==0||unit==1||unit==6||unit==8)cout<<"pon";
      |                                              ^~~~
a.cc:8:46: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:8: error: 'cout' was not declared in this scope
    9 |   else cout<<"bon";
      |        ^~~~
a.cc:9:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#inlude<iostream>
using namespace std;
int main(){
  int n;
  cin>>n;
  int unit=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:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
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 | #inlude<iostream>
a.cc:7:35: error: 'cout' was not declared in this scope
    7 |   if(n==2||n==4||n==5||n==7||n==9)cout<<"hon";
      |                                   ^~~~
a.cc:7:35: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:34: error: 'cout' was not declared in this scope
    8 |   else if(n==0||n==1||n==6||n==8)cout<<"pon";
      |                                  ^~~~
a.cc:8:34: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:8: error: 'cout' was not declared in this scope
    9 |   else cout<<"bon";
      |        ^~~~
a.cc:9:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

int main(){
  string str;
  if(str.back() == "1") cout << "pon" << endl;
  if(str.back() == "2") cout << "hon" << endl;
  if(str.back() == "3") cout << "bon" << endl;
  if(str.back() == "4") cout << "hon" << endl;
  if(str.back() == "5") cout << "hon" << endl;
  if(str.back() == "6") cout << "pon" << endl;
  if(str.back() == "7") cout << "hon" << endl;
  if(str.back() == "8") cout << "pon" << endl;
  if(str.back() == "9") cout << "hon" << endl;
  if(str.back() == "0") cout << "pon" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(str.back() == "1") cout << "pon" << endl;
      |      ~~~~~~~~~~~^~~~~~
a.cc:7:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(str.back() == "2") cout << "hon" << endl;
      |      ~~~~~~~~~~~^~~~~~
a.cc:8:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(str.back() == "3") cout << "bon" << endl;
      |      ~~~~~~~~~~~^~~~~~
a.cc:9:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if(str.back() == "4") cout << "hon" << endl;
      |      ~~~~~~~~~~~^~~~~~
a.cc:10:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if(str.back() == "5") cout << "hon" << endl;
      |      ~~~~~~~~~~~^~~~~~
a.cc:11:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if(str.back() == "6") cout << "pon" << endl;
      |      ~~~~~~~~~~~^~~~~~
a.cc:12:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if(str.back() == "7") cout << "hon" << endl;
      |      ~~~~~~~~~~~^~~~~~
a.cc:13:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   if(str.back() == "8") cout << "pon" << endl;
      |      ~~~~~~~~~~~^~~~~~
a.cc:14:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |   if(str.back() == "9") cout << "hon" << endl;
      |      ~~~~~~~~~~~^~~~~~
a.cc:15:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |   if(str.back() == "0") cout << "pon" << endl;
      |      ~~~~~~~~~~~^~~~~~
Language: C++

#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <cmath>
#include <fstream>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
using namespace std;
typedef long long ll;

int main(void){
    ll n;
    cin>>n;
    while(1){
        if(n/10<1)break;
        n/=10;
    }
    int a=n%10;
    if(a==2||a==4||a==5||a=7||a==9){
        cout<<"hon"<<endl;
    }
    else if(a==3){
        cout<<"pon"<<endl;
    }else{
        cout<<"bon"<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:24: error: lvalue required as left operand of assignment
   22 |     if(a==2||a==4||a==5||a=7||a==9){
      |        ~~~~~~~~~~~~~~~~^~~
Language: C++

#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <cmath>
#include <fstream>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
using namespace std;
typedef long long ll;

int main(void){
    ll n;
    cin>>n;
    while(1){
        if(n/10<1)break;
        n/=10;
    }
    int a=n%10;
    if(a==2||a==4||a==5||a=7||a=9){
        cout<<"hon"<<endl;
    }
    else if(a==3){
        cout<<"pon"<<endl;
    }else(){
        cout<<"bon"<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:29: error: lvalue required as left operand of assignment
   22 |     if(a==2||a==4||a==5||a=7||a=9){
      |                            ~^~~
a.cc:27:11: error: expected primary-expression before ')' token
   27 |     }else(){
      |           ^
Language: C++

#include<iostream>
#include <string>
#include <cstring>
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"<<endl;
  	else if((N%10 ==0||N%10 ==1||N%10 ==6||N%10 ==8) cout<<"pon"<<endl;
    else cout<<"bon"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:57: error: expected ';' before 'cout'
   10 |         else if((N%10 ==0||N%10 ==1||N%10 ==6||N%10 ==8) cout<<"pon"<<endl;
      |                                                         ^~~~~
      |                                                         ;
a.cc:11:5: error: expected primary-expression before 'else'
   11 |     else cout<<"bon"<<endl;
      |     ^~~~
a.cc:10:76: error: expected ')' before 'else'
   10 |         else if((N%10 ==0||N%10 ==1||N%10 ==6||N%10 ==8) cout<<"pon"<<endl;
      |                ~                                                           ^
      |                                                                            )
   11 |     else cout<<"bon"<<endl;
      |     ~~~~
Language: C++

#include<iostream>
#include <string>
#include <cstring>
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"<<endl;
  	else if((N%10 ==0||N%10 ==1||N%10 ==6||N%10 ==8) cout<<"pon"<<endl;
    else cout<<"bon"<<endl
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:57: error: expected ';' before 'cout'
   10 |         else if((N%10 ==0||N%10 ==1||N%10 ==6||N%10 ==8) cout<<"pon"<<endl;
      |                                                         ^~~~~
      |                                                         ;
a.cc:11:5: error: expected primary-expression before 'else'
   11 |     else cout<<"bon"<<endl
      |     ^~~~
a.cc:10:76: error: expected ')' before 'else'
   10 |         else if((N%10 ==0||N%10 ==1||N%10 ==6||N%10 ==8) cout<<"pon"<<endl;
      |                ~                                                           ^
      |                                                                            )
   11 |     else cout<<"bon"<<endl
      |     ~~~~
Language: C

#include<stdio.h>

int main(void){
int N;

scanf("%d",&N);

N=N%100;

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==3d){printf("bon");}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:7: error: invalid suffix "d" on integer constant
   12 | if(N==3d){printf("bon");}
      |       ^~
Language: C

n = int(input())
if (n%10) in [2, 4, 5, 7, 9]:
    print("hon")
elif (n%10) in [0, 1, 6, 8]:
    print("pon")
else:
    print("bon")

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | n = int(input())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
main.c:1:5: error: expected expression before 'int'
    1 | n = int(input())
      |     ^~~
Language: C++

pl=input()
n=int(pl)
if n%10 is 3:
	print('bon')
elif n%10 is 0 or n%10 is 1 or n%10 is 6 or n%10 is 8:
	print('pon')
else: print('hon')

Compiler output:
a.cc:4:15: warning: multi-character character constant [-Wmultichar]
    4 |         print('bon')
      |               ^~~~~
a.cc:6:15: warning: multi-character character constant [-Wmultichar]
    6 |         print('pon')
      |               ^~~~~
a.cc:7:13: warning: multi-character character constant [-Wmultichar]
    7 | else: print('hon')
      |             ^~~~~
a.cc:1:1: error: 'pl' does not name a type
    1 | pl=input()
      | ^~
Language: Java

import java.util.*;
class Main{
  public static void main(String[]args){
    int a=sc.nextInt();
    if(a%10==3) System.out.printf("bon");
    else if(a%10==0 || a%10==1 || a%10==6 || a%10==8) System.out.printf("pon");
    else System.out.printf("hon");
  }
}

Compiler output:
Main.java:4: error: cannot find symbol
    int a=sc.nextInt();
          ^
  symbol:   variable sc
  location: class Main
1 error
Language: C++

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

Compiler output:
a.cc:1:1: error: unterminated comment
    1 | /*#include<bits/stdc++.h>
      | ^
Language: C++

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

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<bits/stdc++.h>
#define endl "\n" 
using namespace std;
#define debug(x) cout<<"The value of "<<#x<<" is "<<x<<endl;
typedef long long ll;
typedef unsigned long long ull;

int main()
{
    cin.sync_with_stdio(0); cin.tie(0); 
    int n;
    cin>>n;
    int n=n%10;
    vector<int>hon={2,4,5,7,9};
    vector<int>pon={0,1,6,8};
    vector<int>bon={3};
    for(auto i:hon)
    if(i==n){
        cout<<"hon"<<endl;
        return 0;
    } 
    for(auto i:pon)
    if(i==n){
        cout<<"pon"<<endl;
        return 0;
    }
    for(auto i:bon)
    if(i==n){
        cout<<"bon"<<endl;
        return 0;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: redeclaration of 'int n'
   13 |     int n=n%10;
      |         ^
a.cc:11:9: note: 'int n' previously declared here
   11 |     int n;
      |         ^
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        // String line = sc.nextLine();
        int N = int(sc.nextLine());
        String unit;
        switch (N) {
            case 3:
                unit = "bon";
                break;
            case 0:
            case 1:
            case 6:
            case 8:
                unit = "pon";
                break;
            default:
                unit = "hon";
                break;
        }
        System.out.println(N + unit);
    }
}

Compiler output:
Main.java:7: error: '.class' expected
        int N = int(sc.nextLine());
                   ^
Main.java:7: error: ';' expected
        int N = int(sc.nextLine());
                                 ^
2 errors
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:16: error: expected expression before '%' token
    5 |          scanf(%d,&N);
      |                ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:16: error: expected expression before '%' token
    5 |          scanf(%d,&N);
      |                ^
main.c:14:20: warning: missing terminating " character
   14 |             printf("bon\");
      |                    ^
main.c:14:20: error: missing terminating " character
   14 |             printf("bon\");
      |                    ^~~~~~~~
main.c:15:9: error: expected expression before '}' token
   15 |         }
      |         ^
main.c:14:20: error: expected ';' before '}' token
   14 |             printf("bon\");
      |                    ^
      |                    ;
   15 |         }
      |         ~
Language: Java

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

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

/* Name of the class has to be "Main" only if the class is public. */
public final class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int rem = n%10;
		if(rem == 2 || rem == 4 || rem == 7 || rem == 9 || rem ==5){
			System.out.println("hon");
		}
		else if(rem == 0 || rem == 1 || rem == 6 || rem == 8){
			System.out.println("pon");
		}
		else{
			System.out.println("bon");
		}
	}
}

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

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



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

#include <iostream>

int main(){
  int n;
  std::cin >> n;
  int t = n%10;
  switch(t){
    case 0:
    case 1:
    case 6:
    case 8:
        cout << "pon" << endl; break;
    case 3:
      cout << "bon" << endl; break;
    default:
      cout << "hon" << endl; break;
  }
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'elseif' was not declared in this scope
    9 | elseif(N==0||N==1||N==6||N==8){cout<<"pon"<<endl;}
      | ^~~~~~
a.cc:10:1: error: 'else' without a previous 'if'
   10 | else{cout<<"hon"<<endl;}
      | ^~~~
Language: Java

import java.util.Scanner;

public class Test {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int i=sc.nextInt();
	int d = i%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 {
    	System.out.println("bon");
    }
	sc.close();
	}
    }

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

package test;

import java.util.Scanner;

public class Test {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int i=sc.nextInt();
	int d = i%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 {
    	System.out.println("bon");
    }
	sc.close();
	}
    }

Compiler output:
Main.java:5: 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==5)||(N%10==7)||(N%10==9)){
cout<<"hon"<<endl;
  }else if(N%10==3){
    cout<<"<<bon"<<endl;
  }else{
cout<<"pon"<<endl;
  }
}

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

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

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

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

int main(void){
  string s;
  cin >> s;
  if (s.at(-1) == "3") {
    cout << "bon" << endl;
  }
  else if (s.at(-1) == "0" && s.at(-1) == "1" && s.at(-1) == "6" && s.at(-1) == "8") {
    cout << "pon" << endl;
  }
  else {
    cout << "hon" << endl;
  }  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if (s.at(-1) == "3") {
      |       ~~~~~~~~~^~~~~~
a.cc:10:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   else if (s.at(-1) == "0" && s.at(-1) == "1" && s.at(-1) == "6" && s.at(-1) == "8") {
      |            ~~~~~~~~~^~~~~~
a.cc:10:40: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   else if (s.at(-1) == "0" && s.at(-1) == "1" && s.at(-1) == "6" && s.at(-1) == "8") {
      |                               ~~~~~~~~~^~~~~~
a.cc:10:59: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   else if (s.at(-1) == "0" && s.at(-1) == "1" && s.at(-1) == "6" && s.at(-1) == "8") {
      |                                                  ~~~~~~~~~^~~~~~
a.cc:10:78: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   else if (s.at(-1) == "0" && s.at(-1) == "1" && s.at(-1) == "6" && s.at(-1) == "8") {
      |                                                                     ~~~~~~~~~^~~~~~
Language: C++

int main() {
    int num;
    cin >> num;
    num = num % 10;

    if(num == 3) {
        cout << "bon" << endl;
    } else if(num == 0 || num == 1 || num == 6 || num == 8) {
        cout << "pon" << endl;
    } else {
        cout << "hon" << endl;
    }
    
    return 0;

}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} [-fpermissive]
    8 |     A[0]="pon";
      |          ^~~~~
      |          |
      |          const char*
a.cc:9:10: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} [-fpermissive]
    9 |     A[1]="pon";
      |          ^~~~~
      |          |
      |          const char*
a.cc:10:10: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} [-fpermissive]
   10 |     A[2]="hon";
      |          ^~~~~
      |          |
      |          const char*
a.cc:11:10: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} [-fpermissive]
   11 |     A[3]="bon";
      |          ^~~~~
      |          |
      |          const char*
a.cc:12:10: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} [-fpermissive]
   12 |     A[4]="hon";
      |          ^~~~~
      |          |
      |          const char*
a.cc:13:10: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} [-fpermissive]
   13 |     A[5]="hon";
      |          ^~~~~
      |          |
      |          const char*
a.cc:14:10: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} [-fpermissive]
   14 |     A[6]="pon";
      |          ^~~~~
      |          |
      |          const char*
a.cc:15:10: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} [-fpermissive]
   15 |     A[7]="hon";
      |          ^~~~~
      |          |
      |          const char*
a.cc:16:10: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} [-fpermissive]
   16 |     A[8]="pon";
      |          ^~~~~
      |          |
      |          const char*
a.cc:17:10: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} [-fpermissive]
   17 |     A[9]="hon";
      |          ^~~~~
      |          |
      |          const char*
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     A[0]=="pon";
a.cc:9:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     A[1]=="pon";
a.cc:10:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     A[2]=="hon";
a.cc:11:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     A[3]=="bon";
a.cc:12:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     A[4]=="hon";
a.cc:13:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     A[5]=="hon";
a.cc:14:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     A[6]=="pon";
a.cc:15:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     A[7]=="hon";
a.cc:16:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |     A[8]=="pon";
a.cc:17:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |     A[9]=="hon";
Language: C

#include<stdio.h>

int main()
{
     n;
    scanf("%d",&n);
    if(n<=999);
    {
        n=n%109;
        n=n%10;
    }
    if(<=99)
    {
        n=n%10;
    }
    if(<=9) 
    n=n;
    {
        if(n==2,n==4,n==5,n==7,n==9)
        pirntf("hon");
        
        if else(n==0,n==1,n==6,n==8)
        printf("pon");
        
        else
        printf("bon");
     
        return 0;   
    }
}

Compiler output:
main.c: In function 'main':
main.c:5:6: error: 'n' undeclared (first use in this function)
    5 |      n;
      |      ^
main.c:5:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:8: error: expected expression before '<=' token
   12 |     if(<=99)
      |        ^~
main.c:16:8: error: expected expression before '<=' token
   16 |     if(<=9)
      |        ^~
main.c:20:9: error: implicit declaration of function 'pirntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   20 |         pirntf("hon");
      |         ^~~~~~
      |         printf
main.c:22:12: error: expected '(' before 'else'
   22 |         if else(n==0,n==1,n==6,n==8)
      |            ^~~~
      |            (
Language: C

#include<stdio.h>

int main()
{
     n;
    scanf("%d",&n);
    if(n<=999);
    {
        n=n%109;
        n=n%10;
    }
    if(<=99)
    {
        n=n%10;
    }
    if(<=9)
    {
        if(n==2,n==4,n==5,n==7,n==9)
        pirntf("hon");
        
        if else(n==0,n==1,n==6,n==8)
        printf("pon");
        
        else
        printf("bon");
     
        return 0;   
    }
}

Compiler output:
main.c: In function 'main':
main.c:5:6: error: 'n' undeclared (first use in this function)
    5 |      n;
      |      ^
main.c:5:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:8: error: expected expression before '<=' token
   12 |     if(<=99)
      |        ^~
main.c:16:8: error: expected expression before '<=' token
   16 |     if(<=9)
      |        ^~
main.c:19:9: error: implicit declaration of function 'pirntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   19 |         pirntf("hon");
      |         ^~~~~~
      |         printf
main.c:21:12: error: expected '(' before 'else'
   21 |         if else(n==0,n==1,n==6,n==8)
      |            ^~~~
      |            (
Language: C

#include<stdio.h>

int main()
{
    int N;
    {
    if(N==2,4,5,7,9);
    printf("%d",hon);
    
    if else(N==0,1,6,8);
    printf("%d",pon);
    
    else
    printf("%d",bon);
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:17: error: 'hon' undeclared (first use in this function)
    8 |     printf("%d",hon);
      |                 ^~~
main.c:8:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:8: error: expected '(' before 'else'
   10 |     if else(N==0,1,6,8);
      |        ^~~~
      |        (
main.c:11:17: error: 'pon' undeclared (first use in this function); did you mean 'popen'?
   11 |     printf("%d",pon);
      |                 ^~~
      |                 popen
main.c:13:5: error: 'else' without a previous 'if'
   13 |     else
      |     ^~~~
main.c:14:17: error: 'bon' undeclared (first use in this function)
   14 |     printf("%d",bon);
      |                 ^~~
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^