Language: C

        int count = 0;
        int t = 0;
        int c[P] = {0, 0, 0, 0, 0};

        while( scanf("%d,%d,%d,%d,%d", &card[0], &card[1], &card[2], &card[3], &card[4]) != EOF )
        {
                for(i = 0; i < P ; i++)
                {
                        for(j = 0; j < P ; j++)
                        {
                                if(card[i] > card[j])
                                {
                                        m = card[i];
                                        card[i] = card[j];
                                        card[j] = m;
                                }
                        }
                }
                for(i = 0; i < P ; i++)
                {
                        for(j = i + 1; j < P ; j++)
                        {
                                if(card[i] == card[j])
                                {
                                        count++;
                                }
                        }
                }

                if(count == 0)
                {
                        for(k = 0 ;k < P; k++)
                        {
                                c[k] = card[k] + k;
                        }
                        for(i = 1 ;i < P; i++)
                        {
                                if(c[0] == c[i])
                                {
                                        t++;
                                }
                        }
                        if((t == 4) || (card[0] == 13 && card[1] == 12 && card[2] == 11 && card[3] == 10 && card[4] == 1))
                        {
                                printf("straight\n");
                        }
                        else
                        {
                                printf("null\n");
                        }
                }
                else if(count == 1)
                {
                        printf("one pair\n");
                }
                else if(count == 2)
                {
                        printf("two pair\n");
                }
                else if(count == 3)
                {
                        printf("three card\n");
                }
                else if(count == 4)
                {
                        printf("full house\n");
                }
                else if(count == 6)
                {
                        printf("four card\n");
                }
                t = 0;
                m = 0;
                count = 0;
                for(i = 0; i < P; i++)
                {
                           c[i] = 0;
                        card[i] = 0;
                }
                i = 0;
                j = 0;
                k = 0;
        }
        return 0;
}

Compiler output:
main.c:3:15: error: 'P' undeclared here (not in a function)
    3 |         int c[P] = {0, 0, 0, 0, 0};
      |               ^
main.c:5:9: error: expected identifier or '(' before 'while'
    5 |         while( scanf("%d,%d,%d,%d,%d", &card[0], &card[1], &card[2], &card[3], &card[4]) != EOF )
      |         ^~~~~
main.c:84:9: error: expected identifier or '(' before 'return'
   84 |         return 0;
      |         ^~~~~~
main.c:85:1: error: expected identifier or '(' before '}' token
   85 | }
      | ^