Language: C

#include <stdio.h>
#include <stdlib.h>

int main()
{
int i=0;
char s[i];
scanf("%d",&i);
for(i=0,i<10001,i++)
{
if(i%2==0)
s[i]=1;
else
s[i]=0;
}
if (s[i]=0)
printf('B');
else
printf('W');
if(s[i]!==s[i+1])
{
    printf("%d\n,i")

}
for(i=0,i<10001,i++)
{
if(i%2==0)
s[i]=0;
else
s[i]=1;
}
if (s[i]=0)
printf('B');
else
printf('W');
if(s[i]!==s[i+1])
{
    printf("%d\n,i")
    }
return 0
}

Compiler output:
main.c: In function 'main':
main.c:9:20: error: expected ';' before ')' token
    9 | for(i=0,i<10001,i++)
      |                    ^
      |                    ;
main.c:9:20: error: expected expression before ')' token
main.c:17:8: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   17 | printf('B');
      |        ^~~
      |        |
      |        int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:19:8: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   19 | printf('W');
      |        ^~~
      |        |
      |        int
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:20:10: error: expected expression before '=' token
   20 | if(s[i]!==s[i+1])
      |          ^
main.c:22:21: error: expected ';' before '}' token
   22 |     printf("%d\n,i")
      |                     ^
      |                     ;
   23 | 
   24 | }
      | ~                    
main.c:25:20: error: expected ';' before ')' token
   25 | for(i=0,i<10001,i++)
      |                    ^
      |                    ;
main.c:25:20: error: expected expression before ')' token
main.c:33:8: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   33 | printf('B');
      |        ^~~
      |        |
      |        int
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:35:8: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   35 | printf('W');
      |        ^~~
      |        |
      |        int
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:36:10: error: expected expression before '=' token
   36 | if(s[i]!==s[i+1])
      |          ^
main.c:38:21: error: expected ';' before '}' token
   38 |     printf("%d\n,i")
      |                     ^
      |                     ;
   39 |     }
      |     ~                
main.c:40:9: error: expected ';' before '}' token
   40 | return 0
      |         ^
      |         ;
   41 | }
      | ~