criyle/codenet-compile-errors huggingface dataset:
Language: C

#include <stdio.h>
  2 
  3 int main(void)
  4 {
  5     int H;
  6     int W;
  7     int i;
  8     int j;
  9 
 10     scanf("%d %d", &H, &W);
 11 
 12     while((H != 0) && (W != 0)){
 13         for (i = 0; i < H; i++){
 14             for (j = 0; j < W; j++){
 15                 if ((i + j) % 2 == 0){
 16                     printf("#");
 17                 }
 18                 else{
 19                     printf(".");
 20                 }
 21             }
 22             printf("\n");
 23         }
 24         scanf("%d %d", &H, &W);
 25     }
 26 
 27     return (0);
 28 }

Compiler output:
main.c:2:3: error: expected identifier or '(' before numeric constant
    2 |   2
      |   ^
Language: C

#include <stdio.h>

int main()
{
    int H[65535],W[65535];
    int i,j,k;
    
    for(i=0;;i++){
        scanf("%d %d",H+i,W+i);
        if(H[i]==0&&W[i]==0)
            break;
    }

    for(i=0;H[i]!=0||W[i]!=0;i++){
        for(j=0;j<H[i];j++){
            for(k=0;k<W[i];k++){
                if(j%2==0){
                    if(k%2==0){
                         printf("#");
                    }else{
                         printf(".")
                    }
                 }else if(k%2==0){
                     printf(".");
                 }else{
                     prinf("#");
                 }
            }
            printf("\n");
        }
        printf("\n");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:37: error: expected ';' before '}' token
   21 |                          printf(".")
      |                                     ^
      |                                     ;
   22 |                     }
      |                     ~                
main.c:26:22: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   26 |                      prinf("#");
      |                      ^~~~~
      |                      printf
Language: C

#include <stdio.h>

int main()
{
    int H[65535],W[65535];
    int i,j,k;
    
    for(i=0;;i++){
        scanf("%d %d",H+i,W+i);
        if(H[i]==0&&W[i]==0)
            break;
    }

    for(i=0;H[i]!=0||W[i]!=0;i++){
        for(j=0;j<H[i];j++){
            for(k=0;k<W[i];k++){
                if(j%2==0){
                    if(k%2==0){
                         printf("#");
                    }else{
                         printf(".");
                    }
                 }else if(k%2==0){
                     printf(".");
                 }else{
                     prinf("#");
                 }
            }
            printf("\n");
        }
        printf("\n");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:26:22: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   26 |                      prinf("#");
      |                      ^~~~~
      |                      printf
Language: C

#include<stdio.h>
int main(void)
{
    int H,W,i,j;
    for(;;){
        scanf("%d %d",&H,&W);
        if(H==0 && W==0){
            return 0;
        }
        for(i=0;i<H;i++){
            for(j=0;j<W;j++){
                if((j+i)%2==0){
                    printf("#");
                }
                else{
                    printf(".");
                }
            }
            printf("\n");
        }
        printf("

Compiler output:
main.c: In function 'main':
main.c:21:16: warning: missing terminating " character
   21 |         printf("
      |                ^
main.c:21:16: error: missing terminating " character
main.c:21:9: error: expected expression at end of input
   21 |         printf("
      |         ^~~~~~
main.c:21:9: error: expected declaration or statement at end of input
main.c:21:9: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>
int main(void)
{
    int H,W,i,j;
    for(;;){
        scanf("%d %d",&H,&W);
        if(H==0 && W==0){
            return 0;
        }
        for(i=0;i<H;i++){
            for(j=0;j<W;j++){
                if((j+i)%2==0){
                    printf("#");
                }
                else{
                    printf(".");
                }
            }
            printf("\n");
        }
        printf("\n);
        }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:16: warning: missing terminating " character
   21 |         printf("\n);
      |                ^
main.c:21:16: error: missing terminating " character
   21 |         printf("\n);
      |                ^~~~~
main.c:22:9: error: expected expression before '}' token
   22 |         }
      |         ^
main.c:21:16: error: expected ';' before '}' token
   21 |         printf("\n);
      |                ^
      |                ;
   22 |         }
      |         ~
Language: C

#include <stdio.h>
int main()
{
 int h,w;
 int i,j,k;
 while(1){
          scanf("%d %d",&h,&w);
          if(!h && !w) break;
          for(i=1; i<=h; i++){
               if(i%2){
                           for(j=1; i<=w; j++){
                                if(j%2) putchar('#');
                                else      putchar('.');
                           }
                else     {
                             for(j=1; j<=w; j++){
                             if(j%2) putchar('.');
                             else      putchar('#');
                             }
                            }
            }
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:17: error: expected '}' before 'else'
   15 |                 else     {
      |                 ^~~~
Language: C

#include<stdio.h>

char mark[2][2] = {{'#', '.'}, {'.', '#'}}
void draw_rect(int h, int w)
{
int i, j;
for(i=0;i<h;i++){
for(j=0;j<w;j++){
printf("%c",mark[i&1][j&1]);
}
printf("\n");
}
}

int main(void)
{
int h, w;

while(1){
scanf("%d %d", &h, &w);
if(!(h|w)) break;
draw_rect(h, w);
printf("\n");
}

return 0;
}

Compiler output:
main.c:4:1: error: expected ',' or ';' before 'void'
    4 | void draw_rect(int h, int w)
      | ^~~~
main.c: In function 'main':
main.c:22:1: error: implicit declaration of function 'draw_rect' [-Wimplicit-function-declaration]
   22 | draw_rect(h, w);
      | ^~~~~~~~~
Language: C

i#include<stdio.h>

int main(){
    int h, w;
    int i, j;
    while(1){
        scanf("%d %d ", &h, &w);
        if(h==0&&w==0)break;
        
        for(i=0;i<h;i++){
            for(j=0;j<w;j++){
                if((i%2==0&&j%2==0)||(i%2==1&&j%2==1)){
                    printf("#");
                }else{
                    printf(".");
                }
            }
            printf("\n");
        }
        printf("\n");
    }
    return 0;
}

Compiler output:
main.c:1:2: error: stray '#' in program
    1 | i#include<stdio.h>
      |  ^
main.c:1:1: error: unknown type name 'i'
    1 | i#include<stdio.h>
      | ^
main.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | i#include<stdio.h>
      |          ^
Language: C

#include <stdio.h>
 
main(){
    int h,w,i,j;
     
    while(scanf("%d %d",&h,&w)!=EOF && (h!=0 && w!=0)){
        for(i=0;i<h;i++){
           if(i%2==0){
            for(j=0;j<w;j++){
               if(j%2==0){
                printf("#");
               }else{
                printf(".");
               }
           }
          printf("\n");
          }else{
             for(j=0;j<w;j++){
               if(j%2==0){
                printf(".");
               }else{
                printf("#");
               }
             }
            }
          printf("\n");
       }
     }
#include <stdio.h>
 
main(){
    int h,w,i,j;
     
    while(scanf("%d %d",&h,&w)!=EOF && (h!=0 && w!=0)){
        for(i=0;i<h;i++){
           if(i%2==0){
            for(j=0;j<w;j++){
               if(j%2==0){
                printf("#");
               }else{
                printf(".");
               }
           }
          printf("\n");
          }else{
             for(j=0;j<w;j++){
               if(j%2==0){
                printf(".");
               }else{
                printf("#");
               }
             }
            }
          printf("\n");
       }
        printf("\n");
     }
    printf("\n");
    return 0;
}
    return 0;
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:31:7: error: expected ';' before '{' token
   31 | main(){
      |       ^
      |       ;
Language: C

#include <stdio.h>
 
main(){
    int h,w,i,j;
     
    while(scanf("%d %d",&h,&w)!=EOF && (h!=0 && w!=0)){
        for(i=0;i<h;i++){
           if(i%2==0){
            for(j=0;j<w;j++){
               if(j%2==0){
                printf("#");
               }else{
                printf(".");
               }
           }
          printf("\n");
          }else{
             for(j=0;j<w;j++){
               if(j%2==0){
                printf(".");
               }else{
                printf("#");
               }
             }
            }
          printf("\n");
       }
     }
#include <stdio.h>
 
main(){
    int h,w,i,j;
     
    while(scanf("%d %d",&h,&w)!=EOF && (h!=0 && w!=0)){
        for(i=0;i<h;i++){
           if(i%2==0){
            for(j=0;j<w;j++){
               if(j%2==0){
                printf("#");
               }else{
                printf(".");
               }
           }
          printf("\n");
          }else{
             for(j=0;j<w;j++){
               if(j%2==0){
                printf(".");
               }else{
                printf("#");
               }
             }
            }
          printf("\n");
       }
        printf("\n");
     }
    printf("\n");
    return 0;
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:31:7: error: expected ';' before '{' token
   31 | main(){
      |       ^
      |       ;
main.c:60:1: error: expected declaration or statement at end of input
   60 | }
      | ^
Language: C


int main (int argc, const char * argv[]) {
    int h, w;
	int i, j;
	while (1) {
		scanf("%d %d", &h, &w);
		if (h==0 && w==0)break;
		for (i=0; i<h; i++){
			for (j=0; j<w; j++){
				if ((i%2==0&&j%2==0)||(i%2==1&&j%2==1)) {
					printf("#");
				}
			}
			printf("\n");
		}
		printf("\n");
	}
	

Compiler output:
main.c: In function 'main':
main.c:6:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |                 scanf("%d %d", &h, &w);
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | 
main.c:6:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |                 scanf("%d %d", &h, &w);
      |                 ^~~~~
main.c:6:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:41: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |                                         printf("#");
      |                                         ^~~~~~
main.c:11:41: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:41: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:41: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   14 |                         printf("\n");
      |                         ^~~~~~
main.c:14:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   16 |                 printf("\n");
      |                 ^~~~~~
main.c:16:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:9: error: expected declaration or statement at end of input
   17 |         }
      |         ^
Language: C

#include <stdio.h>
int main(void)
{
	int H, W;
	int i, j;

	while(1){
		scanf("%d %d", &H, &W);
		if( H == 0 && W == 0 ){break;}
		
		for( i = 0; i < H; i++ ){
			for( j = 0; j < W; j++){
				if(( i%2==0 && j%2==0 ) || ( i%2==1 && j%2==1 )){
					printf("#");
				}else{
					printf(".");
				}
			}
		printf("\n");
    	}
        printf("\n");
    }  
    return 0;

Compiler output:
main.c: In function 'main':
main.c:23:5: error: expected declaration or statement at end of input
   23 |     return 0;
      |     ^~~~~~
Language: C

#include <stdio.h>
main(){
  int h,w,a,b;
  scanf("%d %d",&h,&w);
  for(a=0;a<h;a++){
    for(b=0;b<w;b++){
      if(a%2 == 0 && b%2 == 0 || a%2! = 0 && b%2! = 0){
	printf("#");
      }
      else{
	printf(".");
      }
    }
    printf("\n");
  }
  return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:7:37: error: expected ')' before '!' token
    7 |       if(a%2 == 0 && b%2 == 0 || a%2! = 0 && b%2! = 0){
      |         ~                           ^
      |                                     )
Language: C

#include<stdio.h>
main(){
  int W,H,a,b,c=0,d=0;
  scanf("%d %d",&W,&H);
  if(1<=H,W<=){
  for(a=0;a<W;a++){
    for(b=0;b<H;b++){
      if(a%2==1 && b%2==1 || a%2==0 && b%2==0){
	printf("#");
	  }
      else{
	printf(".");
      }
    }
    printf("\n");
  }
  }
  return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:5:14: error: expected expression before ')' token
    5 |   if(1<=H,W<=){
      |              ^
Language: C

#include<stdio.h>
main(){
  int H,W,a,b;
  while(H>0 && W>0){
    scanf("%d %d",&H,&W);
    for(a=0;a<H;a++){
      for(b=0;b<W;b++){
	if(a%2 != 0 && b%2 != 0 || a%2 == 0 && b%2 == 0){
	  printf("#");
	}
	else{
	  printf(".");
	}
      }
      printf("\n");
    }
  }

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:17:3: error: expected declaration or statement at end of input
   17 |   }
      |   ^
Language: C

#include<iostream>
#include<string>
using namespace std;

int main(){
	int h,w;
	while(cin>>h>>w&&h&&w){
		for(int i=0;i<h;++i){
			for(int j=0;j<w;++j){
				cout<<(((j+(i%2))%2==0)?"#":".");
			}
			cout<<endl;
		}
	}
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#import <iostream> 

int main(void){
	int input1[10]={}; //たて
	int input2[10]={}; //よこ
	int loop=0;
	int board[10][10]={}{};
	
	for(int i=0;i<10;i++)
	{
	cin << input1[i]<<input2[i] ;
		if(input1[i]==0){
			if(input2[i]==0){
			loop=i;
			break;
			}
		}
	}
	//たて　っつーか両方
	for(int i=0;i<10 i++){
		for(int y=0;y<10;y++){
			if(x%2){//奇数
				for(int x=0;x<10;x++){
					if(board[x][y]!=2){
						if(x%2){
							board[x][y]=0;
							}else{
							board[x][y]=1;
							}
						}
					}
			}else{
				for(int x=0;x<10;x++){
					if(board[x][y]!=2){
						if(x%2){
							board[x][y]=0;
							}else{
							board[x][y]=1;
							}
						}
					}
			
			}
			
			
			for(int i;i<loop;i++){
				for(int y=0;y<10;y++){
					for(int x=0;x<10;x++){
					if(board[x][y]=0){
					cout <<"#";
					}
					if(board[x][y]){
					cout<<".":
					}
			}
			
			
		}
	}
	
	
	
}

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import <iostream>
      |  ^~~~~~
a.cc: In function 'int main()':
a.cc:7:29: error: expected ',' or ';' before '{' token
    7 |         int board[10][10]={}{};
      |                             ^
a.cc:11:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   11 |         cin << input1[i]<<input2[i] ;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:20:25: error: expected ';' before 'i'
   20 |         for(int i=0;i<10 i++){
      |                         ^~
      |                         ;
a.cc:22:28: error: 'x' was not declared in this scope
   22 |                         if(x%2){//奇数
      |                            ^
a.cc:50:41: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   50 |                                         cout <<"#";
      |                                         ^~~~
      |                                         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:53:41: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   53 |                                         cout<<".":
      |                                         ^~~~
      |                                         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:63:2: error: expected '}' at end of input
   63 | }
      |  ^
a.cc:20:30: note: to match this '{'
   20 |         for(int i=0;i<10 i++){
      |                              ^
a.cc:63:2: error: expected '}' at end of input
   63 | }
      |  ^
a.cc:3:15: note: to match this '{'
    3 | int main(void){
      |               ^
Language: C++

#import <iostream> 

using namespace std;
int main(void){
	int input1[10]={}; //たて
	int input2[10]={}; //よこ
	int loop=0;
	int board[10][10]={};
	
	for(int i=0;i<10;i++)
	{
	cin >> input1[i]>>input2[i] ;
		if(input1[i]==0){
			if(input2[i]==0){
			loop=i;
			break;
			}
		}
	}
	//たて　っつーか両方
	
	for(int i=0;i<10 i++){
		for(int y=0;y<10;y++){
			if(x%2){//奇数
				for(int x=0;x<10;x++){
					if(board[x][y]!=2){
						if(x%2){
							board[x][y]=0;
							}else{
							board[x][y]=1;
							}
						}
					}
			}else{
				for(int x=0;x<10;x++){
					if(board[x][y]!=2){
						if(x%2){
							board[x][y]=0;
							}else{
							board[x][y]=1;
							}
						}
					}
			  }
			}
			}
			
			for(int i;i<loop;i++){
				for(int y=0;y<10;y++){
					for(int x=0;x<10;x++){
					if(board[x][y]=0){
					cout <<"#";
					}
					if(board[x][y]){
					cout<<".";
					}
			}
			
			
		}
	}
	
	
	
}

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import <iostream>
      |  ^~~~~~
a.cc: In function 'int main()':
a.cc:22:25: error: expected ';' before 'i'
   22 |         for(int i=0;i<10 i++){
      |                         ^~
      |                         ;
a.cc:24:28: error: 'x' was not declared in this scope
   24 |                         if(x%2){//奇数
      |                            ^
Language: C++

#include<stdio.h>

int main(){

char Q[3]={#.};

int H,W;
while(1){
scanf("%d %d",&H,&W);
if(H==0&&W==0)break;
for(int i=0;i<H;i++){
for(int j=0;j<W;j++)
{
if(H%2==0)printf("%c",Q[i%2]);
else printf("%c",Q[i%2+1]);
]

printf("\n");
}
printf("\n");
}
return 0;
}

Compiler output:
a.cc:5:12: error: stray '#' in program
    5 | char Q[3]={#.};
      |            ^
a.cc: In function 'int main()':
a.cc:5:13: error: expected primary-expression before '.' token
    5 | char Q[3]={#.};
      |             ^
a.cc:5:14: error: expected unqualified-id before '}' token
    5 | char Q[3]={#.};
      |              ^
a.cc:16:1: error: expected primary-expression before ']' token
   16 | ]
      | ^
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int H,W;
  while(1){
  bool point=true,line=false;
  cin>>H>>W;
  if(H==0&&W==0)break;
  for(int i = 0;i<H;i++){
    if(line == false){
      line = true;
      point =true;
    }
    else{
      line = false;
      point = false;
    }
    for(int j = 0;j<W;j++){
      if(point == true){
	cout<<"#";
	point = false;
      }
      else{
	cout<<".";
	point = true;
      }
    }
    cout<<"\n";
  }
  cout<<"\n";
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:31:4: error: expected '}' at end of input
   31 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){

  int h, w;
  string s = "#.";

  for(;scanf("%d%d",&h,&w),h|w;puts("")){
    flg = 0;
    for(int i=0;i++<h*w;){
      if(i&1) cout << s[flg&1];
      else cout << s[!(flg&1)];
      if(i%w == 0) flg += !puts("");
    }
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'flg' was not declared in this scope
   10 |     flg = 0;
      |     ^~~
Language: C++

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    while(true){
      int H = sc.nextInt();
      int W = sc.nextInt();
      if(H==0 && W==0)break;

      for(int i=1;i<=H;i++){

        if(i%2==1){
          for(int j=1;j<=W;j++){
          System.out.printf("#");
          j++;
          if(j>W)break;
          System.out.printf(".");
          }
        }

        else{
          for(int j=1;j<=W;j++){
          System.out.printf(".");
          j++;
          if(j>W)break;
          System.out.printf("#");
          }
        }

      System.out.printf("\n");
      }
    System.out.printf("\n");
    }
  }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main{
      | ^~~~~~
Language: C++

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(true){
			int H =sc.nextInt();
			int W = sc.nextInt();
			if(H == 0 && W == 0){
				break;
			}
			for(int j=1;j<=H;j++){
				for(int i=1;i<=W;i++){
					System.out.printf("#.");
				}
				System.out.println();
			}
		}
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main{
      | ^~~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
  int h, w;
  while (cin >> h >> w) {
    if (!h && !w) break;

    int f1 = 1; f2 = 1;
    for (int i = 0; i < h; i++) {
      f1 = 1 - f1;
      for (int j = 0; j < w; j++) {
        f2 = 1 - f2;
        if (f1 ^ f2) cout << ".";
        else cout << "#";
      }
      cout << endl;
    }
    cout << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'f2' was not declared in this scope; did you mean 'f1'?
   10 |     int f1 = 1; f2 = 1;
      |                 ^~
      |                 f1
Language: C++

#include<stdio.h>
int main(){
  int a,b,c,d;
  while(1){
  scanf("%d %d",&a,&b);
  if(a==0&&b==0){
    break;
  }
  for(c=0;c<a;c++){
    for(d=0;d<b;d++){
      if(a%2==1){
	if(b%2==0){
	  printf(".");
	}
	else{
	  printf("#");
	}
      }
      if(a%2==0){
	if(b%2==0){
	  printf(".");
	}
	else{
	  printf("#");
	}
      }
    }
    printf("\n");
  }
  return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:2: error: expected '}' at end of input
   31 | }
      |  ^
a.cc:2:11: note: to match this '{'
    2 | int main(){
      |           ^
Language: C++

#include<stdio.h>
int main(){
  int H,W,c,d;
  1<H<300;
  1<W<300;
  while(1){
  scanf("%d %d",&H,&W);
  if(a==0&&b==0){
    break;
  }
  for(c=0;c<H;c++){
    for(d=0;d<W;d++){
      if(c%2==0){
	if(d%2==0){
	  printf("#");
	}
	else{
	  printf(".");
	}
      }
      else{
	if(d%2==0){
	  printf(".");
	}
	else{
	  printf("#");
	}
      }
    }
    printf("\n");
  }
  }
  return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'a' was not declared in this scope
    8 |   if(a==0&&b==0){
      |      ^
a.cc:8:12: error: 'b' was not declared in this scope
    8 |   if(a==0&&b==0){
      |            ^
Language: C++

#include<iostream>
using namespace std;
int main()
{ 
	int H,W;
	while(true)
	  { 
		  cin>>H>>W;
		  if(H==0||W==0)break; 
		  for(int a=1;a==H;a++)
		     {
				 if(H%2==0)
				   { 
					   for(int b=1;b==W;b++)
				         {
						    if(W%2==0){cout<<"#";}
						    else      {cout<<".";}
						    if(b==W)  {cout<<endl;}
				         }
				   }
				 else
				   {
					   for(int b=1;b==W;b++)
				         {
						    if(W%2==0){cout<<".";}
							else      {cout<<"#";}
						    if(b==W)  {cout<<endl;}
				         }
				   }
				 if(H==a&&W==b){cout<<endl;}
		     }
		  
	  }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:46: error: 'b' was not declared in this scope
   30 |                                  if(H==a&&W==b){cout<<endl;}
      |                                              ^
Language: C++

#include<iostream>
#include<vector>
#include<string>
using namespace std;

int main(){
while(1){
	int a,b;
	cin>>a>>b;
    if(a==0&&b==0)break;
    for(int c=0;c<a;c++){
	for(int d=0;d<b;d++){
	if((c+1)%2==0)cout<<'#';
	else cout<<'*';
	}
	cout<<endl;
	}
	cout<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

import java.util.Scanner;

public class Main {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  while (true) {
   int H = sc.nextInt();
   int W= sc.nextInt();
   if (H == 0 && W == 0) {
    break;
   }
   for(int i=0;i<H;i++){
    for(int t=0;t<W;t++){
    if((i+t)%2=0){
     System.out.printf(???#???);
    }else{ 
     System.out.printf(???.???);
    }
    System.out.printf("\n");
   }
  }
 }
}

Compiler output:
a.cc:15:27: error: stray '#' in program
   15 |      System.out.printf(???#???);
      |                           ^
a.cc:15:29: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs]
   15 |      System.out.printf(???#???);
a.cc:17:29: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs]
   17 |      System.out.printf(???.???);
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

import java.util.Scanner;

public class Chess {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while (true) {
			int h = sc.nextInt();
			int w = sc.nextInt();
			if (h == 0 && w == 0) {
				break;
			}

			for (int i = 0; i < h; i++) {
				for (int j = 0; j < w; j++) {
					if ((i + j) % 2 == 0)
						System.out.print("#");
					else
						System.out.print(".");
				}
				System.out.println();
			}
			System.out.println();

		}
	}

}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Chess {
      | ^~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(void){
	int H,W;
	while(1){
		cin>>H>>W;
		if(H==0 && W==0) break;
		for(int j=0;j<H;j++){
			if(j==0 || j%2==0){

				for(int i=0;i<W;i++){
					if(i==0 || i%2==0){
						cout<<"#";
					}else{
						cout<<".";
					}
				}
				cout<<endl;

			}else{

				for(int i=0;i<W;i++){
					if(i==0 || i%2==0){
						cout<<".";
					}else{
						cout<<"#";
					}
				}
				cout<<endl;
				
			}
		}
		cout<<2 endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:24: error: expected ';' before 'endl'
   34 |                 cout<<2 endl;
      |                        ^~~~~
      |                        ;
Language: C++

#include <string>
#include <vector>
#include <list>
#include <deque>
#include <stack>
#include <bitset>
#include <functional>
#include <numeric>
#include <utility>
#include <iomanip>
#include <cstdio>
#include <cctype>
#include <queue>
#include <complex>
#include <climits>

typedef long long ll;

using namespace std;


int main(void){
	int H, W;
	while(1){
		cin >> H >> W;
		if(H == 0 && W == 0) break;
		for(int i=0; i<H; ++i){
			for(int j=0; j<W; ++j){
				if((i + j)%2 == 0){
					cout << "#";
				} else {
					cout << ".";
				}
			}
			cout << endl;
		}
		cout << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:17: error: 'cin' was not declared in this scope
   25 |                 cin >> H >> W;
      |                 ^~~
a.cc:16:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
   15 | #include <climits>
  +++ |+#include <iostream>
   16 | 
a.cc:30:41: error: 'cout' was not declared in this scope
   30 |                                         cout << "#";
      |                                         ^~~~
a.cc:30:41: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:32:41: error: 'cout' was not declared in this scope
   32 |                                         cout << ".";
      |                                         ^~~~
a.cc:32:41: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:35:25: error: 'cout' was not declared in this scope
   35 |                         cout << endl;
      |                         ^~~~
a.cc:35:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:37:17: error: 'cout' was not declared in this scope
   37 |                 cout << endl;
      |                 ^~~~
a.cc:37:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
using namespace std;

int main()
{
int l,w;
cin>>l>>w;
 if(l==0&&w==0) break;
 for(int i=0; i<l; i++)
 {
  for(int j=0; j<w; j++)
  {
   if((i+j)%2==0) 
{ cout<<"#"; }
   else 
{ cout<<".";}
  }
cout<<endl;
 }
cout<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: break statement not within loop or switch
    8 |  if(l==0&&w==0) break;
      |                 ^~~~~
Language: C++

while True:
	h, w = map(int, raw_input().split())
	if h == w ==0:
		break
	else:
		if w % 2 == 0:
			for i in range(h):
				if i % 2 == 0:
					print('#.' * (w / 2))
				else:
					print('.#' * (w / 2))
			print
					
		else:
			for i in range (h):
				if i % 2 == 0:
					print('#.' * ((w - 1)/ 2) + '#')
				else:
					print('.#' * ((w - 1)/ 2) + '.')
			print

Compiler output:
a.cc:9:47: warning: multi-character character constant [-Wmultichar]
    9 |                                         print('#.' * (w / 2))
      |                                               ^~~~
a.cc:11:47: warning: multi-character character constant [-Wmultichar]
   11 |                                         print('.#' * (w / 2))
      |                                               ^~~~
a.cc:17:47: warning: multi-character character constant [-Wmultichar]
   17 |                                         print('#.' * ((w - 1)/ 2) + '#')
      |                                               ^~~~
a.cc:19:47: warning: multi-character character constant [-Wmultichar]
   19 |                                         print('.#' * ((w - 1)/ 2) + '.')
      |                                               ^~~~
a.cc:1:1: error: expected unqualified-id before 'while'
    1 | while True:
      | ^~~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
    int H,W;
    char mark[2];
    mark[1]="#";
    mark[0]=".";
               while(cin>>H>>W,!(H==0 && W==0)){
               for(int i=0;i<H;i++){
                    for(int j=0;j<W;j++){
                        cout<<mark[(H+W)%2=0] ;                       
                        }
                        cout<<endl;
                     }
                     cout<<endl;
                }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    7 |     mark[1]="#";
      |             ^~~
      |             |
      |             const char*
a.cc:8:13: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    8 |     mark[0]=".";
      |             ^~~
      |             |
      |             const char*
a.cc:12:41: error: lvalue required as left operand of assignment
   12 |                         cout<<mark[(H+W)%2=0] ;
      |                                    ~~~~~^~
Language: C++

#include <iostream>
using namespace std;

int main(void) {
    int H,W;
    char mark[2];
    mark[1]="#";
    mark[0]=".";
               while(cin>>H>>W,!(H==0 && W==0)){
               for(int i=0;i<H;i++){
                    for(int j=0;j<W;j++){
                        cout<<mark[(H+W)%2=0] ;                       
                        }
                        cout<<endl;
                     }
                     cout<<endl;
                }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    7 |     mark[1]="#";
      |             ^~~
      |             |
      |             const char*
a.cc:8:13: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    8 |     mark[0]=".";
      |             ^~~
      |             |
      |             const char*
a.cc:12:41: error: lvalue required as left operand of assignment
   12 |                         cout<<mark[(H+W)%2=0] ;
      |                                    ~~~~~^~
Language: C++

#include <iostream>
using namespace std;

int main() {
    int H,W;
    char mark[2];
    mark[1]='#';
    mark[0]='.';
               while(cin>>H>>W,!(H==0 && W==0)){
               for(int i=0;i<H;i++){
                    for(int j=0;j<W;j++){
                        cout<<mark[(H+W)%2=0] ;                       
                        }
                        cout<<endl;
                     }
                     cout<<endl;
                }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:41: error: lvalue required as left operand of assignment
   12 |                         cout<<mark[(H+W)%2=0] ;
      |                                    ~~~~~^~
Language: C++

#include <iostream>
using namespace std;

int main() {
    int H,W;
    char mark[2];
    mark[1]='.';
    mark[0]='#';
               while(cin>>H>>W,!(H==0 && W==0)){
               for(int i=0;i<H;i++){
                    for(int j=0;j<W;j++){
                        cout<<mark[(H+W)%2=0];                       
                        }
                        cout<<endl;
                     }
                     cout<<endl;
                }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:41: error: lvalue required as left operand of assignment
   12 |                         cout<<mark[(H+W)%2=0];
      |                                    ~~~~~^~
Language: C++

#include<stdio.h>
main(){
  int W,H,a,b,c=0,d=0;
  scanf("%d %d",&W,&H);
  if(1<=H,W<=){
  for(a=0;a<W;a++){
    for(b=0;b<H;b++){
      if(a%2==1 && b%2==1 || a%2==0 && b%2==0){
	printf("#");
	  }
      else{
	printf(".");
      }
    }
    printf("\n");
  }
  }
  return 0;
}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:14: error: expected primary-expression before ')' token
    5 |   if(1<=H,W<=){
      |              ^
Language: C++

#include <stdio.h>

void drawRect(int H, int W) {
	for (int y = 0; y < H; y++) {
		for (int x = 0; x < W; x++) {
			printf("%c", (x + y)%2 == 0) ? '#' : '.'); 
		}
		printf("\n");
	}
	printf("\n");
}

int main(void) {
	int H = 0, W = 0;
	for (;;) {
		scanf("%d %d", &H, &W);
		if ((H == 0) && (W == 0)) {
			break;
		}
		drawRect(H, W);
	}
	return 0;
}

Compiler output:
a.cc: In function 'void drawRect(int, int)':
a.cc:6:65: error: expected ';' before ')' token
    6 |                         printf("%c", (x + y)%2 == 0) ? '#' : '.');
      |                                                                 ^
      |                                                                 ;
Language: C++

#include<stdio.h>

int main(void)
{
    int x , y;/*xが縦、ｙが横*/
    int a , b;
    scanf("%d %d", &x , &y);
    while(1){
        if(x == 0 && y == 0){
            break;
        }else {
                for( a=0 ; a<x ; ++a){
                    if(a%2==0){ /*偶数列を表記*/
                        for( b=0 ; b<y ; ++b ){
                            if(b % 2 == 0){
                                printf("#");
                            }else{
                                printf(".");
                            }
                         }
                         printf("\n");
                     } else { 　/*奇数列を表記*/
                            for( b=0 ; b<y ; ++b ){
                                if(b % 2 == 0){
                                    printf(".");
                                }else{
                                    printf("#");
                                }
                            }
                       printf("\n");
                    }
                 }
              }
          }              
    return 0;
}                 

Compiler output:
a.cc:22:31: error: extended character 　 is not valid in an identifier
   22 |                      } else { 　/*奇数列を表記*/
      |                               ^
a.cc: In function 'int main()':
a.cc:22:31: error: '\U00003000' was not declared in this scope
   22 |                      } else { 　/*奇数列を表記*/
      |                               ^~
a.cc:23:49: error: expected ';' before ')' token
   23 |                             for( b=0 ; b<y ; ++b ){
      |                                                 ^~
      |                                                 ;
Language: Java

import java.util.*;
public class Main 
{
	public static void main(String[] args) 
	{	
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		boolean[][] card = new boolean[4][13];
		for(int i = 0; i < n; ++i)
		{
			String s = sc.next();
			int num = sc.nextInt();
			if(s.equals("S"))
			{
				card[0][num - 1] = true;
			}
			else if(s.equals("H"))
			{
				card[1][num - 1] = true;
			}
			else if(s.equals("C"))
			{
				card[2][num - 1] = true;
			}
			else if(s.equals("D"))
			{
				card[3][num - 1] = true;
			}
		}
		String suit = "SHCD";
		for(int i = 0; i < 4; ++i)
		{
			for(int j = 0; j < 13; ++j)
			{
				if(card[i][j] == false)
				{
					System.out.printf("%c %d\n", suit.charAt(i), j + 1);
				}
			}
		}
	}

Compiler output:
Main.java:41: error: reached end of file while parsing
	}
	 ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Comparator;
 
public class Main {
  private static String marks = "SHCD";
 
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int count = Integer.parseInt(br.readLine());
    Card[] cards = new Card[count];
    for (int n = 0; n < count; n++) {
      cards[n] = new Card(br.readLine());
    }
    Collections.sort(cards);

    int c = 0;
    for (int mark = 0; mark < 4; mark++) {
      for (int num = 1; num < 14; num++) {
        if (cards[c].toString().equals(marks.charAt(mark) + " " + num)){
          c++;
        } else {
          System.out.println(cards[c]);
        }
      }
    }
  }
 
  private static class Card implements Comparator<Card> {
    String mark;
    int num;

    Card(String str) {
      mark = str.split(" ")[0];
      num = Integer.parseInt(str.split(" ")[1]);
    }

    @Override
    public int compare(Card c1, Card c2) {
        return c1.bySort().compareTo(c2.bySort());
    }
 
    public String bySort(){
      return marks.indexOf(mark) + " " + (num < 10 ? ("0" + num) : num);
    }

    @Override
    public String toString(){
      return mark + " " + num;
    }
  }
}

Compiler output:
Main.java:16: error: cannot find symbol
    Collections.sort(cards);
    ^
  symbol:   variable Collections
  location: class Main
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Collections;
 
public class Main {
  private static String marks = "SHCD";
 
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int count = Integer.parseInt(br.readLine());
    Card[] cards = new Card[count];
    for (int n = 0; n < count; n++) {
      cards[n] = new Card(br.readLine());
    }
    Collections.sort(cards);

    int c = 0;
    for (int mark = 0; mark < 4; mark++) {
      for (int num = 1; num < 14; num++) {
        if (cards[c].toString().equals(marks.charAt(mark) + " " + num)){
          c++;
        } else {
          System.out.println(cards[c]);
        }
      }
    }
  }
 
  private static class Card implements Comparator<Card> {
    String mark;
    int num;

    Card(String str) {
      mark = str.split(" ")[0];
      num = Integer.parseInt(str.split(" ")[1]);
    }

    @Override
    public int compare(Card c1, Card c2) {
        return c1.bySort().compareTo(c2.bySort());
    }
 
    public String bySort(){
      return marks.indexOf(mark) + " " + (num < 10 ? ("0" + num) : num);
    }

    @Override
    public String toString(){
      return mark + " " + num;
    }
  }
}

Compiler output:
Main.java:17: error: no suitable method found for sort(Card[])
    Collections.sort(cards);
               ^
    method Collections.<T#1>sort(List<T#1>) is not applicable
      (cannot infer type-variable(s) T#1
        (argument mismatch; Card[] cannot be converted to List<T#1>))
    method Collections.<T#2>sort(List<T#2>,Comparator<? super T#2>) is not applicable
      (cannot infer type-variable(s) T#2
        (actual and formal argument lists differ in length))
  where T#1,T#2 are type-variables:
    T#1 extends Comparable<? super T#1> declared in method <T#1>sort(List<T#1>)
    T#2 extends Object declared in method <T#2>sort(List<T#2>,Comparator<? super T#2>)
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Comparator;
 
public class Main {
  private static String marks = "SHCD";
 
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int count = Integer.parseInt(br.readLine());
    Card[] cards = new Card[count];
    for (int n = 0; n < count; n++) {
      cards[n] = new Card(br.readLine());
    }
    Arrays.sort(cards, new Card());

    int c = 0;
    for (int mark = 0; mark < 4; mark++) {
      for (int num = 1; num < 14; num++) {
        if (cards[c].toString().equals(marks.charAt(mark) + " " + num)){
          c++;
        } else {
          System.out.println(cards[c]);
        }
      }
    }
  }
 
  private static class Card implements Comparator<Card> {
    String mark;
    int num;

    Card(String str) {
      mark = str.split(" ")[0];
      num = Integer.parseInt(str.split(" ")[1]);
    }

    @Override
    public int compare(Card c1, Card c2) {
        return c1.bySort().compareTo(c2.bySort());
    }
 
    public String bySort(){
      return marks.indexOf(mark) + " " + (num < 10 ? ("0" + num) : num);
    }

    @Override
    public String toString(){
      return mark + " " + num;
    }
  }
}

Compiler output:
Main.java:16: error: constructor Card in class Card cannot be applied to given types;
    Arrays.sort(cards, new Card());
                       ^
  required: String
  found:    no arguments
  reason: actual and formal argument lists differ in length
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Comparator;
 
public class Main {
  private static String marks = "SHCD";
 
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int count = Integer.parseInt(br.readLine());
    Card[] cards = new Card[count];
    for (int n = 0; n < count; n++) {
      cards[n] = new Card(br.readLine());
    }
    Arrays.sort(cards, new v());

    int c = 0;
    for (int mark = 0; mark < 4; mark++) {
      for (int num = 1; num < 14; num++) {
        if (cards[c].toString().equals(marks.charAt(mark) + " " + num)){
          c++;
        } else {
          System.out.println(cards[c]);
        }
      }
    }
  }
 
  private static class Card {
    String mark;
    int num;

    Card(String str) {
      mark = str.split(" ")[0];
      num = Integer.parseInt(str.split(" ")[1]);
    }
 
    public String bySort(){
      return marks.indexOf(mark) + " " + (num < 10 ? ("0" + num) : num);
    }

    @Override
    public String toString(){
      return mark + " " + num;
    }
  }

  private static class DataComparator implements Comparator<Card>{
    @Override
    public int compare(Card c1, Card c2) {
        return c1.bySort().compareTo(c2.bySort());
    }
  }
}

Compiler output:
Main.java:16: error: cannot find symbol
    Arrays.sort(cards, new v());
                           ^
  symbol:   class v
  location: class Main
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Comparator;
  
public class Main {
  private static String marks = "SHCD";
  
  public static void main(String args[] ) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int count = Integer.parseInt(br.readLine());
    Card[] cards = new Card[count];
    for (int n = 0; n < count; n++) {
      cards[n] = new Card(br.readLine());
    }
  
    for (int mark = 0; mark < 4; mark++) {
      for (int num = 1; num < 14; num++) {
        boolean hasCard = false;
        for (int n = 0; n < count; n++) {
          if (cards[n].toString().equals(marks.charAt(mark) + " " + num)){
            hasCard = true;
          }
        }
        if (!hasCard) {
          System.out.println(marks.charAt(mark) + " " + num));
        }
      }
    }
  }
  
  private static class Card {
    String mark;
    int num;
    Card(String str) {
      mark = str.split(" ")[0];
      num = Integer.parseInt(str.split(" ")[1]);
    }
  
    public String bySort(){
      return marks.indexOf(mark) + " " + (num < 10 ? ("0" + num) : num);
    }
  
    public String toString(){
      return mark + " " + num;
    }
  }
}

Compiler output:
Main.java:26: error: ';' expected
          System.out.println(marks.charAt(mark) + " " + num));
                                                            ^
1 error
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean cards[][] = new boolean[4][13];
    cards [][] = false;
    int marknum;
    for (int i = 0; i < n; i++) {
      char mark = sc.nextInt();
      if (mark.equals("S")) {
        marknum = 0;
      }
      else if (mark.equals("H")) {
        marknum = 1;
      }
      else if (mark.equals("C")) {
        marknum = 2;
      }
      else {
        marknum = 3;
      }
      int num = sc.nextInt();
      cards[marknum][num] = true;
    }
    for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (cards[i][j]) {
          if (i == 0) {
            System.out.println("S "+ (j+1));
          }
          else if (i == 1) {
            System.out.println("H "+ (j+1));
          }
          else if (i == 2) {
            System.out.println("C "+ (j+1));
          }
          else {
            System.out.println("D "+ (j+1));
          }
        }
      }
    }
  }
}

Compiler output:
Main.java:7: error: not a statement
    cards [][] = false;
          ^
Main.java:7: error: ';' expected
    cards [][] = false;
              ^
2 errors