Language: C

int main(void){     int card[5],ans,n,i,l,t,f;           while(scanf(" %d,%d,%d,%d,%d",&card[0],&card[1],&card[2],&card[3],&card[4])!=EOF){                   //昇順にソート         for(i=0;i<4;i++){             for(l=4;l>i;l--){                 if(card[l-1]>card[l]){                     t=card[l-1];                     card[l-1]=card[l];                     card[l]=t;                 }             }         }                   //ストレート判定         for(f=0,i=4;i>0;i--){             if(i==1 && card[1]==10 && card[0]==1)f=1;             if(card[i]!=card[i-1]+1)break;             if(i==1)f=1;         }                   //スリーペア         if(f==0){             for(i=0;i<3;i++){                 if(card[i]==card[i+2])f=3;             }         }                   //ワンペア判定         if(f==0){             for(i=0;i<4;i++){                 if(card[i]==card[i+1])f=2;             }         }                   if(card[0]==card[3] || card[1]==card[4]){             printf("four card\n");         }         else if((card[0]==card[1] && card[2]==card[4]) || card[0]==card[2] && card[3]==card[4]){             printf("full house\n");         }         else if(f==1){             printf("straight\n");         }         else if(f==3){             printf("three card\n");         }         else if((card[0]==card[1] && (card[2]==card[3] || card[3]==card[4])) || (card[1]==card[2] && card[3]==card[4])){             printf("two pair\n");         }         else if(f==2){             printf("one pair\n");         }         else{             printf("null\n");         }                                   }                 return 0; } 

Compiler output:
main.c: In function 'main':
main.c:1:64: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | int main(void){     int card[5],ans,n,i,l,t,f;           while(scanf(" %d,%d,%d,%d,%d",&card[0],&card[1],&card[2],&card[3],&card[4])!=EOF){                   //昇順にソート         for(i=0;i<4;i++){             for(l=4;l>i;l--){                 if(card[l-1]>card[l]){                     t=card[l-1];                     card[l-1]=card[l];                     card[l]=t;                 }             }         }                   //ストレート判定         for(f=0,i=4;i>0;i--){             if(i==1 && card[1]==10 && card[0]==1)f=1;             if(card[i]!=card[i-1]+1)break;             if(i==1)f=1;         }                   //スリーペア         if(f==0){             for(i=0;i<3;i++){                 if(card[i]==card[i+2])f=3;             }         }                   //ワンペア判定         if(f==0){             for(i=0;i<4;i++){                 if(card[i]==card[i+1])f=2;             }         }                   if(card[0]==card[3] || card[1]==card[4]){             printf("four card\n");         }         else if((card[0]==card[1] && card[2]==card[4]) || card[0]==card[2] && card[3]==card[4]){             printf("full house\n");         }         else if(f==1){             printf("straight\n");         }         else if(f==3){             printf("three card\n");         }         else if((card[0]==card[1] && (card[2]==card[3] || card[3]==card[4])) || (card[1]==card[2] && card[3]==card[4])){             printf("two pair\n");         }         else if(f==2){             printf("one pair\n");         }         else{             printf("null\n");         }                                   }                 return 0; }
      |                                                                ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){     int card[5],ans,n,i,l,t,f;           while(scanf(" %d,%d,%d,%d,%d",&card[0],&card[1],&card[2],&card[3],&card[4])!=EOF){                   //昇順にソート         for(i=0;i<4;i++){             for(l=4;l>i;l--){                 if(card[l-1]>card[l]){                     t=card[l-1];                     card[l-1]=card[l];                     card[l]=t;                 }             }         }                   //ストレート判定         for(f=0,i=4;i>0;i--){             if(i==1 && card[1]==10 && card[0]==1)f=1;             if(card[i]!=card[i-1]+1)break;             if(i==1)f=1;         }                   //スリーペア         if(f==0){             for(i=0;i<3;i++){                 if(card[i]==card[i+2])f=3;             }         }                   //ワンペア判定         if(f==0){             for(i=0;i<4;i++){                 if(card[i]==card[i+1])f=2;             }         }                   if(card[0]==card[3] || card[1]==card[4]){             printf("four card\n");         }         else if((card[0]==card[1] && card[2]==card[4]) || card[0]==card[2] && card[3]==card[4]){             printf("full house\n");         }         else if(f==1){             printf("straight\n");         }         else if(f==3){             printf("three card\n");         }         else if((card[0]==card[1] && (card[2]==card[3] || card[3]==card[4])) || (card[1]==card[2] && card[3]==card[4])){             printf("two pair\n");         }         else if(f==2){             printf("one pair\n");         }         else{             printf("null\n");         }                                   }                 return 0; }
main.c:1:64: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | int main(void){     int card[5],ans,n,i,l,t,f;           while(scanf(" %d,%d,%d,%d,%d",&card[0],&card[1],&card[2],&card[3],&card[4])!=EOF){                   //昇順にソート         for(i=0;i<4;i++){             for(l=4;l>i;l--){                 if(card[l-1]>card[l]){                     t=card[l-1];                     card[l-1]=card[l];                     card[l]=t;                 }             }         }                   //ストレート判定         for(f=0,i=4;i>0;i--){             if(i==1 && card[1]==10 && card[0]==1)f=1;             if(card[i]!=card[i-1]+1)break;             if(i==1)f=1;         }                   //スリーペア         if(f==0){             for(i=0;i<3;i++){                 if(card[i]==card[i+2])f=3;             }         }                   //ワンペア判定         if(f==0){             for(i=0;i<4;i++){                 if(card[i]==card[i+1])f=2;             }         }                   if(card[0]==card[3] || card[1]==card[4]){             printf("four card\n");         }         else if((card[0]==card[1] && card[2]==card[4]) || card[0]==card[2] && card[3]==card[4]){             printf("full house\n");         }         else if(f==1){             printf("straight\n");         }         else if(f==3){             printf("three card\n");         }         else if((card[0]==card[1] && (card[2]==card[3] || card[3]==card[4])) || (card[1]==card[2] && card[3]==card[4])){             printf("two pair\n");         }         else if(f==2){             printf("one pair\n");         }         else{             printf("null\n");         }                                   }                 return 0; }
      |                                                                ^~~~~
main.c:1:64: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:135: error: 'EOF' undeclared (first use in this function)
    1 | int main(void){     int card[5],ans,n,i,l,t,f;           while(scanf(" %d,%d,%d,%d,%d",&card[0],&card[1],&card[2],&card[3],&card[4])!=EOF){                   //昇順にソート         for(i=0;i<4;i++){             for(l=4;l>i;l--){                 if(card[l-1]>card[l]){                     t=card[l-1];                     card[l-1]=card[l];                     card[l]=t;                 }             }         }                   //ストレート判定         for(f=0,i=4;i>0;i--){             if(i==1 && card[1]==10 && card[0]==1)f=1;             if(card[i]!=card[i-1]+1)break;             if(i==1)f=1;         }                   //スリーペア         if(f==0){             for(i=0;i<3;i++){                 if(card[i]==card[i+2])f=3;             }         }                   //ワンペア判定         if(f==0){             for(i=0;i<4;i++){                 if(card[i]==card[i+1])f=2;             }         }                   if(card[0]==card[3] || card[1]==card[4]){             printf("four card\n");         }         else if((card[0]==card[1] && card[2]==card[4]) || card[0]==card[2] && card[3]==card[4]){             printf("full house\n");         }         else if(f==1){             printf("straight\n");         }         else if(f==3){             printf("three card\n");         }         else if((card[0]==card[1] && (card[2]==card[3] || card[3]==card[4])) || (card[1]==card[2] && card[3]==card[4])){             printf("two pair\n");         }         else if(f==2){             printf("one pair\n");         }         else{             printf("null\n");         }                                   }                 return 0; }
      |                                                                                                                                       ^~~
main.c:1:135: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:1:135: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:1: error: expected declaration or statement at end of input
    1 | int main(void){     int card[5],ans,n,i,l,t,f;           while(scanf(" %d,%d,%d,%d,%d",&card[0],&card[1],&card[2],&card[3],&card[4])!=EOF){                   //昇順にソート         for(i=0;i<4;i++){             for(l=4;l>i;l--){                 if(card[l-1]>card[l]){                     t=card[l-1];                     card[l-1]=card[l];                     card[l]=t;                 }             }         }                   //ストレート判定         for(f=0,i=4;i>0;i--){             if(i==1 && card[1]==10 && card[0]==1)f=1;             if(card[i]!=card[i-1]+1)break;             if(i==1)f=1;         }                   //スリーペア         if(f==0){             for(i=0;i<3;i++){                 if(card[i]==card[i+2])f=3;             }         }                   //ワンペア判定         if(f==0){             for(i=0;i<4;i++){                 if(card[i]==card[i+1])f=2;             }         }                   if(card[0]==card[3] || card[1]==card[4]){             printf("four card\n");         }         else if((card[0]==card[1] && card[2]==card[4]) || card[0]==card[2] && card[3]==card[4]){             printf("full house\n");         }         else if(f==1){             printf("straight\n");         }         else if(f==3){             printf("three card\n");         }         else if((card[0]==card[1] && (card[2]==card[3] || card[3]==card[4])) || (card[1]==card[2] && card[3]==card[4])){             printf("two pair\n");         }         else if(f==2){             printf("one pair\n");         }         else{             printf("null\n");         }                                   }                 return 0; }
      | ^~~
main.c:1:1: error: expected declaration or statement at end of input