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

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



}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: 'cin' undeclared (first use in this function)
    4 |         cin >> a;
      |         ^~~
main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:46: error: 'cout' undeclared (first use in this function)
    6 |     if(a==2 || a==4 || a==5 || a==7 || a==9){cout << "hon";}
      |                                              ^~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <cstdio>
#include <bits/stdc++.h>
#include <unordered_map>
#include <unordered_set>
#include <queue>

#define pb push_back
     
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pll;
     
bool debug = false;
     

struct state
{
    ll a,b,c;

    state(ll a, ll b, ll c) : a(a), b(b), c(c)
    {

    }

  bool operator==(const state &other) const
  { return (a == other.a
            && b == other.b
            && c == other.c);
  }
};


struct KeyHasher
{
    size_t operator()(const state& k) const
  {
    //using std::size_t;
    //using std::hash;
    //using std::string;

    return ((hash<ll>()(k.a)
               ^ (hash<ll>()(k.b) << 1)) >> 1)
               ^ (hash<ll>()(k.c) << 1);
  }
};  


void solve(ll casen)
{
    
    cout << "Case #" << casen << ": " << maxx << endl;
}

int main()
{
    // $ g++ -std=c++14 -Wshadow -Wall -o c C.cpp

    // !!! Here, unordered map was too slow!!!
    std::ios::sync_with_stdio(false);
    cin.tie(NULL);
    
    /*
    ll t;
    cin >> t;

    for (int i = 0; i < t; i++)
    {
        solve(i+1);
    }
    */

    ll n;
    cin >> n;

    ll 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;

    return 0;
}

Compiler output:
a.cc: In function 'void solve(ll)':
a.cc:54:42: error: 'maxx' was not declared in this scope
   54 |     cout << "Case #" << casen << ": " << maxx << endl;
      |                                          ^~~~
Language: Java

import scala.collection.mutable.ArrayBuffer
import scala.io.StdIn

object Main extends App {
  val n = StdIn.readInt()
  val d = n / 10
  if (d == 3) println("pon")
  else if (List(0, 1, 6, 8).contains(d)) println("bon")
  else println("hon")


  def readIntPair: (Int, Int) = {
    val Array(x, y) = StdIn.readLine().split(" ").map(_.toInt)
    (x, y)
  }

  def readIntArr = StdIn.readLine().split(" ").map(_.toInt)
}






Compiler output:
Main.java:1: error: ';' expected
import scala.collection.mutable.ArrayBuffer
                                           ^
Main.java:2: error: ';' expected
import scala.io.StdIn
                     ^
2 errors
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    5 | {
      | ^
main.c:56: error: expected '{' at end of input
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:24: error: expected primary-expression before '=' token
    4 |   if(scanf("%d", &n) !== 1) {
      |                        ^
Language: C++

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

using namespace std;

#define charToInt(c) (c-'0')

string solve(string c) {
  switch(charToInt(c[0])) {
    case 2:
    case 4:
    case 5:
    case 7:
    case 9:
      puts("hon");
      break
    case 0:
    case 1:
    case 6:
    case 8:
      puts("pon");
      break
    case 3:
      break
      puts("bon");
      break
  }
  return 0;
}

int main () {
  string inputline;
  cin >> inputline;
  solve("18");
}


Compiler output:
a.cc: In function 'std::string solve(std::string)':
a.cc:17:12: error: expected ';' before 'case'
   17 |       break
      |            ^
      |            ;
   18 |     case 0:
      |     ~~~~    
a.cc:23:12: error: expected ';' before 'case'
   23 |       break
      |            ^
      |            ;
   24 |     case 3:
      |     ~~~~    
a.cc:25:12: error: expected ';' before 'puts'
   25 |       break
      |            ^
      |            ;
   26 |       puts("bon");
      |       ~~~~  
a.cc:27:12: error: expected ';' before '}' token
   27 |       break
      |            ^
      |            ;
   28 |   }
      |   ~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int n;
  cin>>n;
  int rem = n%10;
  n=rem;
  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 if (n==3)
    cout<<"bon";
  return 0;
}


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

#include<iostream>
using namespace std;
int main()
{
  int n;
  cin>>n;
  int rem = 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 if (n==3)
    cout<<"bon";
  return 0;
}

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

#include<iostream>
namespace std;

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

