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

#inclue <iostream>
using namespace std;

int main()
{
    int H, W;
    
    while(true){
        cin >> H >> W;
        if( H==0 and W==0){
            break;
        }
        for(int i=0; i<H; ++i){
            for(int j=0; j<W; ++j){
                cout << '#';
            }
            cout <<endl;
        }
        cout << endl;
    }
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclue; did you mean #include?
    1 | #inclue <iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope
    9 |         cin >> H >> W;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclue <iostream>
a.cc:15:17: error: 'cout' was not declared in this scope
   15 |                 cout << '#';
      |                 ^~~~
a.cc:15:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:13: error: 'cout' was not declared in this scope
   17 |             cout <<endl;
      |             ^~~~
a.cc:17:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:20: error: 'endl' was not declared in this scope
   17 |             cout <<endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclue <iostream>
a.cc:19:9: error: 'cout' was not declared in this scope
   19 |         cout << endl;
      |         ^~~~
a.cc:19:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:17: error: 'endl' was not declared in this scope
   19 |         cout << endl;
      |                 ^~~~
a.cc:19:17: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
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==o)return 0;
        REP(i,h)
        {
            REP(j,w)cout<<"#";
            cout<<endl;
        }
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected ')' before ';' token
    9 |     while(cin>>h>>w;)
      |          ~         ^
      |                    )
a.cc:9:21: error: expected primary-expression before ')' token
    9 |     while(cin>>h>>w;)
      |                     ^
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==o)return 0;
        REP(i,h)
        {
            REP(j,w)cout<<'#';
            cout<<endl;
        }
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected ')' before ';' token
    9 |     while(cin>>h>>w;)
      |          ~         ^
      |                    )
a.cc:9:21: error: expected primary-expression before ')' token
    9 |     while(cin>>h>>w;)
      |                     ^
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==o)return 0;
        REP(i,h)
        {
            REP(j,w)cout<<'#';
            cout<<endl;
        }
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'o' was not declared in this scope
   11 |         if(h==o)return 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){
	cout << "#";
      }
      cout << endl;
    }
    cout << endl;  
    cin >> H >> W;
  }    
  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:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> H >> W;
      |   ^~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << "#";
      |         ^~~~
a.cc:13:7: error: 'cout' was not declared in this scope
   13 |       cout << endl;
      |       ^~~~
a.cc:13:15: error: 'endl' was not declared in this scope
   13 |       cout << endl;
      |               ^~~~
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout << endl;
      |     ^~~~
a.cc:15:13: error: 'endl' was not declared in this scope
   15 |     cout << endl;
      |             ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'intj' was not declared in this scope; did you mean 'int'?
   12 | for(intj = 0; j  <w; ++j)
      |     ^~~~
      |     int
a.cc:12:15: error: 'j' was not declared in this scope
   12 | for(intj = 0; j  <w; ++j)
      |               ^
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a,b;
    cin >> a >> b;
    while(!(a == 0 && b == 0)){
        for(int i = 0; i < a; i++){
            for(int j = 0; j < b; j++){
                cout << "#";
            }
            cout << endl;
        }
        cint >> a >> b;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'cint' was not declared in this scope; did you mean 'uint'?
   14 |         cint >> a >> b;
      |         ^~~~
      |         uint
Language: C++

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner( System.in );
		
		while( true ) {
			int height	= sc.nextInt();
			int width	= sc.nextInt();
			
			if (		height	== 0
					&&	width	== 0	) {
				break;
			}
			
			for (int i = 0; i < height; i++ ) {
				for ( int j = 0; j < width; j++ ) {
					System.out.print("#");
				}
				System.out.print("\n");
			}
			System.out.print("\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:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |                 scanf_s("%d %d", &h, &w);
      |                 ^~~~~~~
      |                 scanf
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++)
			{
				cout << "#";
			}
			cout << endl;
		}
	}
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:26:18: error: expected '}' at end of input
   26 |         return 0;
      |                  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

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

Compiler output:
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

#include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;

#define PI 3.14159265358979323

int main(int argc, char* argv[]) {
	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++){
				cout << "#";
			}
			cout << "\n";
		}
	}
	
	retu

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:23:9: error: 'retu' was not declared in this scope
   23 |         retu
      |         ^~~~
a.cc:23:13: error: expected '}' at end of input
   23 |         retu
      |             ^
a.cc:8:34: note: to match this '{'
    8 | int main(int argc, char* argv[]) {
      |                                  ^
Language: C++

#include<iostream>
using namespace std;
int main(void){
int w,h,a;
cin>>w>>h;
a=w;
while(1){
if(w==0&&h==0){
break;
}
for(w=a;h>0;h--){
}
for(;w>0;w--){
cout<<'#';
}
cout<<endl;
}
cout<<endl;
}
return 0;
}

