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();
    switch (int N%10){
      case 2:
      case 4:
      case 5:
      case 7:
      case 9:   
      	System.out.println("hon");
      	break;
      case 0:
      case 1:
      case 6:
      case 8:
        System.out.println("pon");
        break;
      case 3:
        System.out.println("bon");
    }
}

Compiler output:
Main.java:6: error: '.class' expected
    switch (int N%10){
                ^
Main.java:6: error: case, default, or '}' expected
    switch (int N%10){
                 ^
Main.java:6: error: case, default, or '}' expected
    switch (int N%10){
                  ^
Main.java:6: error: case, default, or '}' expected
    switch (int N%10){
                    ^
Main.java:6: error: case, default, or '}' expected
    switch (int N%10){
                     ^
Main.java:23: error: reached end of file while parsing
}
 ^
6 errors
Language: C++

#define _USE_MATH_DEFINES
#include  <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <string>
#include<math.h>
#include<iomanip>
#include<stdio.h>
#include <stdlib.h>
#include<stdio.h>
#include <queue>
#include<map>
#include <sstream>
#include<set>
#include<stack>
 
//#include<bits/stdc++.h>
 
 
using namespace std;
 
 
 
int main()
{
    int n;
  cin>>n;
  int a=n%10;
  if(a==3)cout<<"bon"<<endl;
  else if(a==0||a==1||a==6||a==8)cout<<"pon"<<endl;
  else cout<<"hon"<<endkl
    return 0;
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:21: error: 'endkl' was not declared in this scope
   33 |   else cout<<"hon"<<endkl
      |                     ^~~~~
Language: C++

ソースコード 拡げる
Copy
Copy
#include <stdio.h>
 
int main(){
  
  int n;
  scanf("%d",&n);
  
  int a=n%10;
  if(a==3)printf("bon");
  else if(a==0||a==1||1==6||a==8)printf("pon");
  else printf("hon");
  return 0;
  
}

Compiler output:
a.cc:1:1: error: '\U000030bd\U000030fc\U000030b9\U000030b3\U000030fc\U000030c9' does not name a type
    1 | ソースコード 拡げる
      | ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:3: error: 'scanf' was not declared in this scope
    9 |   scanf("%d",&n);
      |   ^~~~~
a.cc:12:11: error: 'printf' was not declared in this scope
   12 |   if(a==3)printf("bon");
      |           ^~~~~~
a.cc:5:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    4 | #include <stdio.h>
  +++ |+#include <cstdio>
    5 | 
a.cc:13:34: error: 'printf' was not declared in this scope
   13 |   else if(a==0||a==1||1==6||a==8)printf("pon");
      |                                  ^~~~~~
a.cc:13:34: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:14:8: error: 'printf' was not declared in this scope
   14 |   else printf("hon");
      |        ^~~~~~
a.cc:14:8: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int n;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:6:8: error: expected constructor, destructor, or type conversion before '(' token
    6 |   scanf("%d",&n);
      |        ^
a.cc:8:9: error: 'n' was not declared in this scope
    8 |   int a=n%10;
      |         ^
a.cc:9:3: error: expected unqualified-id before 'if'
    9 |   if(a==3)printf("bon");
      |   ^~
a.cc:10:3: error: expected unqualified-id before 'else'
   10 |   else if(a==0||a==1||1==6||a==8)printf("pon");
      |   ^~~~
a.cc:11:3: error: expected unqualified-id before 'else'
   11 |   else printf("hon");
      |   ^~~~
a.cc:12:3: error: expected unqualified-id before 'return'
   12 |   return 0;
      |   ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C

#include<sttdio.h>

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

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

import java.util.Scanner;
class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    	
    	int K = scan.nextInt();
    	String S = scan.nextString();
    	
    	if(S.length()>K){
        	S = S.substring(0,K);
        	System.out.println(S);
        
        }
    
  }

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

import java.util.Scanner;
class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    	
    	int K = scan.nextInt();
    	String S = scan.nextString();
    	
    	if(S.length()>K){
        	S = S.substring(0,K)
        	System.out.println(S);
        
        }
    
  }
}  
    

Compiler output:
Main.java:10: error: ';' expected
        	S = S.substring(0,K)
        	                    ^
1 error
Language: Java

import java.io.*;
import java.util.StringTokenizer;

public class A1 {

    public static void main(String[] args) throws IOException {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskB solver = new TaskB();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskB {
        public void solve(int testNumber, InputReader in, PrintWriter out) {
            int t = in.nextInt();
            t %=10;
            if (t==2 ||t==4 ||t==5 ||t==7 || t==9){
                out.println("hon");
            } else if (t==0 ||t==1 ||t==6 ||t==8){
                out.println("pon");
            } else {
                out.println("bon");
            }
        }

        private static int naib(int a, int b) {
            return a / (nod(a, b)) * b;
        }

        private static int nod(int a, int b) {
            while (a != 0 && b != 0) {
                if (a > b) {
                    a = a % b;
                } else {
                    b = b % a;
                }
            }
            return a + b;
        }
    }


    static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

        public Long nextLong() {
            return Long.parseLong(next());
        }

    }
}


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

import java.io.*;
import java.util.StringTokenizer;

public class A1 {

    public static void main(String[] args) throws IOException {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskB solver = new TaskB();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskB {
        public void solve(int testNumber, InputReader in, PrintWriter out) {
            int t = in.nextInt();
            t %=10;
            if (t==2 ||t==4 ||t==5 ||t==7 || t==9){
                out.println("hon");
            } else if (t==0 ||t==1 ||t==6 ||t==8){
                out.println("pon");
            } else {
                out.println("bon");
            }
            out.close();
        }

        private static int naib(int a, int b) {
            return a / (nod(a, b)) * b;
        }

        private static int nod(int a, int b) {
            while (a != 0 && b != 0) {
                if (a > b) {
                    a = a % b;
                } else {
                    b = b % a;
                }
            }
            return a + b;
        }
    }


    static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

        public Long nextLong() {
            return Long.parseLong(next());
        }

    }
}


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

#include <stdio.h>
int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int inputNum;
  scanf("%d", &inputNum);
  int rest = inputNum % 10;
  if(rest == 3){
    printf("bon")
  }else if(rest == 0 || rest == 1 || rest == 6 || rest == 8){
    printf("pon");
  }else if(rest == 2 || rest == 4 || rest == 5 || rest == 7 || rest == 9){
    printf("hon");
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin.tie(0);
      |   ^~~
a.cc:4:3: error: 'ios' has not been declared
    4 |   ios::sync_with_stdio(false);
      |   ^~~
a.cc:9:18: error: expected ';' before '}' token
    9 |     printf("bon")
      |                  ^
      |                  ;
   10 |   }else if(rest == 0 || rest == 1 || rest == 6 || rest == 8){
      |   ~
Language: Java

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = Integer.parseInt(sc.next()) % 10;
        String reuslt;
        switch (num) {
            case 2:
            case 4:
            case 5:
            case 7:
            case 9:
                reuslt = "hon";
                break;
            case 0:
            case 1:
            case 6:
            case 8:
                reuslt = "pon";
                break;
            case 3:
                reuslt = "bon";
                break;
            default:
                throw new IllegalArgumentException();
        }

        System.out.println(reuslt);
    }
}

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

#include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define REP2(i, x, n) for(int i = x; i < (int)(n); i++)
#define ALL(n) begin(n), end(n)
//struct cww{cww(){ios::sync_with_stdio(false);cin.tie(nullptr);}}star;
const long long INF = numeric_limits<long long>::max();
typedef long long ll;

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

  string arr[] = {"pon", "pon", "hon", "bon", "hon", "hon", "pon", "hon", "pon", "hon"};

  string s = arr[n % 10];

  printf("%s\n", s.c_str());
  return 0;
}


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

