Language: C

#include <stdio.h>

int main(void)
{
    int N;
    scanf("%d", &N);
    if (N < 10)
    {
        if (N = 3)
        {
            printf("bon\n")
        }
        else if (N = 0, 1, 6, 8)
        {
            printf("pon\n")
        }
        else
        {
            printf("hon\n")
        }
    }
    else if (10 <= N < 100)
    {
        if (N % 10 = 3)
        {
            printf("bon\n")
        }
        else if (N % 10 = 0, 1, 6, 8)
        {
            printf("pon\n")
        }
        else
        {
            printf("hon\n")
        }
    }
    else if (100 <= N <= 999)
    {
        if (N % 100 = 3)
        {
            printf("bon\n")
        }
        else if (N % 100 = 0, 1, 6, 8)
        {
            printf("pon\n")
        }
        else
        {
            printf("hon\n")
        }
    }
    else
    {
        printf("\n")
    }
}

Compiler output:
main.c: In function 'main':
main.c:11:28: error: expected ';' before '}' token
   11 |             printf("bon\n")
      |                            ^
      |                            ;
   12 |         }
      |         ~                   
main.c:15:28: error: expected ';' before '}' token
   15 |             printf("pon\n")
      |                            ^
      |                            ;
   16 |         }
      |         ~                   
main.c:19:28: error: expected ';' before '}' token
   19 |             printf("hon\n")
      |                            ^
      |                            ;
   20 |         }
      |         ~                   
main.c:24:20: error: lvalue required as left operand of assignment
   24 |         if (N % 10 = 3)
      |                    ^
main.c:26:28: error: expected ';' before '}' token
   26 |             printf("bon\n")
      |                            ^
      |                            ;
   27 |         }
      |         ~                   
main.c:28:25: error: lvalue required as left operand of assignment
   28 |         else if (N % 10 = 0, 1, 6, 8)
      |                         ^
main.c:30:28: error: expected ';' before '}' token
   30 |             printf("pon\n")
      |                            ^
      |                            ;
   31 |         }
      |         ~                   
main.c:34:28: error: expected ';' before '}' token
   34 |             printf("hon\n")
      |                            ^
      |                            ;
   35 |         }
      |         ~                   
main.c:39:21: error: lvalue required as left operand of assignment
   39 |         if (N % 100 = 3)
      |                     ^
main.c:41:28: error: expected ';' before '}' token
   41 |             printf("bon\n")
      |                            ^
      |                            ;
   42 |         }
      |         ~                   
main.c:43:26: error: lvalue required as left operand of assignment
   43 |         else if (N % 100 = 0, 1, 6, 8)
      |                          ^
main.c:45:28: error: expected ';' before '}' token
   45 |             printf("pon\n")
      |                            ^
      |                            ;
   46 |         }
      |         ~                   
main.c:49:28: error: expected ';' before '}' token
   49 |             printf("hon\n")
      |                            ^
      |                            ;
   50 |         }
      |         ~                   
main.c:54:21: error: expected ';' before '}' token
   54 |         printf("\n")
      |                     ^
      |                     ;
   55 |     }
      |     ~