Compiler output:
a.cc:20:1: error: expected unqualified-id before 'return'
   20 | return 0;
      | ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

#include <iostream>
//#include <stdio.h>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:39: error: 'count' was not declared in this scope
    9 |                 if (H == 0 && W ==0) {count << endl; break;}
      |                                       ^~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
int H, W;
int m = 0;
int n = 0;
cin >> H >> W ;

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

while ( H >= n ){
while ( W >= m ){
cout << # << endl;
m++;
}
n++;
}
return0;
}

Compiler output:
a.cc:14:9: error: stray '#' in program
   14 | cout << # << endl;
      |         ^
a.cc: In function 'int main()':
a.cc:10:24: error: break statement not within loop or switch
   10 | if( H == 0 && W == 0 ) break;
      |                        ^~~~~
a.cc:14:11: error: expected primary-expression before '<<' token
   14 | cout << # << endl;
      |           ^~
a.cc:19:1: error: 'return0' was not declared in this scope
   19 | return0;
      | ^~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
int H, W;
int m = 0;
int n = 0;
cin >> H >> W ;

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

while ( H >= n ){
while ( W >= m ){
cout << "#" ;
m++;
}
n++;
}
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: break statement not within loop or switch
   10 | if( H == 0 && W == 0 ) break;
      |                        ^~~~~
a.cc:19:1: error: 'return0' was not declared in this scope
   19 | return0;
      | ^~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
int H, W;
int m = 0;
int n = 0;
cin >> H >> W ;

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

while ( n <= H ){
while ( m <= W ){
cout << "#" ;
m++;
}
n++;
}
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: break statement not within loop or switch
   10 | if( H == 0 && W == 0 ) break;
      |                        ^~~~~
a.cc:19:1: error: 'return0' was not declared in this scope
   19 | return0;
      | ^~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
int H, W;
int m = 0;
int n = 0;
cin >> H >> W ;

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

while ( n <= H ){
while ( m <= W ){
cout << "#" ;
}
m++;
}

n++;
}
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: break statement not within loop or switch
   10 | if( H == 0 && W == 0 ) break;
      |                        ^~~~~
a.cc: At global scope:
a.cc:21:1: error: 'return0' does not name a type
   21 | return0;
      | ^~~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

int main(){
int H, W;
int m = 0;
int n = 0;
cin >> H >> W ;

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

while ( n <= H ){
while ( m <= W ){
cout << "#" <<;
m++;
}
n++;
}
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: break statement not within loop or switch
   10 | if( H == 0 && W == 0 ) break;
      |                        ^~~~~
a.cc:14:15: error: expected primary-expression before ';' token
   14 | cout << "#" <<;
      |               ^
a.cc:19:1: error: 'return0' was not declared in this scope
   19 | return0;
      | ^~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
int H, W;
int m = 0;
int n = 0;
cin >> H >> W ;

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

while ( n <= H ){
while ( m <= W ){
cout << # <<;
m++;
}
n++;
}
return0;
}

Compiler output:
a.cc:14:9: error: stray '#' in program
   14 | cout << # <<;
      |         ^
a.cc: In function 'int main()':
a.cc:10:24: error: break statement not within loop or switch
   10 | if( H == 0 && W == 0 ) break;
      |                        ^~~~~
a.cc:14:11: error: expected primary-expression before '<<' token
   14 | cout << # <<;
      |           ^~
a.cc:14:13: error: expected primary-expression before ';' token
   14 | cout << # <<;
      |             ^
a.cc:19:1: error: 'return0' was not declared in this scope
   19 | return0;
      | ^~~~~~~
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++ ) {
cout << "#" ;
}
cout << "\n";
}
cout << endl;

}
return0;
 }

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

