Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        int a = nextInt();
        String s = String.valueOf(a);
        char[] work = new char[text.length()];
        
        for (int i = 0; i < text.length(); i++){
        	work[i] = text.charAt(i);
        }
        if (work[text.length-1] == '2' || work[text.length-1] == '4' || work[text.length-1] == '5' || work[text.length-1] == '7' || work[text.length-1] == '9'){
        	System.out.println("hon");
        }
        else if (work[text.length-1] == '0' || work[text.length-1] == '6' || work[text.length-1] == '1' || work[text.length-1] == '8'){
        	System.out.println("pon");
        }
        else{
        	System.out.println("bon");
        }
		
      
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
        int a = nextInt();
                ^
  symbol:   method nextInt()
  location: class Main
Main.java:8: error: cannot find symbol
        char[] work = new char[text.length()];
                               ^
  symbol:   variable text
  location: class Main
Main.java:10: error: cannot find symbol
        for (int i = 0; i < text.length(); i++){
                            ^
  symbol:   variable text
  location: class Main
Main.java:11: error: cannot find symbol
        	work[i] = text.charAt(i);
        	          ^
  symbol:   variable text
  location: class Main
Main.java:13: error: cannot find symbol
        if (work[text.length-1] == '2' || work[text.length-1] == '4' || work[text.length-1] == '5' || work[text.length-1] == '7' || work[text.length-1] == '9'){
                 ^
  symbol:   variable text
  location: class Main
Main.java:13: error: cannot find symbol
        if (work[text.length-1] == '2' || work[text.length-1] == '4' || work[text.length-1] == '5' || work[text.length-1] == '7' || work[text.length-1] == '9'){
                                               ^
  symbol:   variable text
  location: class Main
Main.java:13: error: cannot find symbol
        if (work[text.length-1] == '2' || work[text.length-1] == '4' || work[text.length-1] == '5' || work[text.length-1] == '7' || work[text.length-1] == '9'){
                                                                             ^
  symbol:   variable text
  location: class Main
Main.java:13: error: cannot find symbol
        if (work[text.length-1] == '2' || work[text.length-1] == '4' || work[text.length-1] == '5' || work[text.length-1] == '7' || work[text.length-1] == '9'){
                                                                                                           ^
  symbol:   variable text
  location: class Main
Main.java:13: error: cannot find symbol
        if (work[text.length-1] == '2' || work[text.length-1] == '4' || work[text.length-1] == '5' || work[text.length-1] == '7' || work[text.length-1] == '9'){
                                                                                                                                         ^
  symbol:   variable text
  location: class Main
Main.java:16: error: cannot find symbol
        else if (work[text.length-1] == '0' || work[text.length-1] == '6' || work[text.length-1] == '1' || work[text.length-1] == '8'){
                      ^
  symbol:   variable text
  location: class Main
Main.java:16: error: cannot find symbol
        else if (work[text.length-1] == '0' || work[text.length-1] == '6' || work[text.length-1] == '1' || work[text.length-1] == '8'){
                                                    ^
  symbol:   variable text
  location: class Main
Main.java:16: error: cannot find symbol
        else if (work[text.length-1] == '0' || work[text.length-1] == '6' || work[text.length-1] == '1' || work[text.length-1] == '8'){
                                                                                  ^
  symbol:   variable text
  location: class Main
Main.java:16: error: cannot find symbol
        else if (work[text.length-1] == '0' || work[text.length-1] == '6' || work[text.length-1] == '1' || work[text.length-1] == '8'){
                                                                                                                ^
  symbol:   variable text
  location: class Main
13 errors