public class Main1 {
    public static void main(String[] args) {
        var arg = Integer.parseInt(args[0]);
        var num = arg % 10;
        String reuslt = null;
        switch (num) {
            case 2:
            case 4:
            case 5:
            case 7:
            case 9:
                reuslt = "hon";
                break;
            case 0:
            case 1:
            case 6:
            case 8:
                reuslt = "pon";
                break;
            case 3:
                reuslt = "bon";
                break;
            default:
                throw new IllegalArgumentException();
        }

        System.out.println(reuslt);
    }
}

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:16:12: warning: missing terminating " character
   16 |     printf("bon\n);
      |            ^
main.c:16:12: error: missing terminating " character
   16 |     printf("bon\n);
      |            ^~~~~~~~
main.c:17:5: error: expected expression before '}' token
   17 |     }
      |     ^
main.c:16:12: error: expected ';' before '}' token
   16 |     printf("bon\n);
      |            ^
      |            ;
   17 |     }
      |     ~
Language: C

#include <stdio.h>

int main(){
	int n,i,p;
  	scanf("%d\n", &n);
  	p = n%10;
  	if(p== 2 || p == 4 || p==5|| p==7 || p==9)
    {
    	printf("hon\n");
    }
  	if(p== 1 || p == 0 || p==6|| p==8)
    {
    	printf("pon\n");
    }
  	else{
    printf("bon\n);
    }
  

}

Compiler output:
main.c: In function 'main':
main.c:16:12: warning: missing terminating " character
   16 |     printf("bon\n);
      |            ^
main.c:16:12: error: missing terminating " character
   16 |     printf("bon\n);
      |            ^~~~~~~~
main.c:17:5: error: expected expression before '}' token
   17 |     }
      |     ^
main.c:16:12: error: expected ';' before '}' token
   16 |     printf("bon\n);
      |            ^
      |            ;
   17 |     }
      |     ~
Language: Java

import java.util.*;

public class Program {
    public static void main(String[] args) {
        final Integer[] HonPT = new Integer[] {2, 4, 5, 7, 9};
        final Integer[] PonPT = new Integer[] {0, 1, 6, 8};
        Scanner scan = new Scanner(System.in);
        char[] n = scan.nextLine().toCharArray();
        Integer num = Integer.parseInt(String.valueOf(n[n.length - 1]));
        //System.out.println(num);
        
        if (Arrays.asList(HonPT).contains(num)) {
            System.out.println("hon");
        } else if (Arrays.asList(PonPT).contains(num)) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }

        scan.close();
    }
}


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

import java.util.*;

public class Program {
    public static void main(String[] args) throws Exception {
        final Integer[] HonPT = new Integer[] {2, 4, 5, 7, 9};
        final Integer[] PonPT = new Integer[] {0, 1, 6, 8};
        Scanner scan = new Scanner(System.in);
        char[] n = scan.nextLine().toCharArray();
        Integer num = Integer.parseInt(String.valueOf(n[n.length - 1]));
        //System.out.println(num);
        
        if (Arrays.asList(HonPT).contains(num)) {
            System.out.println("hon");
        } else if (Arrays.asList(PonPT).contains(num)) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }

        scan.close();
    }
}


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

import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class App {
    public static void main(String[] args) throws Exception {
        final Integer[] HonPT = new Integer[] {2, 4, 5, 7, 9};
        final Integer[] PonPT = new Integer[] {0, 1, 6, 8};
        Scanner scan = new Scanner(System.in);
        char[] n = scan.nextLine().toCharArray();
        Integer num = Integer.parseInt(String.valueOf(n[n.length - 1]));
        //System.out.println(num);
        
        if (Arrays.asList(HonPT).contains(num)) {
            System.out.println("hon");
        } else if (Arrays.asList(PonPT).contains(num)) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }

        scan.close();
    }
}


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

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

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

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

