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

const input = require('fs').readFileSync('/dev/stdin', 'utf-8').trim();
const num_pairs = input.split(/\r?\n/).map(str => str.split(" ").map(n => Number(n)));

for (let l = 0; l < num_pairs.length; l++) {
  const H = num_pairs[l][0];
  const W = num_pairs[l][1];

  if (H === 0 && W === 0) break;

  for (let i = 0; i < H; i++) {
    for (let j = 0; j < W; j++) {
      if ( (i+j) % 2 === 0) {
        process.stdout.write("#");
      } else {
        process.stdout.write(".");
      }
    }
    console.log("");
  }
  console.log(" ");
}



Compiler output:
a.cc:1:23: warning: multi-character character constant [-Wmultichar]
    1 | const input = require('fs').readFileSync('/dev/stdin', 'utf-8').trim();
      |                       ^~~~
a.cc:1:42: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    1 | const input = require('fs').readFileSync('/dev/stdin', 'utf-8').trim();
      |                                          ^~~~~~~~~~~~
a.cc:1:56: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    1 | const input = require('fs').readFileSync('/dev/stdin', 'utf-8').trim();
      |                                                        ^~~~~~~
a.cc:2:32: error: stray '\' in program
    2 | const num_pairs = input.split(/\r?\n/).map(str => str.split(" ").map(n => Number(n)));
      |                                ^
a.cc:2:35: error: stray '\' in program
    2 | const num_pairs = input.split(/\r?\n/).map(str => str.split(" ").map(n => Number(n)));
      |                                   ^
a.cc:1:7: error: 'input' does not name a type; did you mean 'int'?
    1 | const input = require('fs').readFileSync('/dev/stdin', 'utf-8').trim();
      |       ^~~~~
      |       int
a.cc:2:7: error: 'num_pairs' does not name a type
    2 | const num_pairs = input.split(/\r?\n/).map(str => str.split(" ").map(n => Number(n)));
      |       ^~~~~~~~~