Compiler output:
a.cc:2:14: error: expected '{' before ';' token
    2 | namespace std;
      |              ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:54: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   if(a == 2 || a == 4 || a == 5 || a == 7 || a == 9) cout << "hon";
      |                                                      ^~~~
      |                                                      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:20: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   else if (a == 3) cout << "bon";
      |                    ^~~~
      |                    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   else cout << "pon";
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: lvalue required as left operand of assignment
   10 |   if(a==2 || a=-4 || a==5 || a==7 || a==9){
      |      ~~~~~^~~~
a.cc:12:3: error: expected '}' before 'else'
   12 |   else if(a==0 || a==1 || a==6 || a==8){
      |   ^~~~
a.cc:10:43: note: to match this '{'
   10 |   if(a==2 || a=-4 || a==5 || a==7 || a==9){
      |                                           ^
Language: Java

int (2hon = 2本)
　　(4hon = 4本)
  　(5hon = 5本)
    (7hon = 7本)
    (9hon = 9本)
  
    

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
int (2hon = 2?)
^
Main.java:2: error: illegal character: '\u3000'
??(4hon = 4?)
^
Main.java:2: error: illegal character: '\u3000'
??(4hon = 4?)
 ^
Main.java:3: error: illegal character: '\u3000'
  ?(5hon = 5?)
  ^
4 errors
Language: Java

import java.util.Scanner;

public class P1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.next();
        char c = s.charAt(s.length() - 1);
        if (c == '3') {
            System.out.println("bon");
        } else if (c == '0' || c == '1' || c == '6' || c == '8') {
            System.out.println("pon");
        } else {
            System.out.println("hon");
        }
    }
}

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

import java.io.*;
 
public class Main{
	public static void main(String[] args)throws IOException{
    	BufferdReader br=new BufferdReader(new InputStreamReader(System.in));
      
      int n;
      n=Integer.parseInt(br.readLine());
      n=n%10;
      switch(n){
        case 2:
        case 4: 
        case 5:
        case 7:
        case 9:
          System.out.println("hon");
          break;
        case 0:
        case 1:
        case 6:
        case 8:
          System.out.println("pon");
          break;
        case 3:
          System.out.println("bon");
          break;
      }
    }	
}

Compiler output:
Main.java:5: error: cannot find symbol
    	BufferdReader br=new BufferdReader(new InputStreamReader(System.in));
    	^
  symbol:   class BufferdReader
  location: class Main
Main.java:5: error: cannot find symbol
    	BufferdReader br=new BufferdReader(new InputStreamReader(System.in));
    	                     ^
  symbol:   class BufferdReader
  location: class Main
2 errors
Language: Java

import java.io.*;

public class Main{
	public static void main(String[] args)throws IOException{
    	BufferdReader br=new BufferdReader(new InputStreamReader(System.in));
      
      int n;
      n=Integer.parseInt(br.readLine());
      n=n%10;
      switch(n){
      	case:2
        case:4
        case:5
        case:7
        case:9
          System.out.println("hon");
        case:0
        case:1
        case:6
        case:8
          System.out.println("pon");
        case:3
          System.out.println("bon");
      }
    }	
}

Compiler output:
Main.java:11: error: illegal start of expression
      	case:2
      	    ^
Main.java:11: error: not a statement
      	case:2
      	     ^
Main.java:11: error: ';' expected
      	case:2
      	      ^
Main.java:12: error: illegal start of expression
        case:4
            ^
Main.java:12: error: not a statement
        case:4
             ^
Main.java:12: error: ';' expected
        case:4
              ^
Main.java:13: error: illegal start of expression
        case:5
            ^
Main.java:13: error: not a statement
        case:5
             ^
Main.java:13: error: ';' expected
        case:5
              ^
Main.java:14: error: illegal start of expression
        case:7
            ^
Main.java:14: error: not a statement
        case:7
             ^
Main.java:14: error: ';' expected
        case:7
              ^
Main.java:15: error: illegal start of expression
        case:9
            ^
Main.java:15: error: not a statement
        case:9
             ^
Main.java:15: error: ';' expected
        case:9
              ^
Main.java:17: error: illegal start of expression
        case:0
            ^
Main.java:17: error: not a statement
        case:0
             ^
Main.java:17: error: ';' expected
        case:0
              ^
Main.java:18: error: illegal start of expression
        case:1
            ^
Main.java:18: error: not a statement
        case:1
             ^
Main.java:18: error: ';' expected
        case:1
              ^
Main.java:19: error: illegal start of expression
        case:6
            ^
Main.java:19: error: not a statement
        case:6
             ^
Main.java:19: error: ';' expected
        case:6
              ^
Main.java:20: error: illegal start of expression
        case:8
            ^
Main.java:20: error: not a statement
        case:8
             ^
Main.java:20: error: ';' expected
        case:8
              ^
Main.java:22: error: illegal start of expression
        case:3
            ^
Main.java:22: error: not a statement
        case:3
             ^
Main.java:22: error: ';' expected
        case:3
              ^
30 errors
Language: Java

import java.util.Scanner;

public class therefore {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int first = n % 10;
        switch(first){
            case 0:
                System.out.println("pon");
                break;
            case 1:
                System.out.println("pon");
                break;
            case 2:
                System.out.println("hon");
                break;
            case 3:
                System.out.println("bon");
                break;
            case 4:
                System.out.println("hon");
                break;
            case 5:
                System.out.println("hon");
                break;
            case 6:
                System.out.println("pon");
                break;
            case 7:
                System.out.println("hon");
                break;
            case 8:
                System.out.println("pon");
                break;
            case 9:
                System.out.println("hon");
                break;
            default:
                break;
        }
    }
}


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