import java.util.Scanner;

/**
 *
 * @author chuan
 */
public class A168 {
      
      public static void main(String[] args) {
            Scanner sc = new Scanner(System.in) ;
            String s = sc.nextLine() ;
            char c = s.charAt(0 );
            switch(c){
                  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");
                        
            }
            
      }
      
}


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

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

Compiler output:
Main.java:9: error: not a statement
    }else(a>=10&&a<100){
         ^
Main.java:9: error: ';' expected
    }else(a>=10&&a<100){
                       ^
Main.java:11: error: 'else' without 'if'
    }else{
     ^
3 errors
Language: Java

import java.util.*;
public class Solution {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner b = new Scanner(System.in);
		
		int n = b.nextInt();
		
		if(n/10 < 1) {
			if(n == 2 || n == 4 || n == 5 || n == 7 || n == 9) {
				System.out.println("hon");
			}
			if(n == 0 || n == 1 || n == 6 || n == 8) {
				System.out.println("pon");
			}
			if(n == 3) {
				System.out.println("bon");
			}
		}
		else if(n/10 >= 1 && n/10 < 10) {
			n = n%10;
			if(n == 2 || n == 4 || n == 5 || n == 7 || n == 9) {
				System.out.println("hon");
			}
			if(n == 0 || n == 1 || n == 6 || n == 8) {
				System.out.println("pon");
			}
			if(n == 3) {
				System.out.println("bon");
			}
		}
		else {
			n = n%100;
			n = n%10;
			if(n == 2 || n == 4 || n == 5 || n == 7 || n == 9) {
				System.out.println("hon");
			}
			if(n == 0 || n == 1 || n == 6 || n == 8) {
				System.out.println("pon");
			}
			if(n == 3) {
				System.out.println("bon");
			}
		}
		
	}

}


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