a.cc:4:1: error: expected unqualified-id before 'for'
    4 | for (let l = 0; l < num_pairs.length; l++) {
      | ^~~
a.cc:4:17: error: 'l' does not name a type
    4 | for (let l = 0; l < num_pairs.length; l++) {
      |                 ^
a.cc:4:39: error: 'l' does not name a type
    4 | for (let l = 0; l < num_pairs.length; l++) {
      |                                       ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
	int h,m;
	cin>>h,m;
	for(int i=1;i<=h;i++;){
		if((i%2)==1){
			int j=0;
			while(true){
				cout<<"#";
				j++;
				if(j>=m)break;
				cout<<",";
				j++;
				if(j>=m)break;
			}
		}
		else if((i%2)==0){
			int j=0;
			while(true){
				cout<<",";
				j++;
				if(j>=m)break;
				cout<<"#";
				j++;
				if(j>=m)break;
			}
		}
	}
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:29: error: expected ')' before ';' token
    7 |         for(int i=1;i<=h;i++;){
      |            ~                ^
      |                             )
a.cc:7:30: error: expected primary-expression before ')' token
    7 |         for(int i=1;i<=h;i++;){
      |                              ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
	int h,m;
	cin>>h,m;
	while(h==0||m==0)
		for(int i=1;i<=h;i++;){
			if((i%2)==1){
				int j=0;
				while(true){
					cout<<"#";
					j++;
					if(j>=m)break;
					cout<<",";
					j++;
					if(j>=m)break;
				}
			}
			else if((i%2)==0){
				int j=0;
				while(true){
					cout<<",";
					j++;
					if(j>=m)break;
					cout<<"#";
					j++;
					if(j>=m)break;
				}
			}
		}
	cin>>h,m;
	}
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:37: error: expected ')' before ';' token
    8 |                 for(int i=1;i<=h;i++;){
      |                    ~                ^
      |                                     )
a.cc:8:38: error: expected primary-expression before ')' token
    8 |                 for(int i=1;i<=h;i++;){
      |                                      ^
a.cc: At global scope:
a.cc:34:1: error: expected declaration before '}' token
   34 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;
int main()
{
    int h,w;
    cin >> h >> w;
    while(h!=0&&w!=0)
    {
        for(int i=0;i<h;i++)
        {
            for(int j=0;j<w,j++)
            {
                if(i%2==j%2)
                {
                    cout << "#";
                }
                else
                {
                    cout <<".";
                }
            }
            cout << endl;
        }
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:32: error: expected ';' before ')' token
   11 |             for(int j=0;j<w,j++)
      |                                ^
      |                                ;
Language: C++

#include<iostream>
using namespace std;
int main()
{
    int h,w;
    cin >> h >> w;
    while(h!=0&&w!=0)
    {
        for(int i=0;i<h;i+=1)
        {
            for(int j=0;j<w,j+=1)
            {
                if(i%2==j%2)
                {
                    cout << "#";
                }
                else
                {
                    cout <<".";
                }
            }
            cout << endl;
        }
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:33: error: expected ';' before ')' token
   11 |             for(int j=0;j<w,j+=1)
      |                                 ^
      |                                 ;
Language: C++

#include<iostream>
using namespace std;
int main()
{
    int h,w;
    
    while(h!=0&&w!=0)
    {
        for(int i=0;i<h;icin >> h >> w;+=1)
        {
            for(int j=0;j<w;j+=1)
            {
                if(i%2==j%2)
                {
                    cout << "#";
                }
                else
                {
                    cout <<".";
                }
            }
            cout << endl;
        }
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: 'icin' was not declared in this scope
    9 |         for(int i=0;i<h;icin >> h >> w;+=1)
      |                         ^~~~
a.cc:9:39: error: expected ')' before ';' token
    9 |         for(int i=0;i<h;icin >> h >> w;+=1)
      |            ~                          ^
      |                                       )
a.cc:9:40: error: expected primary-expression before '+=' token
    9 |         for(int i=0;i<h;icin >> h >> w;+=1)
      |                                        ^~
Language: C++

#include<iostream>
using namespace std;
int main()
{
    int h,w;
    
    while(h!=0&&w!=0)
    {
        cin >> h >> w;
        for(int i=0;i<h;icin >> h >> w;+=1)
        {
            for(int j=0;j<w;j+=1)
            {
                if(i%2==j%2)
                {
                    cout << "#";
                }
                else
                {
                    cout <<".";
                }
            }
            cout << endl;
        }
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: 'icin' was not declared in this scope
   10 |         for(int i=0;i<h;icin >> h >> w;+=1)
      |                         ^~~~
a.cc:10:39: error: expected ')' before ';' token
   10 |         for(int i=0;i<h;icin >> h >> w;+=1)
      |            ~                          ^
      |                                       )
a.cc:10:40: error: expected primary-expression before '+=' token
   10 |         for(int i=0;i<h;icin >> h >> w;+=1)
      |                                        ^~
Language: C++

#include<iostream>
using namespace std;
int main()
{
    int h,w;
    cin >> h >> w;
    while(h!=0&&w!=0)
    {
        cin >> h >> w;
        for(int i=0;i<h;icin >> h >> w;+=1)
        {
            for(int j=0;j<w;j+=1)
            {
                if(i%2==j%2)
                {
                    cout << "#";
                }
                else
                {
                    cout <<".";
                }
            }
            cout << endl;
        }
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: 'icin' was not declared in this scope
   10 |         for(int i=0;i<h;icin >> h >> w;+=1)
      |                         ^~~~
a.cc:10:39: error: expected ')' before ';' token
   10 |         for(int i=0;i<h;icin >> h >> w;+=1)
      |            ~                          ^
      |                                       )
a.cc:10:40: error: expected primary-expression before '+=' token
   10 |         for(int i=0;i<h;icin >> h >> w;+=1)
      |                                        ^~
Language: C++

#include<iostream>
using namespace std;
int main()
{
    int h,w;
    cin >> h >> w;
    while(h!=0&&w!=0)
    {
        cin >> h >> w;
        for(int i=0;i<h;+=1)
        {
            for(int j=0;j<w;j+=1)
            {
                if(i%2==j%2)
                {
                    cout << "#";
                }
                else
                {
                    cout <<".";
                }
            }
            cout << endl;
        }
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: expected primary-expression before '+=' token
   10 |         for(int i=0;i<h;+=1)
      |                         ^~
Language: C++

#include<iostream>
using namespace std;
int main()
{
    int h,w;
    cin >> h >> w;
    while(h!=0&&w!=0)
    {
        cin >> h >> w;
        for(int i=0;i<h;i+=1)
        {
            for(int j=0;j<w;j+=1)
            {
                if(i%2==j%2)
                {
                    cout << "#";
                }
                elseif(i%2!=j%2)
                {
                    cout <<".";
                }
            }
            cout << endl;
        }
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: 'elseif' was not declared in this scope
   18 |                 elseif(i%2!=j%2)
      |                 ^~~~~~
Language: C++

#include<stdio.h>
#include<utility>


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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'while'
    8 |     while(scanf("%d %d",&h,&w) && (h != 0 || w != 0)){
      |     ^~~~~
Language: C++

#include<stdio.h>
#include<utility>


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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:28: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   12 |                     printf(c1);
      |                            ^~
      |                            |
      |                            int
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:14:28: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   14 |                     printf(c2);
      |                            ^~
      |                            |
      |                            int
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: a function-definition is not allowed here before '{' token
    7 | int main(void){
      |               ^
a.cc:33:2: error: expected '}' at end of input
   33 | }
      |  ^
a.cc:3:15: note: to match this '{'
    3 | int main(void){
      |               ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int height;
  int width;
  while(true){
    cin >> height >> width;
    if(height == 0 && width == 0)
      break;
    for (int i = 0; i < height; i++){
      for (int j = 0; j < width; j++){
        if ((i + j) % 2 == 0){
          cout << "#";
        }
        else {
          cout << ".";
        }
        count += 1;
      }
      cout << "\n";
    }
    cout << "\n";
  }
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: 'count' was not declared in this scope
   19 |         count += 1;
      |         ^~~~~
Language: C++

#include <iostream>

using  namespace std;

int main (){
	
	int H,W
	


for(int s=0;s<1000;s++){
    cin>>H>>W;
    
	
	if(H%2==0 && W%2==0){
		for(int i=0;i<H/2;i++){
			for(int i1=0;i1<W/2;i1++){
				cout<<"#.";
			}
			cout<<endl;
			
			for(int i2=0;i2<W/2;i2++){
				cout<<".#";
			}
			cout<<endl;
		}
	}
	
	if(H%2!=0 && W%2!=0){
		for(int i=0;i<H/2;i++){
			for(int i1=0;i1<W/2;i1++){
				cout<<"#.";
			}
			cout<<"#";
			cout<<endl;
			
			for(int i2=0;i2<W/2;i2++){
				cout<<".#";
			}
			cout<<"."<<endl;
		}
		
		for(int i1=0;i1<W/2;i1++){
				cout<<"#.";
			}
		cout<<endl;
		
	}
	
	if(H%2==0 && W%2!=0){
		for(int i=0;i<H/2;i++){
			for(int i1=0;i1<W/2;i1++){
				cout<<"#.";
			}
			cout<<"#";
			cout<<endl;
			
			for(int i2=0;i2<W/2;i2++){
				cout<<".#";
			}
			cout<<"."<<endl;
		}
		
		cout<<endl;
	}

	if(H%2!=0 && W%2==0){
		for(int i=0;i<H/2;i++){
			for(int i1=0;i1<W/2;i1++){
				cout<<"#.";
			}
			cout<<endl;
			
			for(int i2=0;i2<W/2;i2++){
				cout<<".#";
			}
			cout<<endl;
		}
		
		for(int i1=0;i1<W/2;i1++){
				cout<<"#.";
			}
		cout<<endl;
		
	}
	
	if(H==0 && W==0){
		s=100000000;
	}
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:1: error: expected initializer before 'for'
   11 | for(int s=0;s<1000;s++){
      | ^~~
a.cc:11:13: error: 's' was not declared in this scope
   11 | for(int s=0;s<1000;s++){
      |             ^
Language: C++

#include <iostream>

using  namespace std;

int main (){
	
	int H,W
	


for(int s=0;s<1000;s++){
    cin>>H>>W;
    
	
	if(H%2==0 && W%2==0){
		for(int i=0;i<H/2;i++){
			for(int i1=0;i1<W/2;i1++){
				cout<<"#.";
			}
			cout<<endl;
			
			for(int i2=0;i2<W/2;i2++){
				cout<<".#";
			}
			cout<<endl;
		}
	}
	
	if(H%2!=0 && W%2!=0){
		for(int i=0;i<H/2;i++){
			for(int i1=0;i1<W/2;i1++){
				cout<<"#.";
			}
			cout<<"#";
			cout<<endl;
			
			for(int i2=0;i2<W/2;i2++){
				cout<<".#";
			}
			cout<<"."<<endl;
		}
		
		for(int i1=0;i1<W/2;i1++){
				cout<<"#.";
			}
		cout<<endl;
		
	}
	
	if(H%2==0 && W%2!=0){
		for(int i=0;i<H/2;i++){
			for(int i1=0;i1<W/2;i1++){
				cout<<"#.";
			}
			cout<<"#";
			cout<<endl;
			
			for(int i2=0;i2<W/2;i2++){
				cout<<".#";
			}
			cout<<"."<<endl;
		}
		
		cout<<endl;
	}

	if(H%2!=0 && W%2==0){
		for(int i=0;i<H/2;i++){
			for(int i1=0;i1<W/2;i1++){
				cout<<"#.";
			}
			cout<<endl;
			
			for(int i2=0;i2<W/2;i2++){
				cout<<".#";
			}
			cout<<endl;
		}
		
		for(int i1=0;i1<W/2;i1++){
				cout<<"#.";
			}
		cout<<endl;
		
	}
	
	if(H==0 && W==0){
		s=100000000;
	}
}
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:1: error: expected initializer before 'for'
   11 | for(int s=0;s<1000;s++){
      | ^~~
a.cc:11:13: error: 's' was not declared in this scope
   11 | for(int s=0;s<1000;s++){
      |             ^
a.cc: At global scope:
a.cc:92:1: error: expected declaration before '}' token
   92 | }
      | ^
Language: C++

#include<stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:22:17: error: 'prifntf' was not declared in this scope; did you mean 'printf'?
   22 |                 prifntf("\n");
      |                 ^~~~~~~
      |                 printf
Language: C++

#include <iostream>
using namespace std;

int main(){
    int h,w,i;
    bool b=true;
    string ans="",temp1="",temp2="";
    while(1){
      cin>>h>>w;
      if (h==0&&w==0)break;
      else{
        for (i=0;i<w;i++){
          if (b)temp1+="#";
          else temp1+=".";
          b=!b;
        }
        b=false;
        for (i=0;i<w;i++){
          if (b)temp2+="#";
          else temp2+=".";
          b=!b;
        }
        b=true;
        for (i=0;i<h;i++){
          if (b)ans+=temp1+"\n";
          else ans+=temp2+"\n";
          b=!b;
        }
        cout << ans << endl;
        ans="";temp1="";temp2=""

    }}
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:30:33: error: expected ';' before '}' token
   30 |         ans="";temp1="";temp2=""
      |                                 ^
      |                                 ;
   31 | 
   32 |     }}
      |     ~
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: 'out' was not declared in this scope
   19 |         out<<endl;
      |         ^~~
Language: C++

#include<iostream>
using namespace std;

int main()
{
	for (;;) {
		int a, b;
		cin >> a >> b;
		if (a == 0 && b == 0) {
			break;
		}
		else {
			for (int i = 0; i < a / 2; i++) {
				for (int i = 0; i < b / 2; i++) {
					cout << "#.";
				}
				if (b % 2 == 1) {
					cout << "#";
				}
				cout << endl;
				for (int j = 0; j < b / 2; j++) {
					cout << ".#";
				}
				if (b % 2 == 1) {
					cout << ".";
				}
				cout << endl;
				if (a % 2 == 0) {
					cout << endl;
				}
			}
			if (a % 2 == 1) {
				for (int k = 0; k < b / 2; k++) {
					cout << "#.";
				}
				if (b % 2 == 1) {
					cout << "#";
				}
				cout << endl;
				cout << endl;
			}
		}
	}
}


Compiler output:
a.cc:1:1: error: stray '\177' in program
    1 | <U+007F>#include<iostream>
      | ^~~~~~~~
a.cc:1:2: error: stray '#' in program
    1 | #include<iostream>
      |  ^
a.cc:1:3: error: 'include' does not name a type
    1 | #include<iostream>
      |   ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:17: error: 'cin' was not declared in this scope
    8 |                 cin >> a >> b;
      |                 ^~~
a.cc:15:41: error: 'cout' was not declared in this scope
   15 |                                         cout << "#.";
      |                                         ^~~~
a.cc:18:41: error: 'cout' was not declared in this scope
   18 |                                         cout << "#";
      |                                         ^~~~
a.cc:20:33: error: 'cout' was not declared in this scope
   20 |                                 cout << endl;
      |                                 ^~~~
a.cc:20:41: error: 'endl' was not declared in this scope
   20 |                                 cout << endl;
      |                                         ^~~~
a.cc:34:41: error: 'cout' was not declared in this scope
   34 |                                         cout << "#.";
      |                                         ^~~~
a.cc:37:41: error: 'cout' was not declared in this scope
   37 |                                         cout << "#";
      |                                         ^~~~
a.cc:39:33: error: 'cout' was not declared in this scope
   39 |                                 cout << endl;
      |                                 ^~~~
a.cc:39:41: error: 'endl' was not declared in this scope
   39 |                                 cout << endl;
      |                                         ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,a,b) for (int i = (a); i < (b); i++)
#define REP(i,n) rep(i,0,n)
using namespace std;

int main()
{
    int h,w;
    while(cin>>h>>w)
    {
        if(h==0)return 0;
        REP(i,h)
        {
            REP(h,w)
            {
                if(i%2=0)cout<<"#"
                if(i%2=1)cout<<"."
            }
            cout<<endl;
        }
        cout<<endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:21: error: lvalue required as left operand of assignment
   16 |                 if(i%2=0)cout<<"#"
      |                    ~^~
a.cc:16:35: error: expected ';' before 'if'
   16 |                 if(i%2=0)cout<<"#"
      |                                   ^
      |                                   ;
   17 |                 if(i%2=1)cout<<"."
      |                 ~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,a,b) for (int i = (a); i < (b); i++)
#define REP(i,n) rep(i,0,n)
using namespace std;

int main()
{
    int h,w;
    while(cin>>h>>w)
    {
        if(h==0)return 0;
        REP(i,h)
        {
            REP(h,w)
            {
                if(i%2=0)cout<<"#";
                if(i%2=1)cout<<".";
            }
            cout<<endl;
        }
        cout<<endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:21: error: lvalue required as left operand of assignment
   16 |                 if(i%2=0)cout<<"#";
      |                    ~^~
a.cc:17:21: error: lvalue required as left operand of assignment
   17 |                 if(i%2=1)cout<<".";
      |                    ~^~
Language: C++

#include <iostream>

using namespace std;

int main(){
  int H,W;
  cin >> H >> W;  
  while(H != 0||W != 0){
    for(int i=0;i<H;i++){
      for(int j=0;j<W;j++){
	if(i+j%2=0){//偶奇分け
	  cout << "#";
	}else{
	  cout << ".";
	}
	if(j==W-1){
	  cout << endl;
	}
      }
    }
    cin >> H >> W;
  }
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: lvalue required as left operand of assignment
   11 |         if(i+j%2=0){//偶奇分け
      |            ~^~~~
Language: C++

#include <iostream>

using namespace std;

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



Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: lvalue required as left operand of assignment
   11 |         if(i+j%2=0){
      |            ~^~~~
Language: C++

#include<iostream>
using namespace std;
int main() {

	int H, W;
	cin >> H >> W;

	while (H != 0){

		int j, k;
		for (j = 0; j < H; j++){
			for (k = 0; k < W; k++){

				if ((k % 2 == 0 && j % 2 == 0) || (k % 2 == 1 && j % 2 == 1)cout << "#";
				else cout << ".";

			}
			cout << endl;
		}
		cout << endl;
		cin >> H >> W;
	}
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:93: error: expected ';' before 'cout'
   14 |                                 if ((k % 2 == 0 && j % 2 == 0) || (k % 2 == 1 && j % 2 == 1)cout << "#";
      |                                                                                             ^~~~
      |                                                                                             ;
a.cc:15:33: error: expected primary-expression before 'else'
   15 |                                 else cout << ".";
      |                                 ^~~~
a.cc:14:105: error: expected ')' before 'else'
   14 |                                 if ((k % 2 == 0 && j % 2 == 0) || (k % 2 == 1 && j % 2 == 1)cout << "#";
      |                                    ~                                                                    ^
      |                                                                                                         )
   15 |                                 else cout << ".";
      |                                 ~~~~
Language: C++

//Print a Chessboard

#include <iostream>
#include <cassert>

int main()
{
  while (1) {
    int height, width;
    std::cin >> height >> width;

    assert(height >= 0 && height <= 300);
    assert(width >= 0 && width <= 300);
    if (!height && !width) break;

    char color[2] = "#.";
    int  flag = 0;

    for (int h = 0; h < height; ++h) {
      flag = h % 2;
      for (int w = 0; w < width; ++w) {
        std::cout << color[flag];
        flag ^= 1;
      }
      std::cout << std::endl;
    }
    std::cout << std::endl;
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:21: error: initializer-string for 'char [2]' is too long [-fpermissive]
   16 |     char color[2] = "#.";
      |                     ^~~~
Language: C++

#include<stdio.h>

int n,m;

void proc(){
  for(int i=0;i<n;i++){
    for(int j=0;j<m;j++){
      printf("%c",((i+j)%2==0)?'#:'.');
    }
    printf("\n");
  }
  printf("\n");
}

int main(){
  while(true){
    scanf("%d%d",&n,&m);
    if(!n&&!m)return 0;
    proc();
  }
}

Compiler output:
a.cc:8:32: warning: multi-character character constant [-Wmultichar]
    8 |       printf("%c",((i+j)%2==0)?'#:'.');
      |                                ^~~~
a.cc:8:37: warning: missing terminating ' character
    8 |       printf("%c",((i+j)%2==0)?'#:'.');
      |                                     ^
a.cc:8:37: error: missing terminating ' character
    8 |       printf("%c",((i+j)%2==0)?'#:'.');
      |                                     ^~~
a.cc: In function 'void proc()':
a.cc:9:5: error: expected unqualified-id before '}' token
    9 |     }
      |     ^
a.cc:8:37: error: expected ':' before '}' token
    8 |       printf("%c",((i+j)%2==0)?'#:'.');
      |                                     ^
      |                                     :
    9 |     }
      |     ~                                
a.cc:9:5: error: expected primary-expression before '}' token
    9 |     }
      |     ^
Language: C++

#include <stdio.h>
int main(){
int h,w;
while(1){
scanf("%d",&h);scanf("%d",&w);
if(h==0&&w==0)break;

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

for(int k=1;k<=w;k++)
{
    if(i%2==1){
         if(k%2==1)printf("#");
         else printf(".");
          }else){
if(k%2==1)printf(".");
else printf("#");
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:16: error: expected primary-expression before ')' token
   16 |           }else){
      |                ^
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:2:11: note: to match this '{'
    2 | int main(){
      |           ^
Language: C++

#include<stdio.h>

int main(void)
{
int i,j,a,b;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: expected primary-expression before ';' token
   12 | for(i=1;i<a=;i++){
      |             ^
Language: C++

#include<iostream>
using namespace std;

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'i' was not declared in this scope
    9 |     for(i = 1; i <= H; i++){
      |         ^
a.cc:10:11: error: 'j' was not declared in this scope
   10 |       for(j = 1; j <= W; j++){
      |           ^
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: lvalue required as left operand of assignment
   11 |         if((i+j)%2=0){
      |            ~~~~~^~
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected primary-expression before '{' token
   11 |         if({i+j}%2=0){
      |            ^
a.cc:11:12: error: expected ')' before '{' token
   11 |         if({i+j}%2=0){
      |           ~^
      |            )
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

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

  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: lvalue required as left operand of assignment
   11 |         if((i+j)%2=0){
      |            ~~~~~^~
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

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

  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: lvalue required as left operand of assignment
   11 |         if((i+j)%2=0){
      |            ~~~~~^~
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

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

  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: lvalue required as left operand of assignment
   11 |         if((i+j)%2=0){
      |            ~~~~~^~
Language: C++

#include<iostream>
using namespace std;

int main(){
   int h, w;
   while(1){
   cin >> h >> w;
   if( h == 0 && w == 0) break;
   for(int a = 0;a < h; a++){
    for(int b = 0; b < w; b++){
     if(a % 2 == 0){
      if( b % 2 == 0) cout << "#";
      else cout << ".";
     } else{
        if(b % 2  == 0) cout << ".";
        else cout << "#";
     }
    }
   cout << endl;
   }
  cout << ednl;
 }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:11: error: 'ednl' was not declared in this scope
   21 |   cout << ednl;
      |           ^~~~
Language: C++

#include<iostream>

template<typename T>
T input(){
  T t;
  std::cin >> t;
  return t;
}

int main(){
  while(true){
    const auto H = input<int>();
    const auto W = input<int>();
    if(H == 0 && W == 0)
      return 0;
    for(int i = 0; i < H; ++i){
      for(int j = 0; j < w; ++j)
        std::cout << ((i + j) % 2 == 0 ? '#' : '.');
      std::cout << std::endl;
    }
    std::cout << std::endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:26: error: 'w' was not declared in this scope
   17 |       for(int j = 0; j < w; ++j)
      |                          ^
Language: C++

include<iostream>
using namespace std;

int main(){
  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 << "\n";
}
    cout << endl;
   }
     return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:7: error: 'cin' was not declared in this scope
    8 |       cin >> H >> W;
      |       ^~~
a.cc:14:18: error: 'cout' was not declared in this scope
   14 |                  cout << "#";
      |                  ^~~~
a.cc:16:13: error: 'cout' was not declared in this scope
   16 |             cout << ".";
      |             ^~~~
a.cc:19:5: error: 'cout' was not declared in this scope
   19 |     cout << "\n";
      |     ^~~~
a.cc:21:5: error: 'cout' was not declared in this scope
   21 |     cout << endl;
      |     ^~~~
a.cc:21:13: error: 'endl' was not declared in this scope
   21 |     cout << endl;
      |             ^~~~
Language: C++

#include<iostream>
 using namespace std;
 int main(){
 int H,W,a,b,c,d,e=0,i,j;
	while(cin>>H){
		cin>>W;
		if(W==0&&H==0){
			break;		
		}
		
		a=H%2;
		b=H/2;
		c=W%2;
		d=W/2;
		if(W==1&&H==1){
			cout<<'#'<<endl;
			a=0;
			b=0;
			c=0;
			d=0;
		}
		for(j=0;j<b;j++){

			for(i=0;i<d;i++){
				cout<<'#'<<'.';
			}
			if(c==1){
				cout<<'#';		
			}
			e++;
			cout<<endl;

				if(d==H){}
			for(i=0;i<d;i++){
				cout<<'.'<<'#';
			}
			if(c==1){
				cout<<'.';		
			}
			e++;
			cout<<endl;
		}
		if(a==1){
			for(i=0;i<d;i++){
					cout<<'#'<<'.';
				}
				if(c==1){
					cout<<'#';		
				}
			cout<<endl;
		}
	}
}return 0;

Compiler output:
a.cc:53:2: error: expected unqualified-id before 'return'
   53 | }return 0;
      |  ^~~~~~
Language: C++

#include <iostream>
using namespace std;

void chss(int H, int W){
  for (int i = 0; i < H; i++) {
    for(int j = 0; j < W; j++) {
     if((i + j) % 2 == 0){
       cout << "#";
     }else{
       cout << "."
     }
    } 
    cout << endl;     
  }
}

int main(){
  int H,W;

  while(1){
    cin >> H >> W;
    if(H == 0 && W == 0) return 0;
    
    chss(H, W);
    cout << endl;
  }
}

Compiler output:
a.cc: In function 'void chss(int, int)':
a.cc:10:19: error: expected ';' before '}' token
   10 |        cout << "."
      |                   ^
      |                   ;
   11 |      }
      |      ~
Language: C++

#include <cstdio>
using namespace std;

void ch(int H, int W){
  for (int i = 0; i < H; ++i) {
    for(int j = 0; j < W; ++j) {
     if((i + j) % 2 == 0){
       printf('#');
     }else{
       printf('.');
     }
    } 
    printf("\n");     
  }
}

int main(){
  int H,W;

  while(1){
    scanf("%d%d", &H,&W); 
    if(H == 0 && W == 0) return 0;
    
    ch(H, W);
    printf("\n");
  }
}

Compiler output:
a.cc: In function 'void ch(int, int)':
a.cc:8:15: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    8 |        printf('#');
      |               ^~~
      |               |
      |               char
In file included from /usr/include/c++/14/cstdio:42,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:10:15: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   10 |        printf('.');
      |               ^~~
      |               |
      |               char
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

inlude <iostream>
using namespace srd;

int main(){
	int h,w;
	cin >> h>>w;
	if((h+w) % 2 == 0){
	cout << "#" << endl;
	}else{
	cout << "." << endl;
	}
}

Compiler output:
a.cc:1:1: error: 'inlude' does not name a type; did you mean 'inline'?
    1 | inlude <iostream>
      | ^~~~~~
      | inline
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> h>>w;
      |         ^~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << "#" << endl;
      |         ^~~~
a.cc:8:24: error: 'endl' was not declared in this scope
    8 |         cout << "#" << endl;
      |                        ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << "." << endl;
      |         ^~~~
a.cc:10:24: error: 'endl' was not declared in this scope
   10 |         cout << "." << endl;
      |                        ^~~~
Language: C++

#inlude <iostream>
using namespace srd;

int main(){
	int h,w;
	cin >> h>>w;
	if((h+w) % 2 == 0){
	cout << "#" << endl;
	}else{
	cout << "." << endl;
	}
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude <iostream>
      |  ^~~~~~
      |  include
a.cc:2:17: error: 'srd' is not a namespace-name
    2 | using namespace srd;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> h>>w;
      |         ^~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << "#" << endl;
      |         ^~~~
a.cc:8:24: error: 'endl' was not declared in this scope
    8 |         cout << "#" << endl;
      |                        ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << "." << endl;
      |         ^~~~
a.cc:10:24: error: 'endl' was not declared in this scope
   10 |         cout << "." << endl;
      |                        ^~~~
Language: C++

#inlude <iostream>
using namespace srd;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude <iostream>
      |  ^~~~~~
      |  include
a.cc:2:17: error: 'srd' is not a namespace-name
    2 | using namespace srd;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> h>>w;
      |         ^~~
a.cc:9:20: error: expected ')' before '{' token
    9 | if(((i+j) % 2 == 0){
      |   ~                ^
      |                    )
a.cc:13:10: error: expected primary-expression before '}' token
   13 |         }}
      |          ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	int h,w,ch=1;
	while(1){
		cin>>h>>w;
		if(h==0)
			break;
		for(int i=1; i<=h; i++){
			for(int j=1; j<=w; j++){
				if(ch==1){
					cout<<'#';
					ch=0;
				}
				else{
					cout<<'.';
					ch=1;
				}
			}
			if(i%2)
				ch=0;
			else
				ch=1
			cout<<'\n';
		}
		ch=1;
		cout<<'\n';
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:37: error: expected ';' before 'cout'
   24 |                                 ch=1
      |                                     ^
      |                                     ;
   25 |                         cout<<'\n';
      |                         ~~~~
Language: C++

#.#.#.#.#.
.#.#.#.#.#
#.#.#.#.#.
.#.#.#.#.#
#.#.#.#.#.
.#.#.#.#.#

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #.
    1 | #.#.#.#.#.
      |  ^
a.cc:2:2: error: stray '#' in program
    2 | .#.#.#.#.#
      |  ^
a.cc:2:4: error: stray '#' in program
    2 | .#.#.#.#.#
      |    ^
a.cc:2:6: error: stray '#' in program
    2 | .#.#.#.#.#
      |      ^
a.cc:2:8: error: stray '#' in program
    2 | .#.#.#.#.#
      |        ^
a.cc:2:10: error: stray '#' in program
    2 | .#.#.#.#.#
      |          ^
a.cc:3:2: error: invalid preprocessing directive #.
    3 | #.#.#.#.#.
      |  ^
a.cc:4:2: error: stray '#' in program
    4 | .#.#.#.#.#
      |  ^
a.cc:4:4: error: stray '#' in program
    4 | .#.#.#.#.#
      |    ^
a.cc:4:6: error: stray '#' in program
    4 | .#.#.#.#.#
      |      ^
a.cc:4:8: error: stray '#' in program
    4 | .#.#.#.#.#
      |        ^
a.cc:4:10: error: stray '#' in program
    4 | .#.#.#.#.#
      |          ^
a.cc:5:2: error: invalid preprocessing directive #.
    5 | #.#.#.#.#.
      |  ^
a.cc:6:2: error: stray '#' in program
    6 | .#.#.#.#.#
      |  ^
a.cc:6:4: error: stray '#' in program
    6 | .#.#.#.#.#
      |    ^
a.cc:6:6: error: stray '#' in program
    6 | .#.#.#.#.#
      |      ^
a.cc:6:8: error: stray '#' in program
    6 | .#.#.#.#.#
      |        ^
a.cc:6:10: error: stray '#' in program
    6 | .#.#.#.#.#
      |          ^
a.cc:2:1: error: expected unqualified-id before '.' token
    2 | .#.#.#.#.#
      | ^
Language: C++

#define _USE_MATH_DEFINES 
#include <cmath>
#include<iostream>
#include<iomanip>
#include<cstdio>
#include<string>
#define rep(i,n) for(int i=0;i<n;i++)
#define and &&
#define or ||
#define Lb cout<<endl
using namespace std;

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

Compiler output:
a.cc:8:9: error: "and" cannot be used as a macro name as it is an operator in C++
    8 | #define and &&
      |         ^~~
a.cc:9:9: error: "or" cannot be used as a macro name as it is an operator in C++
    9 | #define or ||
      |         ^~
Language: C++

while 1:
   H, W = map(int,raw_input().split())
 
   if H ==0 and W == 0:
      break
   for i in range(H):
      if i%2==0:
        if W%2==0:
           print "#."*(W/2)
        elif W%2==1:
           print "#."*(W/2)+"#"
      elif i%2==1:
         if W%2==0:
            print ".#"*(W/2)
         elif W%2==1:
            print ".#"*(W/2)+"."
   print ""

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'while'
    1 | while 1:
      | ^~~~~
Language: C++

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

int main(){
	int h,w;
	cin >> h >> w;
	while(h!=0 || w!=0){
		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;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:41: error: lvalue required as left operand of assignment
   11 |                                 if((i+j)%2=0){
      |                                    ~~~~~^~
Language: C++

#include <iostream>
using namespace std;
int HW(int H,int W);
int main()
{
int h,w;
while(1)
{
cin>>h>>w;
if(h==0&&w==0)break;
HW(h,w);
}
return 0;
}

int HW(int H,int W)
{
int i=1;
for(int a=0;a<H;a++;){
    for(int b=0; b<W;b++;){
    int ii=1;
    if(i%2==1){
        if(ii%2==1){
            cout<<"#";
        }else{
            cout<<".";
        }
    }else{
        if(ii%2==1){
            cout<<".";
        }else{
            cout<<"#";
        }
    }
    ii+=1;
    }
i+=1;
cout<<endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int HW(int, int)':
a.cc:19:20: error: expected ')' before ';' token
   19 | for(int a=0;a<H;a++;){
      |    ~               ^
      |                    )
a.cc:19:21: error: expected primary-expression before ')' token
   19 | for(int a=0;a<H;a++;){
      |                     ^
Language: C++

#include <iostream>
using namespace std;
int HW(int H,int W);
int main()
{
int h,w,x;
while(1)
{
cin>>h>>w;
if(h==0&&w==0)break;
x=HW(h,w);
}
return 0;
}

int HW(int H,int W)
{
int i=1;
for(int a=0;a<H;a++;){
    for(int b=0;b<W;b++;){
    int ii=1;
    if(i%2==1){
        if(ii%2==1){
            cout<<"#";
        }else{
            cout<<".";
        }
    }else{
        if(ii%2==1){
            cout<<".";
        }else{
            cout<<"#";
        }
    }
    ii+=1;
    }
i+=1;
cout<<endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int HW(int, int)':
a.cc:19:20: error: expected ')' before ';' token
   19 | for(int a=0;a<H;a++;){
      |    ~               ^
      |                    )
a.cc:19:21: error: expected primary-expression before ')' token
   19 | for(int a=0;a<H;a++;){
      |                     ^
Language: C++

#include <iostream>
using namespace std;
int HW(int H,int W);
int main(void)
{
int h,w,x;
while(1)
{
cin>>h>>w;
if(h==0&&w==0)break;
x=HW(h,w);
}
return 0;
}

int HW(int H,int W)
{
int i=1;
for(int a=0;a<H;a++;){
    for(int b=0;b<W;b++;){
    int ii=1;
    if(i%2==1){
        if(ii%2==1){
            cout<<"#";
        }else{
            cout<<".";
        }
    }else{
        if(ii%2==1){
            cout<<".";
        }else{
            cout<<"#";
        }
    }
    ii+=1;
    }
i+=1;
cout<<endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int HW(int, int)':
a.cc:19:20: error: expected ')' before ';' token
   19 | for(int a=0;a<H;a++;){
      |    ~               ^
      |                    )
a.cc:19:21: error: expected primary-expression before ')' token
   19 | for(int a=0;a<H;a++;){
      |                     ^
Language: C++

#include <iostream>
using namespace std;
int HW(int H,int W);
int main(void)
{
int h,w,x;
while(1)
{
cin>>h>>w;
if(h==0 && w==0)break;
x=HW(h,w);
}
return 0;
}

int HW(int H,int W)
{
int i=1;
for(int a=0;a<H;a++;){
    for(int b=0;b<W;b++;){
    int ii=1;
    if(i%2==1){
        if(ii%2==1){
            cout<<"#";
        }else{
            cout<<".";
        }
    }else{
        if(ii%2==1){
            cout<<".";
        }else{
            cout<<"#";
        }
    }
    ii+=1;
    }
i+=1;
cout<<endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int HW(int, int)':
a.cc:19:20: error: expected ')' before ';' token
   19 | for(int a=0;a<H;a++;){
      |    ~               ^
      |                    )
a.cc:19:21: error: expected primary-expression before ')' token
   19 | for(int a=0;a<H;a++;){
      |                     ^