#include <iostream>
using namespace std; 
 
 
 
// Find the last digit 
int lastDigit(int n) 
{ 
	// return the last digit 
	return (n % 10); 
} 
 
// Driver program 
int main() 
{ 
	int n;
    cin>>n;
	switch(lastDigit(n))
    {
      case 1:
        cout<<"pon"<<endl;
          break;
       case 2:"hon"<<endl;
        cout<<
          break;
       case 3:
        cout<<"bon"<<endl;
          break;
       case 4:
        cout<<"hon"<<endl;
          break;
       case 5:
        cout<<"hon"<<endl;
          break;
       case 6:
        cout<<"pon"<<endl;
          break;
        case 7:
        cout<<"hon"<<endl;
          break;
        case 8:
        cout<<"pon"<<endl;
          break;
        case 9:
        cout<<"hon"<<endl;
          break;
        case 0:
        cout<<"pon"<<endl;
          break;
    }
	return 0; 
} 
#include <bits/stdc++.h> 
using namespace std; 



// Find the last digit 
int lastDigit(int n) 
{ 
	// return the last digit 
	return (n % 10); 
} 

// Driver program 
int main() 
{ 
	int n;
    cin>>n;
	switch(lastDigit(n))
    {
      case 1:
        cout<<"pon"<<endl;
          break;
       case 2:"hon"<<endl;
        cout<<
          break;
       case 3:
        cout<<"bon"<<endl;
          break;
       case 4:
        cout<<"hon"<<endl;
          break;
       case 5:
        cout<<"hon"<<endl;
          break;
       case 6:
        cout<<"pon"<<endl;
          break;
        case 7:
        cout<<"hon"<<endl;
          break;
        case 8:
        cout<<"pon"<<endl;
          break;
        case 9:
        cout<<"hon"<<endl;
          break;
        case 0:
        cout<<"pon"<<endl;
          break;
    }
	return 0; 
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:23:20: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   23 |        case 2:"hon"<<endl;
      |               ~~~~~^~~~~~
a.cc:25:11: error: expected primary-expression before 'break'
   25 |           break;
      |           ^~~~~
a.cc: At global scope:
a.cc:59:5: error: redefinition of 'int lastDigit(int)'
   59 | int lastDigit(int n)
      |     ^~~~~~~~~
a.cc:7:5: note: 'int lastDigit(int)' previously defined here
    7 | int lastDigit(int n)
      |     ^~~~~~~~~
a.cc:66:5: error: redefinition of 'int main()'
   66 | int main()
      |     ^~~~
a.cc:14:5: note: 'int main()' previously defined here
   14 | int main()
      |     ^~~~
a.cc: In function 'int main()':
a.cc:75:20: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   75 |        case 2:"hon"<<endl;
      |               ~~~~~^~~~~~
a.cc:77:11: error: expected primary-expression before 'break'
   77 |           break;
      |           ^~~~~
Language: C++

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



// Find the last digit 
int lastDigit(int n) 
{ 
	// return the last digit 
	return (n % 10); 
} 

// Driver program 
int main() 
{ 
	int n;
    cin>>n;
	switch(lastDigit(n))
    {
      case 1:
        cout<<"pon"<<endl;
          break;
       case 2:"hon"<<endl;
        cout<<
          break;
       case 3:
        cout<<"bon"<<endl;
          break;
       case 4:
        cout<<"hon"<<endl;
          break;
       case 5:
        cout<<"hon"<<endl;
          break;
       case 6:
        cout<<"pon"<<endl;
          break;
        case 7:
        cout<<"hon"<<endl;
          break;
        case 8:
        cout<<"pon"<<endl;
          break;
        case 9:
        cout<<"hon"<<endl;
          break;
        case 0:
        cout<<"pon"<<endl;
          break;
    }
	return 0; 
} 
Submission Inf

Compiler output:
a.cc: In function 'int main()':
a.cc:23:20: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   23 |        case 2:"hon"<<endl;
      |               ~~~~~^~~~~~
a.cc:25:11: error: expected primary-expression before 'break'
   25 |           break;
      |           ^~~~~
a.cc: At global scope:
a.cc:59:5: error: redefinition of 'int lastDigit(int)'
   59 | int lastDigit(int n)
      |     ^~~~~~~~~
a.cc:7:5: note: 'int lastDigit(int)' previously defined here
    7 | int lastDigit(int n)
      |     ^~~~~~~~~
a.cc:66:5: error: redefinition of 'int main()'
   66 | int main()
      |     ^~~~
a.cc:14:5: note: 'int main()' previously defined here
   14 | int main()
      |     ^~~~
a.cc: In function 'int main()':
a.cc:75:20: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   75 |        case 2:"hon"<<endl;
      |               ~~~~~^~~~~~
a.cc:77:11: error: expected primary-expression before 'break'
   77 |           break;
      |           ^~~~~
a.cc: At global scope:
a.cc:105:1: error: 'Submission' does not name a type
  105 | Submission Inf
      | ^~~~~~~~~~
Language: C++


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



// Find the last digit 
int lastDigit(int n) 
{ 
	// return the last digit 
	return (n % 10); 
} 

// Driver program 
int main() 
{ 
	int n;
    cin>>n;
	switch(lastDigit(n))
    {
      case 1:
        cout<<"pon"<<endl;
          break;
       case 2:"hon"<<endl;
        cout<<
          break;
       case 3:
        cout<<"bon"<<endl;
          break;
       case 4:
        cout<<"hon"<<endl;
          break;
       case 5:
        cout<<"hon"<<endl;
          break;
       case 6:
        cout<<"pon"<<endl;
          break;
        case 7:
        cout<<"hon"<<endl;
          break;
        case 8:
        cout<<"pon"<<endl;
          break;
        case 9:
        cout<<"hon"<<endl;
          break;
        case 0:
        cout<<"pon"<<endl;
          break;
    }
	return 0; 
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:24:20: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   24 |        case 2:"hon"<<endl;
      |               ~~~~~^~~~~~
a.cc:26:11: error: expected primary-expression before 'break'
   26 |           break;
      |           ^~~~~
Language: Java

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

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

#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>

typedef struct t_queue{
	int size, head, tail;
	int *datavec;
} Queue;

Queue *initQueue(int);
void freeQueue(Queue*);
void enqueue(Queue*, int);
int dequeue(Queue*);

Queue *initQueue(int size){
	Queue *q = (Queue*)malloc(sizeof(Queue));
	//if(q == NULL) errorQueue();

	q->size = size;
	q->datavec = (int*)malloc(sizeof(int) * (size+1));
	if(q->datavec == NULL) errorQueue();
	q->head = q->tail = 0;
	return q;
}

void freeQueue(Queue *q){
	free(q->datavec);
	free(q);
}

void enqueue(Queue *q, int data){
	q->datavec[q->head] = data;
	q->head++;
	q->head %= (q->size+1);
}

int dequeue(Queue *q){
	int ret = q->datavec[q->tail];
	q->tail++;
	q->tail %= (q->size+1);
	return ret;
}

int main(int argc, char const *argv[]){
	int n, m;
	scanf("%d %d\n",&n, &m);
	int a[m], b[m], dep[n+1], sign[n+1];
	for(int i=0; i<n+1; i++){
		dep[i]=0;
	}
	for(int i=0; i<m; i++){
		scanf("%d %d\n",a+i, b+i);
	}
	
	Queue *q = initQueue(n+1);
	enqueue(q, 1);
	do{
		int t = dequeue(q);
		for(int i=0; i<m; i++){
			if(dep[b[i]] == 0 && a[i] == t){
				sign[b[i]] = t;
				dep[b[i]] = 1;
				enqueue(q,b[i]);
			}
			if(dep[a[i]] == 0 && b[i] == t){
				sign[a[i]] = t;
				dep[a[i]] = 1;
				enqueue(q,a[i]);
			}
		}
	}while(q->head != q->tail);
	
	printf("Yes\n");
	for(int i=2; i<n+1; i++){
		printf("%d\n", sign[i]);
	}
}

Compiler output:
main.c: In function 'initQueue':
main.c:23:32: error: implicit declaration of function 'errorQueue' [-Wimplicit-function-declaration]
   23 |         if(q->datavec == NULL) errorQueue();
      |                                ^~~~~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: 'p' was not declared in this scope
    6 |   if(p==3) cout<<"bon"<<endl;
      |      ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using p = pair<int,int>
 
int main() {
	int n;
    cin >> n;
    vector<string> s;
    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] << "\n";
    return 0;
}

Compiler output:
a.cc:5:11: error: two or more data types in declaration of 'type name'
    5 | using p = pair<int,int>
      |           ^~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (n); ++i)