import java.util.*;
public class Therefore {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner b = new Scanner(System.in);
		
		int n = b.nextInt();
		
		if(n/10 < 1) {
			if(n == 2 || n == 4 || n == 5 || n == 7 || n == 9) {
				System.out.println("hon");
			}
			if(n == 0 || n == 1 || n == 6 || n == 8) {
				System.out.println("pon");
			}
			if(n == 3) {
				System.out.println("bon");
			}
		}
		else if(n/10 >= 1 && n/10 < 10) {
			n = n%10;
			if(n == 2 || n == 4 || n == 5 || n == 7 || n == 9) {
				System.out.println("hon");
			}
			if(n == 0 || n == 1 || n == 6 || n == 8) {
				System.out.println("pon");
			}
			if(n == 3) {
				System.out.println("bon");
			}
		}
		else {
			n = n%100;
			n = n%10;
			if(n == 2 || n == 4 || n == 5 || n == 7 || n == 9) {
				System.out.println("hon");
			}
			if(n == 0 || n == 1 || n == 6 || n == 8) {
				System.out.println("pon");
			}
			if(n == 3) {
				System.out.println("bon");
			}
		}
		
	}

}


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

#include <stdc++.h>
using namespace std;
#define EXCEPTERROR cout << "-1" << endl;
#define rep(k,nu)    for(int i=k; i<nu;  i++)
#define rep2(k,n)   for(int j=k; j<n;  j++)
#define size_s(s) s.size()-1
#define size_a(array) sizeof(array) / sizeof(array[0])
#define INF 1000000000000 //1e12
#define MOD 10000007 //1e9+7
#define ll long long
#define pb pop_back
template<typename T> inline void chMin(T* a, T* b) {if(*a>*b) *a=*b;}
template<typename T> inline void chMax(T* a, T* b) {if(*a<*b) *a=*b;}
template<typename T> inline int  divUp(T a, T b)   {return ((a+b-1)/b);}

int main(){
    string str; cin >> str;
    if(str[size_s(str)] == '3') {
        cout << "bon" << endl; return 0;
    }

    if(str[size_s(str)] == '0' || str[size_s(str)] == '1' ||
       str[size_s(str)] == '6' || str[size_s(str)] == '8'){
           cout << "pon" << endl; return 0;
       }

    cout << "hon" << endl; return 0;
}

/*

*/

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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll mod=1e9+7;
ll power(ll a,ll b){return b?power(a*a%mod,b/2)*(b%2?a:1)%mod:1;}
main(){
    ll n,a,b,ans=1,MOD=mod-1;
    cin>>n;
    map<pair<ll,ll>,pair<ll,ll>>m;
    for(ll i=0;i<n;i++){
        cin>>a>>b;
		cin >> a >> b;
		if(a == 0 && b == 0) zeros ++;
		else {
			ll g = __gcd(a, b);
			a /= g, b /= g;
			if(a > 0) m[{a, b}].first++;
			else m[{b, -a}].second++;
		}
    }
    for(auto u:m) ans=ans*(power(2,u.second.first)+power(2,u.second.second)-1+mod)%mod;
    cout<<(ans+MOD)%mod;
}

Compiler output:
a.cc:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:13:38: error: 'zeros' was not declared in this scope
   13 |                 if(a == 0 && b == 0) zeros ++;
      |                                      ^~~~~
Language: Java

import java.util.*;
class Main{
  Scanner sc = new Scanner(System.in);
  public static void main(String[] args){
    int N = sc.nextInt();
    switch(N%10){
      case 3:System.out.println("bon");break;
      case 0:case 1:case 6:case 8:System.out.println("pon");break;
      default:System.out.println("hon");break;
    }
  }
}

Compiler output:
Main.java:5: error: non-static variable sc cannot be referenced from a static context
    int N = sc.nextInt();
            ^
1 error
Language: Java

import java.util.*;
class Main{
  Scanner sc = new Scanner(System.in);
  public void static main(String[] args){
    int N = sc.nextInt();
    switch(N%10){
      case 3:System.out.println("bon");break;
      case 0:case 1:case 6:case 8:System.out.println("pon");break;
      default:System.out.println("hon");break;
    }
  }
}

