Language: C

#include<stdio.h>
int FUNC(char S,char A){
if(S[0]==A&&S[1]==A&&S[2]==A)
return 1;
else if(S[3]==A&&S[4]==A&&S[5]==A)
return 1;
else if(S[6]==A&&S[7]==A&&S[8]==A)
return 1
else if(S[0]==A&&S[3]==A&&S[6]==A)
return 1;
else if(S[1]==A&&S[4]==A&&S[7]==A)
return 1;
else if(S[2]==A&&S[5]==A&&S[8]==A)
return 1;
else if(S[0]==A&&S[4]==A&&S[8]==A)
return 1;
else if(S[2]==A&&S[4]==A&&S[6]==A)
return 1;
else return 0;
}
int main(){
char s[10],A;
while(scanf("%s",s)!=EOF){
A='o';
if(FUNC(s,A)){
printf("o\n");
contenue;
}
A='x';
if(FUNC(s,A))
printf("x\n");
else printf("d\n");
}
return 0;
}

Compiler output:
main.c: In function 'FUNC':
main.c:3:5: error: subscripted value is neither array nor pointer nor vector
    3 | if(S[0]==A&&S[1]==A&&S[2]==A)
      |     ^
main.c:3:14: error: subscripted value is neither array nor pointer nor vector
    3 | if(S[0]==A&&S[1]==A&&S[2]==A)
      |              ^
main.c:3:23: error: subscripted value is neither array nor pointer nor vector
    3 | if(S[0]==A&&S[1]==A&&S[2]==A)
      |                       ^
main.c:5:10: error: subscripted value is neither array nor pointer nor vector
    5 | else if(S[3]==A&&S[4]==A&&S[5]==A)
      |          ^
main.c:5:19: error: subscripted value is neither array nor pointer nor vector
    5 | else if(S[3]==A&&S[4]==A&&S[5]==A)
      |                   ^
main.c:5:28: error: subscripted value is neither array nor pointer nor vector
    5 | else if(S[3]==A&&S[4]==A&&S[5]==A)
      |                            ^
main.c:7:10: error: subscripted value is neither array nor pointer nor vector
    7 | else if(S[6]==A&&S[7]==A&&S[8]==A)
      |          ^
main.c:7:19: error: subscripted value is neither array nor pointer nor vector
    7 | else if(S[6]==A&&S[7]==A&&S[8]==A)
      |                   ^
main.c:7:28: error: subscripted value is neither array nor pointer nor vector
    7 | else if(S[6]==A&&S[7]==A&&S[8]==A)
      |                            ^
main.c:8:9: error: expected ';' before 'else'
    8 | return 1
      |         ^
      |         ;
    9 | else if(S[0]==A&&S[3]==A&&S[6]==A)
      | ~~~~     
main.c:11:10: error: subscripted value is neither array nor pointer nor vector
   11 | else if(S[1]==A&&S[4]==A&&S[7]==A)
      |          ^
main.c:11:19: error: subscripted value is neither array nor pointer nor vector
   11 | else if(S[1]==A&&S[4]==A&&S[7]==A)
      |                   ^
main.c:11:28: error: subscripted value is neither array nor pointer nor vector
   11 | else if(S[1]==A&&S[4]==A&&S[7]==A)
      |                            ^
main.c:13:10: error: subscripted value is neither array nor pointer nor vector
   13 | else if(S[2]==A&&S[5]==A&&S[8]==A)
      |          ^
main.c:13:19: error: subscripted value is neither array nor pointer nor vector
   13 | else if(S[2]==A&&S[5]==A&&S[8]==A)
      |                   ^
main.c:13:28: error: subscripted value is neither array nor pointer nor vector
   13 | else if(S[2]==A&&S[5]==A&&S[8]==A)
      |                            ^
main.c:15:10: error: subscripted value is neither array nor pointer nor vector
   15 | else if(S[0]==A&&S[4]==A&&S[8]==A)
      |          ^
main.c:15:19: error: subscripted value is neither array nor pointer nor vector
   15 | else if(S[0]==A&&S[4]==A&&S[8]==A)
      |                   ^
main.c:15:28: error: subscripted value is neither array nor pointer nor vector
   15 | else if(S[0]==A&&S[4]==A&&S[8]==A)
      |                            ^
main.c:17:10: error: subscripted value is neither array nor pointer nor vector
   17 | else if(S[2]==A&&S[4]==A&&S[6]==A)
      |          ^
main.c:17:19: error: subscripted value is neither array nor pointer nor vector
   17 | else if(S[2]==A&&S[4]==A&&S[6]==A)
      |                   ^
main.c:17:28: error: subscripted value is neither array nor pointer nor vector
   17 | else if(S[2]==A&&S[4]==A&&S[6]==A)
      |                            ^
main.c: In function 'main':
main.c:25:9: error: passing argument 1 of 'FUNC' makes integer from pointer without a cast [-Wint-conversion]
   25 | if(FUNC(s,A)){
      |         ^
      |         |
      |         char *
main.c:2:15: note: expected 'char' but argument is of type 'char *'
    2 | int FUNC(char S,char A){
      |          ~~~~~^
main.c:27:1: error: 'contenue' undeclared (first use in this function)
   27 | contenue;
      | ^~~~~~~~
main.c:27:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:30:9: error: passing argument 1 of 'FUNC' makes integer from pointer without a cast [-Wint-conversion]
   30 | if(FUNC(s,A))
      |         ^
      |         |
      |         char *
main.c:2:15: note: expected 'char' but argument is of type 'char *'
    2 | int FUNC(char S,char A){
      |          ~~~~~^