using ll = long long;
using p = pair<int,int>

int main() {
	int n;
    cin >> n;
    vector<string> s;
    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] << "\n";
    return 0;
}

Compiler output:
a.cc:4:11: error: 'pair' does not name a type
    4 | using p = pair<int,int>
      |           ^~~~
Language: Java

import java.util.*;

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

        int N = sc.nextInt();
        int M = sc.nextInt();


        List<ArrayList<Integer>> graph = new ArrayList<>();

        for (int i=0; i<N; i++) {
            ArrayList<Integer> g = new ArrayList<Integer>();
            graph.add(g);
        }

        for (int i=0; i<M; i++) {
            int A = sc.nextInt() - 1;
            int B = sc.nextInt() - 1;

            graph.get(A).add(B);
            graph.get(B).add(A);
        }


        int[] dist = new int[N];
        int[] sign = new int[N];

        Queue<Integer> Q = new ArrayDeque<Integer>();
        dist[0] = 0;
        sign[0] = 0;
        Q.add(0);


        while (!Q.isEmpty()) {
            //キューから値の取得と削除
            Integer v = Q.poll();
            for (Integer u : graph.get(v)) {
                if (dist[u] != 0) continue;
                Q.add(u); dist[u]=dist[v]+1; sign[u]=v;
            }
        }

        System.out.println("YES");
        for (int s = 0; s < sign.length; s++) {
            if (s == 0) continue;
            System.out.println(sign[s] + 1);
        }
    }
}


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