Compiler output:
Main.java:4: error: <identifier> expected
  public void static main(String[] args){
             ^
Main.java:4: error: '(' expected
  public void static main(String[] args){
              ^
Main.java:4: error: invalid method declaration; return type required
  public void static main(String[] args){
                     ^
3 errors
Language: Java

import java.util.*

class Main{
 Scanner sc = new Scanner(System.in);
 	public void static main(String[] args{
    	int N = sc.nextInt();
        switch(N%10){
        case 2:case 4:case 7:case 9:
        System.out.println("pon");
        break;
        case 1:case 3:case 5:
        System.out.println("");
        break;
        default:
        System.out.println("");
        break;
        }
     }
}

Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
Main.java:5: error: <identifier> expected
 	public void static main(String[] args{
 	           ^
Main.java:5: error: '(' expected
 	public void static main(String[] args{
 	            ^
Main.java:5: error: invalid method declaration; return type required
 	public void static main(String[] args{
 	                   ^
Main.java:5: error: ',', ')', or '[' expected
 	public void static main(String[] args{
 	                                     ^
5 errors
Language: C++

#include<iostream>
using namespace std;

#変数の宣言
str saffix;

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


Compiler output:
a.cc:4:2: error: invalid preprocessing directive #\U00005909\U00006570\U0000306e\U00005ba3\U00008a00
    4 | #変数の宣言
      |  ^~~~~~~~~~
a.cc:5:1: error: 'str' does not name a type
    5 | str saffix;
      | ^~~
a.cc:7:1: error: '::main' must return 'int'
    7 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:16: error: 'N' was not declared in this scope
    8 |         cin >> N;
      |                ^
a.cc:11:17: error: 'saffix' was not declared in this scope
   11 |                 saffix = "bon";
      |                 ^~~~~~
a.cc:12:24: error: expected primary-expression before '||' token
   12 |         }else if(N = 0)||(N = 1)||(N = 6)||(N = 10){
      |                        ^~
a.cc:15:17: error: 'saffix' was not declared in this scope
   15 |                 saffix = "hon";
      |                 ^~~~~~
a.cc:18:17: error: 'saffix' was not declared in this scope
   18 |         cout << saffix;
      |                 ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: 'temp' undeclared (first use in this function)
    5 |   while(temp!=0){
      |         ^~~~
main.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.*;
public class Solution{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int n=sc.nextInt();
    int r=n%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 if(r==3)
      System.out.println("bon");
  }
}

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

#include<bits/stdc++.h>
using namespace std;
#define fi(a) scanf("%d",&a);
#define fli(a) scanf("%ld",&a);
#define fll(a) scanf("%lld",&a);
#define pi(a) printf("%d\n",a);
#define ppi(i,a) printf("Case %d: %d\n",i,a);
#define ll long long
#define fast ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);

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



Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: 'n' was not declared in this scope; did you mean 'yn'?
   14 |     cin >> n;
      |            ^
      |            yn
Language: C++

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

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

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

int main(){
 cin >> N;
  int t = N%10;
  if(t==2 || t==4 || t==5 || t==7 || t==9) printf("hon");
  else if(t==0 || t==1 || t==6 || t==8) printf("pon");
  else if(t==3) printf("bon");
  return 0;
  
}

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

#include <bits/stdc++.h>

using namespace std;

int main()
{
    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";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    7 |     cin>>n;
      |          ^
      |          yn
Language: Java

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


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
N = int(input())
^
1 error
Language: C++

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

int main() {
  
  int N;
  cin >> N;
  if(N>=100){
    N=N%100;
  }
  if(N>=10){
    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: In function 'int main()':
a.cc:17:29: error: lvalue required as left operand of assignment
   17 |   else if(N=0 || N=1 || N=6 || N=8){
      |                           ~~^~~~
Language: C++

#define REP(i, n) for(int (i) = 0; (i) < (n); ++(i))
#define REPR(i, n) for(int (i) = (n); (i) >= 0; --(i))
#define FOR(i, n, m) for(int (i) = (n); (i) < (m); ++(i))

// constexpr int INF = 1e9;
constexpr ll INF = 1LL<<61;
constexpr ll mod = 1e9+7;

int main(){
  
  return 0;
}


Compiler output:
a.cc:6:11: error: 'll' does not name a type
    6 | constexpr ll INF = 1LL<<61;
      |           ^~
a.cc:7:11: error: 'll' does not name a type
    7 | constexpr ll mod = 1e9+7;
      |           ^~
Language: C++

#include<stdio>

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'scanf' was not declared in this scope
    3 |         scanf("%d",&a);
      |         ^~~~~
a.cc:10:12: error: 'printf' was not declared in this scope
   10 |     case 9:printf("hon");
      |            ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
Language: C++

n = int(input())

if n%10 == 2 or 4 or 5 or 7 or 9:
    print('hon')
elif n % 10 == 0 or 1 or 6 or 8:
    print('pon')
else:
    print('bon')

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

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

int main()
{
  	int N;
  	std::cin >> N;
 
  	N = N % 10;
  	if (N == 2 || N == 4 || N == 5 || N == 7 || N == 9)
      printf("hon");
  	else if (N == 0 || N == 1 || N = 6 || N == 8)
      printf("pon");
  	else if (N == 3)
      printf("bon");
}

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

int main()
{
  	int N;
  	std::cin >> N;
 
  	N = N % 10;
  	if (N == 2 || N == 4 || N == 5 || N == 7 || N == 9)
      printf("hon");
  	else if (N == 0 || N == 1 || N = 6 || N == 8)
      printf("pon");
  	else if (N == 3)
      printf("bon");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:14: error: 'cin' is not a member of 'std'
    4 |         std::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 | int main()
a.cc:8:7: error: 'printf' was not declared in this scope
    8 |       printf("hon");
      |       ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
a.cc:9:35: error: lvalue required as left operand of assignment
    9 |         else if (N == 0 || N == 1 || N = 6 || N == 8)
      |                  ~~~~~~~~~~~~~~~~~^~~~
a.cc:10:7: error: 'printf' was not declared in this scope
   10 |       printf("pon");
      |       ^~~~~~
a.cc:10:7: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:12:7: error: 'printf' was not declared in this scope
   12 |       printf("bon");
      |       ^~~~~~
a.cc:12:7: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C

#include <iostream>
using namespace std;
int main() {
  int a;
  int b;
  int c;
  cin >> a;
  b = a / 10;
  c = a - b * 10;
  if(c == 2 || c == 4 || c == 5 || c == 7 || c == 9){
    cout << "hon" << endl;
  }else if(c == 0 || c == 6 || c == 1 || c == 8){
    cout << "pon" << endl;
  }else if(c == 3){
    cout << "bon" << 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:
  
  int n = N % 10;
  
  if( (n == 2) || (n == 4) || (n == 5) || (n == 7) || (n == 9) )
  {
    cout << "hon" << endl;
  }
  else if( (n == 0) || (n == 1) || (n == 6) || (n == 8) )
  {
    cout << "pon" << endl;
  }
  else 
  {
    cout << "bon" << endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before ':' token
    8 |   cin >> N:
      |           ^
      |           ;
a.cc:12:8: error: 'n' was not declared in this scope
   12 |   if( (n == 2) || (n == 4) || (n == 5) || (n == 7) || (n == 9) )
      |        ^
Language: Java

import java.util.*;
class Main {
 
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int val = a - (int)(a/10)*10;
    Integer[] ponArr = new Integer[]{0,1,6,8};
    Integer[] bonArr = new Integer[]{3};
    List<Integer> ponList = Lists.asList(ponArr);
    List<Integer> bonList = Lists.asList(bonArr);
    
    if(ponList.contains(val)){
      System.out.println("pon");
    }else if(bonList.contains(val)){
      System.out.println("bon");
    }else{
      System.out.println("hon");
    }
  }
}

Compiler output:
Main.java:10: error: cannot find symbol
    List<Integer> ponList = Lists.asList(ponArr);
                            ^
  symbol:   variable Lists
  location: class Main
Main.java:11: error: cannot find symbol
    List<Integer> bonList = Lists.asList(bonArr);
                            ^
  symbol:   variable Lists
  location: class Main
2 errors
Language: Java

import java.util.*;
class Main {
 
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int val = a - (int)(a/10)*10;
    Integer[] ponArr = new Integer[]{0,1,6,8};
    Integer[] bonArr = new Integer[]{3};
    List<Integer ponList = Lists.asList(ponArr);
    List<Integer> bonList = Lists.asList(bonArr);
    
    if(ponList.contains(val)){
      System.out.println("pon");
    }else if(bonList.contains(val)){
      System.out.println("bon");
    }else{
      System.out.println("hon");
    }
  }
}

Compiler output:
Main.java:10: error: > or ',' expected
    List<Integer ponList = Lists.asList(ponArr);
                 ^
1 error
Language: Java

import java.util.*;
class Main {
 
  public static void main(String[] args){
    String N = args[0];
    String str = N.substr(0,1);
    String[] ponArr = new String[]{"0","1","6","8"};
    String[] bonArr = new String[]{"3"};
    List<String> ponArr = Lists.asList(ponArr);
    List<String> bonArr = Lists.asList(bonArr);
    
    if(ponList.contains(str)){
      System.out.println("pon");
    }else if(bonList.contains(str)){
      System.out.println("bon");
    }else{
      System.out.println("hon");
    }
  }
}

Compiler output:
Main.java:6: error: cannot find symbol
    String str = N.substr(0,1);
                  ^
  symbol:   method substr(int,int)
  location: variable N of type String
Main.java:9: error: variable ponArr is already defined in method main(String[])
    List<String> ponArr = Lists.asList(ponArr);
                 ^
Main.java:9: error: cannot find symbol
    List<String> ponArr = Lists.asList(ponArr);
                          ^
  symbol:   variable Lists
  location: class Main
Main.java:10: error: variable bonArr is already defined in method main(String[])
    List<String> bonArr = Lists.asList(bonArr);
                 ^
Main.java:10: error: cannot find symbol
    List<String> bonArr = Lists.asList(bonArr);
                          ^
  symbol:   variable Lists
  location: class Main
Main.java:12: error: cannot find symbol
    if(ponList.contains(str)){
       ^
  symbol:   variable ponList
  location: class Main
Main.java:14: error: cannot find symbol
    }else if(bonList.contains(str)){
             ^
  symbol:   variable bonList
  location: class Main
7 errors
Language: Java

import java.util.*
class Main {
 
  public static void main(String[] args){
    String N = args[0];
    String str = N.substr(0,1);
    String[] ponArr = new String[]{"0","1","6","8"};
    String[] bonArr = new String[]{"3"};
    List<String> ponArr = Lists.asList(ponArr);
    List<String> bonArr = Lists.asList(bonArr);
    
    if(ponList.contains(str)){
      System.out.println("pon");
    }else if(bonList.contains(str)){
      System.out.println("bon");
    }else{
      System.out.println("hon");
    }
  }
}

Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
1 error
Language: Java

class Main {
 
  public static void main(String[] args){
    String N = args[0];
    String str = N.substr(0,1);
    String[] ponArr = new String[]{"0","1","6","8"};
    String[] bonArr = new String[]{"3"};
    List<String> ponArr = Lists.asList(ponArr);
    List<String> bonArr = Lists.asList(bonArr);
    
    if(ponList.contains(str)){
      System.out.println("pon");
    }else if(bonList.contains(str)){
      System.out.println("bon");
    }else{
      System.out.println("hon");
    }
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    String str = N.substr(0,1);
                  ^
  symbol:   method substr(int,int)
  location: variable N of type String
Main.java:8: error: cannot find symbol
    List<String> ponArr = Lists.asList(ponArr);
    ^
  symbol:   class List
  location: class Main
Main.java:8: error: variable ponArr is already defined in method main(String[])
    List<String> ponArr = Lists.asList(ponArr);
                 ^
Main.java:8: error: cannot find symbol
    List<String> ponArr = Lists.asList(ponArr);
                          ^
  symbol:   variable Lists
  location: class Main
Main.java:9: error: cannot find symbol
    List<String> bonArr = Lists.asList(bonArr);
    ^
  symbol:   class List
  location: class Main
Main.java:9: error: variable bonArr is already defined in method main(String[])
    List<String> bonArr = Lists.asList(bonArr);
                 ^
Main.java:9: error: cannot find symbol
    List<String> bonArr = Lists.asList(bonArr);
                          ^
  symbol:   variable Lists
  location: class Main
Main.java:11: error: cannot find symbol
    if(ponList.contains(str)){
       ^
  symbol:   variable ponList
  location: class Main
Main.java:13: error: cannot find symbol
    }else if(bonList.contains(str)){
             ^
  symbol:   variable bonList
  location: class Main
9 errors
Language: Java

class Main {
 
  public static void main(String[] args){
    String N = args[0];
    String str = N.substr(0,1);
    String[] ponArr = new String[]{"0","1","6","8"};
    String[] bonArr = new String[]{"3"};
    List<String> ponArr = Lists.asList(ponArr);
    List<String> bonArr = Lists.asList(bonArr);
    
    if(ponList.contains(str)){
      System.out.println("pon");
    }else if(bonList.contains(str)){
      System.out.println("bon");
    }else{
      System.out.println("hon");
    }
  }

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

class Main {
 
  public static void main(String[] args){
    String N = args[0];
    String str = N.substr(0,1);
    String[] ponArr = new String[]{"0","1","6","8"};
    String[] bonArr = new String[]{"3"};
    if(ponArr.contains(str)){
      System.out.println("pon");
    }else if(bonArr.contains(str)){
      System.out.println("bon");
    }else{
      System.out.println("hon");
    }
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    String str = N.substr(0,1);
                  ^
  symbol:   method substr(int,int)
  location: variable N of type String
Main.java:8: error: cannot find symbol
    if(ponArr.contains(str)){
             ^
  symbol:   method contains(String)
  location: variable ponArr of type String[]
Main.java:10: error: cannot find symbol
    }else if(bonArr.contains(str)){
                   ^
  symbol:   method contains(String)
  location: variable bonArr of type String[]
3 errors
Language: C++

#include <bits/stdc++.h>
#include <queue>
#include <string.h> 
#include <stdint.h>
 
#define fast                          \
    ios_base::sync_with_stdio(false); \
    cin.tie(0);                       \
    cout.tie(0);
 
#define ll long long
#define ld long double
#define ull unsigned long long
#define ut uint64_t
 
#define pb push_back
#define ins insert
#define er erase
 
#define fi(i, b) for (int i=0;i<b;i++)
#define fll(i, b) for (ll i=0;i<b;i++)
#define fla(i,a,b) for (ll i=a;i<b;i++)
 
#define vi vector<int>
#define vll vector<ll>
#define vc vector<char>
#define vb vector<bool>
#define vst vector<string>
#define vpii vector<pii>
#define vpll vector<pll>
#define vv(n,m) vector<vector<ll> > vec( n , vector<ll> (m, 0))
 
 
#define all(v) v.begin(), v.end()
#define lb lower_bound
#define ub upper_bound
#define mxe max_element
#define mne min_element
 
#define srt(v) sort(all(v))
#define rsrt(v) sort(v.rbegin(), v.rend())
 
#define pii pair<int, int>
#define pll pair<ll, ll>
#define ff first
#define ss second
 
#define mii map<int, int>
#define mll map<ll, ll>
#define umii unordered_map<int, int>
#define umll unordered_map<ll, ll>
 
#define si set<int>
#define sll set<ll>
#define usi unordered_set<int>
#define usll unordered_set<ll>
#define spii set<pii>
#define spll set<pll>
 
#define pqi priority_queue<int>
#define pqll priority_queue<ll>
 
 #define gcd(a, b) __gcd(a, b)
#define lcm(a, b) ((a)*1ll * (b)) / gcd(a, b)
 
#define nl "\n"
using namespace std;
 
 
ll md = 1000000007;
ll ma = 998244353;
 
ll pw(ll a, ll b)
{
    ll c = 1, m = a;
    while (b){
        if (b & 1)c = (c * m);
        m = (m * m);
        b /= 2;
    }
    return c;
}
 
ll pwmd(ll a, ll b){
    ll c = 1, m = a;
    while (b){
        if (b & 1)
            c = ((c * m)) % md;
        m = (m * m) % md;
        b /= 2;
    }
    return c;
}
 
ll modinv(ll n)
{
    return pwmd(n, md - 2);
}
ll min(ll a,ll b){
    if(a>=b)return b;
    return a;
}
int binomialCoeff(ll n, ll k)  
{  
    ll res = 1;  
    if ( k > n - k )  
        k = n - k;  
    for (ll i = 0; i < k; ++i)  
    {  
        res *= (n - i);  
        res /= (i + 1);  
    }  
  
    return res;  
}  

 
// AB DEKHO JAADU...

void solve(){
    string n;
    cin>>n;
  	if(s[-1]==2||s[-1]==5||s[-1]==7||s[-1]==9)cout<<"hon\n";
  	else if(s[-1]==0||s[-1]==1||s[-1]==6||s[-1]==8)cout<<"pon\n";
  	else cout<<"bon\n";
  
}


int main(){
    
    fast;
    ll t;
    cin>>t;
    while(t--){
        solve();
    }
    return 0;
    }
    
// KHATAM HO GAYA:)...







Compiler output:
a.cc: In function 'void solve()':
a.cc:123:12: error: 's' was not declared in this scope
  123 |         if(s[-1]==2||s[-1]==5||s[-1]==7||s[-1]==9)cout<<"hon\n";
      |            ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:17: error: expected ')' before 'or'
   10 |         if (a==2 or a==4 or a==5 or a==7 or a==9 )
      |            ~    ^~~
      |                 )
main.c:12:17: error: expected ')' before 'or'
   12 |         if (a==0 or a==1 or a==6 or a==8 )
      |            ~    ^~~
      |                 )