#include <cstdio>
int main(){
 int W,H;
 while(1){
  scanf("%d %d",&W,&H);
  if(!a&&!b)break;
  for(int i=0;i<H;i++){
   for(int j=0;j<W;j++){
    putchar('#');
   }
   putchar('\n');
  }
 putchar('\n');
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 'a' was not declared in this scope
    6 |   if(!a&&!b)break;
      |       ^
a.cc:6:11: error: 'b' was not declared in this scope
    6 |   if(!a&&!b)break;
      |           ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  int flag = 1;
  int H,W;
  int i,j;

  while(1){
    if(H==0&&W==0) break;

    cin>>H>>W;
    for(i=0;i<H;i++){
      for(j=0;j<W/2;j++){
        cout<<"##"<<" ";
      }
      if(w%2==1){
        cout<<"#";
      }
      cout<<endl;
    }
    cout<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:10: error: 'w' was not declared in this scope
   17 |       if(w%2==1){
      |          ^
Language: C++

a = []
while true
  num = gets.split(" ").map(&:to_i)
  break if(num[0] == 0 && num[1] == 0)
  a.push(num)
end
a.each do |ver|
  h = ver[0]
  w = ver[1]
  h.times do
    w.downto(1) do |w|
      unless w == 1
        printf "#"
      else
        printf "#\n"
      end
    end
  end
  printf "\n"
end

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a = []
      | ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    ing w, h;
    cin >> w >> h;
    for(int a = 0; a < w; a++){ 
      if(w == 0 || h == 0)break;
       for(int b = 0; b < h; b++){
           cout << "#";
           }
        cout << endl;
    }  
    return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'ing' was not declared in this scope; did you mean 'int'?
    5 |     ing w, h;
      |     ^~~
      |     int
a.cc:6:12: error: 'w' was not declared in this scope
    6 |     cin >> w >> h;
      |            ^
a.cc:6:17: error: 'h' was not declared in this scope
    6 |     cin >> w >> h;
      |                 ^
Language: C++

#include<iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: 'b' was not declared in this scope
    9 |        for(int a = 0;a < h;b++){
      |                            ^
Language: C++

using System;

class Program
{
	static void Main()
	{
		string D;
		while ((D = Console.ReadLine()) != "0 0")
		{
			string s = "";
			string[] sD = D.Split(' ');
			int H = int.Parse(sD[0]), W = int.Parse(sD[1]);
			for (int i = 0; i < W; i++)
			{
				s += "#";
			}
			for (int i = 0; i < H; i++)
			{
				Console.WriteLine(s);
			}
			Console.WriteLine();
		}
	}
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:24:2: error: expected ';' after class definition
   24 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main()':
a.cc:7:17: error: 'string' was not declared in this scope
    7 |                 string D;
      |                 ^~~~~~
a.cc:8:25: error: 'D' was not declared in this scope
    8 |                 while ((D = Console.ReadLine()) != "0 0")
      |                         ^
a.cc:8:29: error: 'Console' was not declared in this scope
    8 |                 while ((D = Console.ReadLine()) != "0 0")
      |                             ^~~~~~~
a.cc:10:32: error: expected ';' before 's'
   10 |                         string s = "";
      |                                ^
a.cc:11:32: error: expected primary-expression before ']' token
   11 |                         string[] sD = D.Split(' ');
      |                                ^
a.cc:12:33: error: expected primary-expression before 'int'
   12 |                         int H = int.Parse(sD[0]), W = int.Parse(sD[1]);
      |                                 ^~~
a.cc:13:45: error: 'W' was not declared in this scope
   13 |                         for (int i = 0; i < W; i++)
      |                                             ^
a.cc:15:33: error: 's' was not declared in this scope
   15 |                                 s += "#";
      |                                 ^
a.cc:19:51: error: 's' was not declared in this scope
   19 |                                 Console.WriteLine(s);
      |                                                   ^
Language: C++

4 4
####
####
####
####

5 5
#####
#####
#####
#####
#####

Compiler output:
a.cc:2:1: error: stray '##' in program
    2 | ####
      | ^~
a.cc:2:3: error: stray '##' in program
    2 | ####
      |   ^~
a.cc:3:1: error: stray '##' in program
    3 | ####
      | ^~
a.cc:3:3: error: stray '##' in program
    3 | ####
      |   ^~
a.cc:4:1: error: stray '##' in program
    4 | ####
      | ^~
a.cc:4:3: error: stray '##' in program
    4 | ####
      |   ^~
a.cc:5:1: error: stray '##' in program
    5 | ####
      | ^~
a.cc:5:3: error: stray '##' in program
    5 | ####
      |   ^~
a.cc:8:1: error: stray '##' in program
    8 | #####
      | ^~
a.cc:8:3: error: stray '##' in program
    8 | #####
      |   ^~
a.cc:8:5: error: stray '#' in program
    8 | #####
      |     ^
a.cc:9:1: error: stray '##' in program
    9 | #####
      | ^~
a.cc:9:3: error: stray '##' in program
    9 | #####
      |   ^~
a.cc:9:5: error: stray '#' in program
    9 | #####
      |     ^
a.cc:10:1: error: stray '##' in program
   10 | #####
      | ^~
a.cc:10:3: error: stray '##' in program
   10 | #####
      |   ^~
a.cc:10:5: error: stray '#' in program
   10 | #####
      |     ^
a.cc:11:1: error: stray '##' in program
   11 | #####
      | ^~
a.cc:11:3: error: stray '##' in program
   11 | #####
      |   ^~
a.cc:11:5: error: stray '#' in program
   11 | #####
      |     ^
a.cc:12:1: error: stray '##' in program
   12 | #####
      | ^~
a.cc:12:3: error: stray '##' in program
   12 | #####
      |   ^~
a.cc:12:5: error: stray '#' in program
   12 | #####
      |     ^
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 4 4
      | ^
Language: C++

#inslude <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++){
        cout<<"#";
      }
      cout<<endl;
    }
    cout<<endl;
  }
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inslude; did you mean #include?
    1 | #inslude <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin >>H>>W;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inslude <iostream>
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout<<"#";
      |         ^~~~
a.cc:12:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:7: error: 'cout' was not declared in this scope
   14 |       cout<<endl;
      |       ^~~~
a.cc:14:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:13: error: 'endl' was not declared in this scope
   14 |       cout<<endl;
      |             ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inslude <iostream>
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout<<endl;
      |     ^~~~
a.cc:16:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:11: error: 'endl' was not declared in this scope
   16 |     cout<<endl;
      |           ^~~~
a.cc:16:11: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
using namespace std;
 
int main() {
  int H, W;
  // char '#';
  cin >> H >> W; // >> '#';

  while (true)
  {
    if ( h == 0 && w == 0 ) break;
    for ( int i = 0; i < h; i++ ) {
      for ( int j = 0; j < h; j++ ) {
        cout << "#";
      }
      cout << endl;
    }
    cout << endl;
    cin >> h >> w;
  }
      
 /*
  while('#' <= H) {
    while ('#' <= W) {
      cout << '#';
    }
  cout << endl;
  }
*/
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: 'h' was not declared in this scope
   11 |     if ( h == 0 && w == 0 ) break;
      |          ^
a.cc:11:20: error: 'w' was not declared in this scope
   11 |     if ( h == 0 && w == 0 ) break;
      |                    ^
a.cc:12:26: error: 'h' was not declared in this scope
   12 |     for ( int i = 0; i < h; i++ ) {
      |                          ^
a.cc:19:12: error: 'h' was not declared in this scope
   19 |     cin >> h >> w;
      |            ^
a.cc:19:17: error: 'w' was not declared in this scope
   19 |     cin >> h >> w;
      |                 ^
Language: C++

#include<iostream>

using namespace std;

int i,n,H,W;


int main(){
while(1){
cin>>H>>W;
i=0;
n=0;
if(H==0&&W==0){
break;
}

while(1){
if(n==H){
break;
}
if(i==W){
cout<<endl;
i=0;
n++;
}
cout<<#;
i++;

}

}
}

Compiler output:
a.cc:26:7: error: stray '#' in program
   26 | cout<<#;
      |       ^
a.cc: In function 'int main()':
a.cc:26:8: error: expected primary-expression before ';' token
   26 | cout<<#;
      |        ^
Language: C++

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

void pict(int H, int W){
  for(int i = 0; i < H; j++){
    for(int j = 0; j < W; j++) {
      cout << "#";
    }
    cout << endl;
  }
}

int main(){
  int H, W;

  while(1){
    cin >> H >> W;

    if (H == 0 && W ==0)  break;
    pict(H, W);
  }
}

Compiler output:
a.cc: In function 'void pict(int, int)':
a.cc:6:25: error: 'j' was not declared in this scope
    6 |   for(int i = 0; i < H; j++){
      |                         ^
Language: C++

#include <iostream>
using namespace std;
   int main(){
   int H,W,#;
   while(1) {
  cin>>x ;
     if(x==0){break ;}
    else{ cout<< x;}
   cout<<H*W<<endl;
    return 0;
}

Compiler output:
a.cc:4:12: error: stray '#' in program
    4 |    int H,W,#;
      |            ^
a.cc: In function 'int main()':
a.cc:4:13: error: expected unqualified-id before ';' token
    4 |    int H,W,#;
      |             ^
a.cc:6:8: error: 'x' was not declared in this scope
    6 |   cin>>x ;
      |        ^
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:3:14: note: to match this '{'
    3 |    int main(){
      |              ^
Language: C++

while True :
	h,w = map(int,raw_input().split())
	if h==0 and w==0:
		break
	else :
		for i in range(h):
			print '#'*w
	print''

Compiler output:
a.cc:8:14: error: empty character constant
    8 |         print''
      |              ^~
a.cc:1:1: error: expected unqualified-id before 'while'
    1 | while True :
      | ^~~~~
Language: C++

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

int main(){
int a[1000000],b[1000000],c
for(int i=1;i<1000000;i++){
cin>>a[i]>>b[i];
c++;
if(a[i]==0 && b[i]==0){
goto aa;
}
}
aa:;
for(int i=1;i<c;i++){
for(int j=0;j<b[i];j++){
for(int k=0;k<a[i];k++){
cout<<"#";
}
cout<<endl;
}
cout<<endl;
}
return 0;
}

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

int main()
{
	int H, W;

	cin >> H >> W;

	if (H == 0 && W == 0)
	{
		return 0;
	}

	for (int i = 0; i < H; i++)
	{
		for (int j = 0; j < W; j++)
		{
			cout << "#";
		}
		cout << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> H >> W;
      |         ^~~
a.cc:16:25: error: 'cout' was not declared in this scope
   16 |                         cout << "#";
      |                         ^~~~
a.cc:18:17: error: 'cout' was not declared in this scope
   18 |                 cout << endl;
      |                 ^~~~
a.cc:18:25: error: 'endl' was not declared in this scope
   18 |                 cout << endl;
      |                         ^~~~
Language: C++

include<stdio.h>
#define N 256

int main(){
  int H,W,i=0,j,k=0,m,n,o;
  int a[N],b[N];
  while(1){
    scanf("%d %d",&H,&W);
    a[i] = H;
    b[i] = W;
    if(H==0 && W==0){
      break;
    }
    i++;
    j=i;
  }
  for(m=0;m<j;m++){
    for(n=0;n<a[m];n++){
      for(o=0;o<b[m];o++){
        printf("#");
      }
      printf("\n");
    }
    printf("\n");
  }
  return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C++

#include <string>
#include <vector>
#include <iostream>

using namespace std;

string put_nchar(int n, char c)
{
	string S(n, c);

	return S;
}

void print_rectangle(int W, int H, char c)
{
	for(int i = 0; i < H; i++)
	{
		cout << put_nchar(W, c) << endl;
	}
}

int main()
{
	vector<int> W, H;

	while(true)
	{
		int W1, H1;

		cin >> W1 >> H1;

		W.push_back(W1);
		H.push_back(H1);
	}

	for(int i = 0; i < W.size(); i++)
	{
		print_rectangle(W, H, '#');

		cout << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:33: error: cannot convert 'std::vector<int>' to 'int'
   38 |                 print_rectangle(W, H, '#');
      |                                 ^
      |                                 |
      |                                 std::vector<int>
a.cc:14:26: note:   initializing argument 1 of 'void print_rectangle(int, int, char)'
   14 | void print_rectangle(int W, int H, char c)
      |                      ~~~~^
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++)
			{
				cout << '#';
			}
			
			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:5:1: note: to match this '{'
    5 | {
      | ^
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++)
			{
				cout << "#";
			}
			
			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:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include<iostream>
using namespace std;

int main(){
	int W, H;

	while (1){
		cin >> H >> W;

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

		for (int i = 0; i < H; i++){
			for (int j = 0; j < W; j++){
				
					cout << "#";
				
				}
			}
			cout << "\n";
		}

		cout << endl;
	}

	return 0;
}

Compiler output:
a.cc:25:9: error: expected unqualified-id before 'return'
   25 |         return 0;
      |         ^~~~~~
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	int a, b, i, j;
	for (cin >> a >> b){
		for (i=0;i<a;i++){
			for (j=0;j<b;j++){
				cout << "#"
			}
			cout << endl;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: expected ';' before ')' token
    6 |         for (cin >> a >> b){
      |                           ^
      |                           ;
a.cc:14:9: error: expected primary-expression before 'return'
   14 |         return 0;
      |         ^~~~~~
a.cc:13:10: error: expected ';' before 'return'
   13 |         }
      |          ^
      |          ;
   14 |         return 0;
      |         ~~~~~~
a.cc:14:9: error: expected primary-expression before 'return'
   14 |         return 0;
      |         ^~~~~~
a.cc:13:10: error: expected ')' before 'return'
   13 |         }
      |          ^
      |          )
   14 |         return 0;
      |         ~~~~~~
a.cc:6:13: note: to match this '('
    6 |         for (cin >> a >> b){
      |             ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	int a, b, i, j;
	for (cin >> a >> b){
		for (i=0;i<a;i++){
			for (j=0;j<b;j++){
				cout << "#";
			}
			cout << "\n";
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: expected ';' before ')' token
    6 |         for (cin >> a >> b){
      |                           ^
      |                           ;
a.cc:14:9: error: expected primary-expression before 'return'
   14 |         return 0;
      |         ^~~~~~
a.cc:13:10: error: expected ';' before 'return'
   13 |         }
      |          ^
      |          ;
   14 |         return 0;
      |         ~~~~~~
a.cc:14:9: error: expected primary-expression before 'return'
   14 |         return 0;
      |         ^~~~~~
a.cc:13:10: error: expected ')' before 'return'
   13 |         }
      |          ^
      |          )
   14 |         return 0;
      |         ~~~~~~
a.cc:6:13: note: to match this '('
    6 |         for (cin >> a >> b){
      |             ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	int a, b, i, j;
	for (cin >> a >> b){
		if (a != 0 || b != 0){
			for (i = 0; i < a; i++){
				for (j = 0; j < b; j++){
					cout << "#";
				}
				cout << "\n";
			}
			cout << "\n";
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: expected ';' before ')' token
    6 |         for (cin >> a >> b){
      |                           ^
      |                           ;
a.cc:17:9: error: expected primary-expression before 'return'
   17 |         return 0;
      |         ^~~~~~
a.cc:16:10: error: expected ';' before 'return'
   16 |         }
      |          ^
      |          ;
   17 |         return 0;
      |         ~~~~~~
a.cc:17:9: error: expected primary-expression before 'return'
   17 |         return 0;
      |         ^~~~~~
a.cc:16:10: error: expected ')' before 'return'
   16 |         }
      |          ^
      |          )
   17 |         return 0;
      |         ~~~~~~
a.cc:6:13: note: to match this '('
    6 |         for (cin >> a >> b){
      |             ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	int H, W, i, j;
	for (cin >> H >> W){
		if (a != 0 || b != 0){
			for (i = 0; i < a; i++){
				for (j = 0; j < b; j++){
					cout << "#";
				}
				cout << "\n";
			}
			cout << "\n";
		}
		else {
			break;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: expected ';' before ')' token
    6 |         for (cin >> H >> W){
      |                           ^
      |                           ;
a.cc:20:9: error: expected primary-expression before 'return'
   20 |         return 0;
      |         ^~~~~~
a.cc:19:10: error: expected ';' before 'return'
   19 |         }
      |          ^
      |          ;
   20 |         return 0;
      |         ~~~~~~
a.cc:20:9: error: expected primary-expression before 'return'
   20 |         return 0;
      |         ^~~~~~
a.cc:19:10: error: expected ')' before 'return'
   19 |         }
      |          ^
      |          )
   20 |         return 0;
      |         ~~~~~~
a.cc:6:13: note: to match this '('
    6 |         for (cin >> H >> W){
      |             ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	int H, W, i, j;
	H = 0;
	W = 0;
	for (cin >> H >> W){
		if (H != 0 || W != 0){
			for (i = 0; i < H; i++){
				for (j = 0; j < W; j++){
					cout << "#";
				}
				cout << "\n";
			}
			cout << "\n";
		}
		else {
			break;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: expected ';' before ')' token
    8 |         for (cin >> H >> W){
      |                           ^
      |                           ;
a.cc:22:9: error: expected primary-expression before 'return'
   22 |         return 0;
      |         ^~~~~~
a.cc:21:10: error: expected ';' before 'return'
   21 |         }
      |          ^
      |          ;
   22 |         return 0;
      |         ~~~~~~
a.cc:22:9: error: expected primary-expression before 'return'
   22 |         return 0;
      |         ^~~~~~
a.cc:21:10: error: expected ')' before 'return'
   21 |         }
      |          ^
      |          )
   22 |         return 0;
      |         ~~~~~~
a.cc:8:13: note: to match this '('
    8 |         for (cin >> H >> W){
      |             ^
Language: C++

int main(){
	int a=1,b=1,i,l;
	while(a!=0||b!=0){
		cin >>a>>b;
		if(a!=0||b!=0)
		for(i=1;i<=a;i++){
			for(l=1;l<=b;l++){
				cout<<"#";
			}
		cout <<endl<<endl;
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: 'cin' was not declared in this scope
    4 |                 cin >>a>>b;
      |                 ^~~
a.cc:8:33: error: 'cout' was not declared in this scope
    8 |                                 cout<<"#";
      |                                 ^~~~
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout <<endl<<endl;
      |                 ^~~~
a.cc:10:24: error: 'endl' was not declared in this scope
   10 |                 cout <<endl<<endl;
      |                        ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: 'n' was not declared in this scope
    4 | scanf("%d %d", &n, &w);
      |                 ^
a.cc:8:1: error: 'put' was not declared in this scope; did you mean 'putw'?
    8 | put('#');
      | ^~~
      | putw
a.cc:10:1: error: 'put' was not declared in this scope; did you mean 'putw'?
   10 | put('\n');
      | ^~~
      | putw
a.cc:12:13: error: expected ';' before '}' token
   12 | printf("\n")
      |             ^
      |             ;
   13 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: 'n' was not declared in this scope
    4 | scanf("%d %d", &n, &w);
      |                 ^
a.cc:12:13: error: expected ';' before '}' token
   12 | printf("\n")
      |             ^
      |             ;
   13 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: 'n' was not declared in this scope
    4 | scanf("%d %d", &n, &w);
      |                 ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: 'n' was not declared in this scope
   13 | scanf("%d %d", &n, &w);
      |                 ^
Language: C++

#include<iostream>
using namespace std;

int main(){

int H,W,i,j;

while(1){

cin>>H>>W;

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

for(j=0;i>W;j++){

for(i=0;i>n;i++){

cout<<#;

}

cout<<"\n";

}

cout<<"\n";

return 0;

}

Compiler output:
a.cc:18:7: error: stray '#' in program
   18 | cout<<#;
      |       ^
a.cc: In function 'int main()':
a.cc:16:11: error: 'n' was not declared in this scope
   16 | for(i=0;i>n;i++){
      |           ^
a.cc:18:8: error: expected primary-expression before ';' token
   18 | cout<<#;
      |        ^
a.cc:30:2: error: expected '}' at end of input
   30 | }
      |  ^
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)

for(j=0;i>W;j++){

for(i=0;i>n;i++){

cout<<#;

}

cout<<"\n";

}

cout<<"\n";

cout<<"\n";


}
cout<<"\n";
return 0;

}

Compiler output:
a.cc:18:7: error: stray '#' in program
   18 | cout<<#;
      |       ^
a.cc: In function 'int main()':
a.cc:16:11: error: 'n' was not declared in this scope
   16 | for(i=0;i>n;i++){
      |           ^
a.cc:18:8: error: expected primary-expression before ';' token
   18 | cout<<#;
      |        ^
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(j=0;i>W;j++){

for(i=0;i>n;i++){

cout<<#;

}

cout<<"\n";

}

cout<<"\n";

cout<<"\n";


}
cout<<"\n";
return 0;

}

Compiler output:
a.cc:18:7: error: stray '#' in program
   18 | cout<<#;
      |       ^
a.cc: In function 'int main()':
a.cc:16:11: error: 'n' was not declared in this scope
   16 | for(i=0;i>n;i++){
      |           ^
a.cc:18:8: error: expected primary-expression before ';' token
   18 | cout<<#;
      |        ^
Language: C++

#include<iostream>
using namespace std;

int main(){

int H,W,i,j,n;

while(1){

cin>>H>>W;

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

for(j=0;i>W;j++){

for(i=0;i>n;i++){

cout<<"#";

}

cout<<"\n";

}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:8:9: note: to match this '{'
    8 | while(1){
      |         ^
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
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;}
  else{
    for(i=0;i<=b;i++)
      {
	for(d=0;d<a;d++)
	  {
	    printf("#");
	  }
	printf("\n");
      }
  }
}
    return 0;
  
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: 'i' was not declared in this scope
   19 |     for(i=0;i<=b;i++)
      |         ^
Language: C++

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

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

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

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

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

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

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

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

#include<stdio.h>
int main()
{
  int h,w;
  for(i=0;i<h;i++){
    for(j=0;j<w;j++)
      printf("#");
  printf("\n");
  }
   return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: 'i' was not declared in this scope
    5 |   for(i=0;i<h;i++){
      |       ^
a.cc:6:9: error: 'j' was not declared in this scope
    6 |     for(j=0;j<w;j++)
      |         ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: expected primary-expression before ')' token
    7 |    while(){
      |          ^
Language: C++

#include <stdio.h>

int main(){

  int H,W,i,j;
  for({
    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+j)%2==0){
	    printf("#");
	      }else{
	    printf(".");
	      }
	}
      printf("\n");
      printf("\n");
      }
  }
  return 0;
}
	  

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected primary-expression before '{' token
    6 |   for({
      |       ^
a.cc:24:3: error: expected primary-expression before 'return'
   24 |   return 0;
      |   ^~~~~~
a.cc:23:4: error: expected ';' before 'return'
   23 |   }
      |    ^
      |    ;
   24 |   return 0;
      |   ~~~~~~
a.cc:24:3: error: expected primary-expression before 'return'
   24 |   return 0;
      |   ^~~~~~
a.cc:23:4: error: expected ')' before 'return'
   23 |   }
      |    ^
      |    )
   24 |   return 0;
      |   ~~~~~~
a.cc:6:6: note: to match this '('
    6 |   for({
      |      ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	int a,b;
	int i,j;
	for(;;){
	cin>>a>>b;
	
	if(a==0&&b==0){
		break;
	}
	
	for(i=0;i<a;i++){
		for(j=0;j<b;j++){
			
			cout<<'#';
			
		}
		cout<<endl;
	}
	cout<<endl;
	}
	retrun 0;
}

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

#include <iostream>
using namespace std;

int main() {
	int a,b;
	int i,j;
	for(;;){
	cin>>a>>b;
	
	if(a==0&&b==0){
		break;
	}
	
	for(i=0;i<a;i++){
		for(j=0;j<b;j++){
			
			cout<<'#';
			
		}
		cout<<endl;
	}
	}
	retrun 0;
}

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

#include<iostream>
using namespace std;
int main(){
  int H;
  int W;
  int #;
  int n;
  while(true){
    if(H==0 && W==0)break;
    cin >> H >> W;
    for(int i=1;i<=H;i++){
      #=##;
      n=#;
    }
    for(int j=1;j<=W;j++){
      cout << n << endl;
    }
  }
}

Compiler output:
a.cc:6:7: error: stray '#' in program
    6 |   int #;
      |       ^
a.cc:12:8: error: invalid preprocessing directive #=
   12 |       #=##;
      |        ^
a.cc:13:9: error: stray '#' in program
   13 |       n=#;
      |         ^
a.cc: In function 'int main()':
a.cc:6:3: error: declaration does not declare anything [-fpermissive]
    6 |   int #;
      |   ^~~
a.cc:13:10: error: expected primary-expression before ';' token
   13 |       n=#;
      |          ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int H;
  int W;
  int '#';
  int n;
  while(true){
    if(H==0 && W==0)break;
    cin >> H >> W;
    for(int i=1;i<=H;i++){
      '#'='#''#';
      n='#';
    }
    for(int j=1;j<=W;j++){
      cout << n << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected unqualified-id before '#'
    6 |   int '#';
      |       ^~~
a.cc:12:7: error: lvalue required as left operand of assignment
   12 |       '#'='#''#';
      |       ^~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  int H;
  int W;
  string '#';
  int n;
  while(true){
    if(H==0 && W==0)break;
    cin >> H >> W;
    for(int i=1;i<=H;i++){
      '#'='#''#';
      n='#';
    }
    for(int j=1;j<=W;j++){
      cout << n << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: expected unqualified-id before '#'
    7 |   string '#';
      |          ^~~
a.cc:13:7: error: lvalue required as left operand of assignment
   13 |       '#'='#''#';
      |       ^~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int H;
  int W;
  char '#';
  int n;
  while(true){
    if(H==0 && W==0)break;
    cin >> H >> W;
    for(int i=1;i<=H;i++){
      '#'='##';
      n='#';
    }
    for(int j=1;j<=W;j++){
      cout << n << endl;
    }
  }
}

Compiler output:
a.cc:12:11: warning: multi-character character constant [-Wmultichar]
   12 |       '#'='##';
      |           ^~~~
a.cc: In function 'int main()':
a.cc:6:8: error: expected unqualified-id before '#'
    6 |   char '#';
      |        ^~~
a.cc:12:7: error: lvalue required as left operand of assignment
   12 |       '#'='##';
      |       ^~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int H;
  int W;
  char '#';
  char n;
  while(true){
    if(H==0 && W==0)break;
    cin >> H >> W;
    for(int i=1;i<=H;i++){
      '#'='##';
      n='#';
    }
    for(int j=1;j<=W;j++){
      cout << n << endl;
    }
  }
}

Compiler output:
a.cc:12:11: warning: multi-character character constant [-Wmultichar]
   12 |       '#'='##';
      |           ^~~~
a.cc: In function 'int main()':
a.cc:6:8: error: expected unqualified-id before '#'
    6 |   char '#';
      |        ^~~
a.cc:12:7: error: lvalue required as left operand of assignment
   12 |       '#'='##';
      |       ^~~
Language: C++

#include<iostream>
using namespace std;

int h,w;

int main(){
 while(true){
  cin>>h>>w
  if(h==0&&w==0){
   break;
  }
  for(int j=0;j<h;j++){
   for( int i=0;i<w;i++){
    cout<<"#"
   }
   cout<<endl<<endl;
  }
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before 'if'
    8 |   cin>>h>>w
      |            ^
      |            ;
    9 |   if(h==0&&w==0){
      |   ~~        
a.cc:14:14: error: expected ';' before '}' token
   14 |     cout<<"#"
      |              ^
      |              ;
   15 |    }
      |    ~