#include <bits/stdc++.h>
using namespace std;
int main{
  	string s;
	cin >> s;
  	if(s[s.length()-1] == '2' || s[s.length()-1] == '4' || s[s.length()-1] == '5' ||s[s.length()-1] == '7' || s[s.length()-1] == '9'){
    	cout << "hon" << endl;
    }else if(s[s.length()-1] == '3'){
		cout << "bon" << endl;
    }else{
    	cout << "pon" << endl;
    }
}

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

#include <bits/stdc++.h>
using namespace std;
int main{
  	string s;
	cin << s;
  	if(s[s.length()-1] == '2' || s[s.length()-1] == '4' || s[s.length()-1] == '5' ||s[s.length()-1] == '7' || s[s.length()-1] == '9'){
    	cout << "hon" << endl;
    }else if(s[s.length()-1] == '3'){
		cout << "bon" << endl;
    }else{
    	cout << "pon" << endl;
    }
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:16: error: expected primary-expression before 's'
    4 |         string s;
      |                ^
a.cc:4:16: error: expected '}' before 's'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:9: error: 'cin' does not name a type
    5 |         cin << s;
      |         ^~~
a.cc:6:9: error: expected unqualified-id before 'if'
    6 |         if(s[s.length()-1] == '2' || s[s.length()-1] == '4' || s[s.length()-1] == '5' ||s[s.length()-1] == '7' || s[s.length()-1] == '9'){
      |         ^~
a.cc:8:6: error: expected unqualified-id before 'else'
    8 |     }else if(s[s.length()-1] == '3'){
      |      ^~~~
a.cc:10:6: error: expected unqualified-id before 'else'
   10 |     }else{
      |      ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#define pi acos(-1)

int A,B,H,M;
double k,C;
int main(){
  scanf("%d %d %d %d",&A,&B,&H,&M);
  H=30*H+30*M/60;
  M=6*M;
  k=fabs(H-M);  //kは角度
  C=A*A+B*B-2*A*B*(cos(t*pi/180));
  C=sqrt(C);
  printf("%.20lf\n",C);
  return(0);
}


Compiler output:
main.c: In function 'main':
main.c:13:24: error: 't' undeclared (first use in this function)
   13 |   C=A*A+B*B-2*A*B*(cos(t*pi/180));
      |                        ^
main.c:13:24: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#include<math.h>
#define pi acos(-1)

int A,B,H,M;
double k,C;
int main(){
  scanf("%d %d %d %d",&A,&B,&H,&M);
  H=30*H+30*M/60;
  M=6*M;
  k=fabs(H-M);  //kは角度
  C=A*A+B*B-2*A*B*(cos(t*pi/180));
  C=sqrt(C);
  printf("%.20lf\n",C);
  return(0);
}


Compiler output:
main.c: In function 'main':
main.c:12:24: error: 't' undeclared (first use in this function)
   12 |   C=A*A+B*B-2*A*B*(cos(t*pi/180));
      |                        ^
main.c:12:24: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:14: error: expected ':' or '...' before numeric constant
   10 |       case 2 4 5 7 9:
      |              ^
main.c:10:15: error: expected ';' before numeric constant
   10 |       case 2 4 5 7 9:
      |               ^~
      |               ;
main.c:13:14: error: expected ':' or '...' before numeric constant
   13 |       case 0 1 6 8:
      |              ^
main.c:13:15: error: expected ';' before numeric constant
   13 |       case 0 1 6 8:
      |               ^~
      |               ;
Language: C++

#include <iostream>
#include <set>
#include <map>
#include <cmath>
#include <vector>
#include <string>
#include <algorithm>
#include <iomanip>
#include <queue>
#include <deque>
#include <stack>
#include <climits>
#include <math.h>
#include <cassert>
#include <unordered_map>
using namespace std;
#pragma warning(disable : 4996)
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;

const ld M_PI = 3.14159265358979323846;
const ll MOD = 998244353;

int main() {
#ifdef _DEBUG
	freopen("input1.txt", "r", stdin);
	freopen("output2.txt", "w", stdout);
#endif
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	int n;
	cin >> n;
	if (n % 10 == 3) {
		cout << "bon";
	}
	else if (n % 10 == 0 || n % 10 == 1 || n % 10 == 6 || n % 10 == 8) {
		cout << "pon";
	}
	else {
		cout << "hon";
	}
}

Compiler output:
In file included from /usr/include/c++/14/cmath:47,
                 from a.cc:4:
a.cc:22:10: error: expected unqualified-id before numeric constant
   22 | const ld M_PI = 3.14159265358979323846;
      |          ^~~~
Language: C++

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

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

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

int main() {
  int a; cin >> a;
  int size = ceil(log10(a));
  for(int i=0;i<size;++i){
    a //= 10;
  }
  
  if(a==3){
  	cout << "bon";
  } else if (a==0 ||a= 1||a= 6 ||a= 8){
  	cout << "pon";
  } else {
  	cout << "hon";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: expected ';' before '}' token
    8 |     a //= 10;
      |      ^
      |      ;
    9 |   }
      |   ~   
a.cc:13:32: error: lvalue required as left operand of assignment
   13 |   } else if (a==0 ||a= 1||a= 6 ||a= 8){
      |                              ~~^~~
Language: C++

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

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

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

#include<bits/stdc++.h>
using namespace std;
#define rep(i,0,n) for(int i=0;i<n;i++)
int main()
{
  int n;
  string s;
  cin>>n>>s;
  int l=(int)s.size();
  if(l>n)
  {
    rep(i,0,n)
      cout<<s[i];
    rep(i,0,l-n)
      cout<<'.';
  }
  else
    cout<<s;
}

Compiler output:
a.cc:3:15: error: expected parameter name, found "0"
    3 | #define rep(i,0,n) for(int i=0;i<n;i++)
      |               ^
a.cc: In function 'int main()':
a.cc:12:9: error: 'i' was not declared in this scope
   12 |     rep(i,0,n)
      |         ^
a.cc:12:5: error: 'rep' was not declared in this scope
   12 |     rep(i,0,n)
      |     ^~~
Language: C++

#include <bits/stdc++.h>
#include <cstring>
#define fastIO ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);

using namespace std;

int main(){
  fastIO
  int n;
  cin>>n;
  string str;
  cin>>str;
  int size=str.size();
  if(size<=n){
  	cout<<str;
  }
  else{
    
     for(int i=0;i<n;i++)
      cout<<str[i];
     }
     cout<<"...";
}
  return 0;
}


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

#include <bits/stdc++.h>
#define fastIO ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'bon' was not declared in this scope
   14 |     str=bon;
      |         ^~~
a.cc:16:9: error: 'pon' was not declared in this scope; did you mean 'pow'?
   16 |     str=pon;
      |         ^~~
      |         pow
a.cc:18:9: error: 'hon' was not declared in this scope
   18 |     str=hon;
      |         ^~~
Language: C

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp> 
#include <ext/pb_ds/tree_policy.hpp> 
 
using namespace std;
using namespace __gnu_pbds;
 
 
#define pb push_back
#define mp make_pair
#define lb lower_bound
#define ub upper_bound
#define f first
#define s second
#define resz resize
#define ini ll_MAX
#define inl LLONG_MAX
#define MOD 1000000007
#define sz(x) ll((x).size())
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define FOR(i, a, b) for (ll i = (a); i < (b); i++)
#define F0R(i, a) for (ll i = 0; i < (a); i++)
#define FORR(i, a, b) for (ll i = a; i >= (b); i--)
#define F0RR(i, a) for (ll i = a; i >= 0; i--)
#define trav(a, x) for (auto& a : x)
#define pbds tree<ll, null_type,less<ll>, rb_tree_tag,tree_order_statistics_node_update> 
 
using ll = long long;
using vi = vector<ll>;
using vvi = vector<vi>;
using vll = vector<ll>;
using vvll = vector<vll>;
using vb = vector<bool>;
using vd = vector<double>;
using vs = vector<string>;
 
using pii = pair<ll, ll>;
using pll = pair<ll, ll>;
using pdd = pair<double, double>;
 
using vpii = vector<pii>;
using vvpii = vector<vpii>;
using vpll = vector<pll>;
using vvpll = vector<vpll>;
using vpdd = vector<pdd>;
using vvpdd = vector<vpdd>;
 
ll mod(ll a,ll b)
{
    return (b+a%b)%b;
}
 
ll gcd(ll a,ll b)
{
    if(b==0)return a;
    else return gcd(b,a%b);
}
ll po(ll a,ll b)
{
    ll ans = 1;
    while(b--)
        ans*=a;
    return ans;
}
ll pom(ll a,ll b,ll mod)
{
    if(b==0)return 1;
    ll k = pom(a,b/2,mod);
    if(b%2==0)return (k*k)%mod;
    else return ((k*k)*mod*a)%mod;
}
 
ll sqdist(ll a,ll b,ll c,ll d)
{
    return (a-c)*(a-c)+(b-d)*(b-d);
}
ll fact(ll n)
{
    if(n==0)return 1;
    ll ans = 1;
    FOR(i,1,n+1)ans*=i;
    return ans;
}
 

void solve()
{
    int k;
    cin>>k;
    int p = k%10;
    if(p==2||p==4||p==5||p==7||p==9)
        cout<<"hon";
    if(p==0||p==1||p==6||p==8)
        cout<<"pon";
    else cout<<"bon";
}
main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    // #ifndef ONLINE_JUDGE
    // freopen("input.txt","r",stdin);
    // freopen("output.txt","w",stdout);
    // #endif
    solve();
}

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 <bits/stdc++.h>
using namespace std;
using ll = long long int
#define vec vector 
#define rep(i, N) for(int i = 0; i < (int)(N);i++)
#define elif else if

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

Compiler output:
a.cc:3:22: error: two or more data types in declaration of 'type name'
    3 | using ll = long long int
      |                      ^~~
Language: C++

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

int n;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   10 |         return ;
      |         ^~~~~~
a.cc:17:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   17 |         return ;
      |         ^~~~~~
a.cc:22:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   22 |         return ;
      |         ^~~~~~
Language: Java

import java.util.*;
class solution{
 public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
   long n = sc.nextLong();
   int t = n%10;
   if(t==3)
     System.out.println("bon");
   else if((t==0 || t==1) || (t==6||t==8))
     System.out.println("pon");
   else
     System.out.println("hon");
   
 }
  
  
}

