Language: C

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

int main(){
    int N=0;
    char s;
    int K=0,i=0;
    scanf("%d",&N);
    scanf("%d",&K);
    for(K=0,K<10001,K++){
       for(N=1,N<10001,N++){
       for(i=0,i<10001,i++){
            if(i%2==0)
            s[i]=0;
       else
        s[i]=1;
}
if (s[i]=0)
printf('Z');
else
printf('D');
   }
for(K=0,K<10001,K++){
       for(N=1,N<10001,N++){
       for(i=0,i<10001,i++){
            if(i%2==0)
            s[i]=1;
       else
        s[i]=0;
}
if (s[i]=0)
printf('Z');
else
printf('D');
   }
}

Compiler output:
main.c: In function 'main':
main.c:10:24: error: expected ';' before ')' token
   10 |     for(K=0,K<10001,K++){
      |                        ^
      |                        ;
main.c:10:24: error: expected expression before ')' token
main.c:11:27: error: expected ';' before ')' token
   11 |        for(N=1,N<10001,N++){
      |                           ^
      |                           ;
main.c:11:27: error: expected expression before ')' token
main.c:12:27: error: expected ';' before ')' token
   12 |        for(i=0,i<10001,i++){
      |                           ^
      |                           ;
main.c:12:27: error: expected expression before ')' token
main.c:14:14: error: subscripted value is neither array nor pointer nor vector
   14 |             s[i]=0;
      |              ^
main.c:16:10: error: subscripted value is neither array nor pointer nor vector
   16 |         s[i]=1;
      |          ^
main.c:18:6: error: subscripted value is neither array nor pointer nor vector
   18 | if (s[i]=0)
      |      ^
main.c:19:8: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   19 | printf('Z');
      |        ^~~
      |        |
      |        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:21:8: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   21 | printf('D');
      |        ^~~
      |        |
      |        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:23:20: error: expected ';' before ')' token
   23 | for(K=0,K<10001,K++){
      |                    ^
      |                    ;
main.c:23:20: error: expected expression before ')' token
main.c:24:27: error: expected ';' before ')' token
   24 |        for(N=1,N<10001,N++){
      |                           ^
      |                           ;
main.c:24:27: error: expected expression before ')' token
main.c:25:27: error: expected ';' before ')' token
   25 |        for(i=0,i<10001,i++){
      |                           ^
      |                           ;
main.c:25:27: error: expected expression before ')' token
main.c:27:14: error: subscripted value is neither array nor pointer nor vector
   27 |             s[i]=1;
      |              ^
main.c:29:10: error: subscripted value is neither array nor pointer nor vector
   29 |         s[i]=0;
      |          ^
main.c:31:6: error: subscripted value is neither array nor pointer nor vector
   31 | if (s[i]=0)
      |      ^
main.c:32:8: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   32 | printf('Z');
      |        ^~~
      |        |
      |        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:34:8: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   34 | printf('D');
      |        ^~~
      |        |
      |        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:1: error: expected declaration or statement at end of input
   36 | }
      | ^
main.c:36:1: error: expected declaration or statement at end of input