Compiler output:
Main.java:6: error: incompatible types: possible lossy conversion from long to int
   int t = n%10;
            ^
1 error
Language: Java

import java.util.*;
import java.lang.*;
 
public class cf6402
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc=new Scanner(System.in);

		int n;
		n=sc.nextInt();
		
		if(n%10 == 3)
        {
          System.out.println("bon");
        }
     else if((n%10 ==0)||(n%10 ==1)||(n%10 ==6)||(n%10 ==8))
     {
       System.out.println("pon");
     }
      else{
         System.out.println("hon");
      }}}
       


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

#include<bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
#define endl '\n'
#define w(t) int t;cin>>t;while(t--)
#define IOS ios_base::sync_with_stdio(false);cin.tie(0);
#define rep(i,a,b) for(int i=a; i<b; ++i)
#define repl(i,a,b) for(ll i=a; i<b; ++i)


int main(){
	IOS

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

Compiler output:
a.cc: In function 'int main()':
a.cc:22:13: error: 'bon' was not declared in this scope
   22 |       cout<<bon<<endl;
      |             ^~~
a.cc:24:13: error: 'pon' was not declared in this scope; did you mean 'pow'?
   24 |       cout<<pon<<endl;
      |             ^~~
      |             pow
a.cc:26:13: error: 'hon' was not declared in this scope
   26 |       cout<<hon<<endl;
      |             ^~~
Language: C++

#include <bits/stdc++.h>

#define newline printf("\n")
#define nl '\n'
#define ll long long 
#define ui unsigned int
#define ul unsigned long

using namespace std;

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

	int digit = N % 10;

	string result;

	if(!digit || digit == 1 || digit == 6 || digit == 8){
		result = "pon"
	} else if(digit == 3){
		result = "bon";
	} else {
		result = "hon"
	}

	printf("%s\n", result);

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:31: error: expected ';' before '}' token
   21 |                 result = "pon"
      |                               ^
      |                               ;
   22 |         } else if(digit == 3){
      |         ~                      
a.cc:25:31: error: expected ';' before '}' token
   25 |                 result = "hon"
      |                               ^
      |                               ;
   26 |         }
      |         ~
Language: C++

#include <iostream>
 
int main()
{
  int n, tmp;
  std::cin >> n;
  
  tmp = n / 10;
  n = n - tmp * 10;
  
  if (n == 2
  
  switch(n)
  {
    case 2:
    case 4:
    case 5:
    case 7:
    case 9:
      std::cout << "hon";
      break;
    case 0:
    case 1:
    case 6:
    case 8:
      std::cout << "pon";
      break;
    case 3:
      std::cout << "bon";
      break;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected ';' before 'switch'
   11 |   if (n == 2
      |             ^
      |             ;
   12 | 
   13 |   switch(n)
      |   ~~~~~~     
a.cc:33:3: error: expected primary-expression before 'return'
   33 |   return 0;
      |   ^~~~~~
a.cc:31:4: error: expected ')' before 'return'
   31 |   }
      |    ^
      |    )
   32 | 
   33 |   return 0;
      |   ~~~~~~
a.cc:11:6: note: to match this '('
   11 |   if (n == 2
      |      ^
Language: C++

#include <iostream>

int main()
{
  int n, tmp;
  std::cin >> n;
  
  tmp = n / 10;
  n = n - tmp * 10;
  
  switch(n)
  {
    case 2, 4, 5, 7, 9:
      std::cout << "hon";
      break;
    case 0, 1, 6, 8:
      std::cout << "pon";
      break;
    case 3:
      std::cout << "bon";
      break;
  }
  
  return 0;
}

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

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

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

Compiler output:
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

#include <iostream>

using namespace std;

int main(){
    int s;
    cin >> s;
    if (s > 10 && 100 > s) n = s % 10;
    else if (s > 100) n = s % 100;

    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;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: 'n' was not declared in this scope
    8 |     if (s > 10 && 100 > s) n = s % 10;
      |                            ^
a.cc:9:23: error: 'n' was not declared in this scope
    9 |     else if (s > 100) n = s % 100;
      |                       ^
a.cc:11:8: error: 'n' was not declared in this scope
   11 |     if(n == 2 || n == 4 || n == 5 || n == 7 ||  n == 9)
      |        ^
Language: C++

#include <iostream>

using namespace std;

int main(){
    int s;
    cin >> s;
    if (s > 10 && 100 > s) s = s % 10;
    else if (s > 100) s = s % 100;

    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;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: 'n' was not declared in this scope
   11 |     if(n == 2 || n == 4 || n == 5 || n == 7 ||  n == 9)
      |        ^
Language: C++

#include<bits/stdc++.h>
#define int long long 
#define mod 1000000007 
using namespace std ;

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


}

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:7: error: cannot find symbol
    int num = scanner.nextInt();
              ^
  symbol:   variable scanner
  location: class Main
1 error