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

#include<iostream>

using namespace std;

void main() {

	int i=0, n,h,w,m=-1;
	int H[300], W[300];

	do {

		m = m + 1;
		cin >> H[m] >> W[m];

	} while (H[m] != 0 && W[m] != 0);

	do {

		h = H[i];
		w = W[i];

		if (h == 0 && w == 0) {
			break;
		}

		else {

			for (n = 0; n < h; n++) {

				for (int i = 0; i < w; i++) {

					cout << "#";

				}
				cout << endl;
			}

			cout << endl << endl;

			i++;

		}
	} while (i);

}

Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | void main() {
      | ^~~~
Language: C++

include<iostream>
using namespace std;

int main(){
  int H,W;
  while(1){
    cin >> H >> W >> endl;
    for(int i = 0; i < H; i++){
      for(int j = 0; j < W; j++){
        cout << "#";
      }
      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:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> H >> W >> endl;
      |     ^~~
a.cc:7:22: error: 'endl' was not declared in this scope
    7 |     cin >> H >> W >> endl;
      |                      ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << "#";
      |         ^~~~
a.cc:12:7: error: 'cout' was not declared in this scope
   12 |       cout << endl;
      |       ^~~~
Language: C++

#include<stdio.h>
#include<iostream>
using namespace std;
int main(){
	int H, W = 0;
	int i, j;
	cin >> H >> W;
	for ()
	for (i = 0; H > i; i++){
		for (j = 0; W > j; j++){
			cout << "#";
		}
		cout << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected primary-expression before ')' token
    8 |         for ()
      |              ^
Language: C++

#include<iostream>
#include<cstdio>
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 << emdl;
	}
return 0;
}

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

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

 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'w' was not declared in this scope
    8 |   for( w = 0; w < W; w++;){
      |        ^
a.cc:8:25: error: expected ')' before ';' token
    8 |   for( w = 0; w < W; w++;){
      |      ~                  ^
      |                         )
a.cc:8:26: error: expected primary-expression before ')' token
    8 |   for( w = 0; w < W; w++;){
      |                          ^
Language: C++

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

 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: expected ')' before ';' token
    8 |   for( w = 0; w < W; w++;){
      |      ~                  ^
      |                         )
a.cc:8:26: error: expected primary-expression before ')' token
    8 |   for( w = 0; w < W; w++;){
      |                          ^
Language: C++

#include<stdio.h>

int main() {
	int H, W, i, j;
	scanf_s("%d %d", &H, &W);

	for (i = 1; i <= H; i++) {
		for (j = 1; j <= W; j++) {
			printf("#");
		}
		printf("\n");
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 |         scanf_s("%d %d", &H, &W);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<stdio.h>

int main(void) {
	int H, W, i, j;
	scanf_s("%d %d", &H, &W);

	for (i = 1; i <= H; i++) {
		for (j = 1; j <= W; j++) {
			printf("#");
		}
		printf("\n");
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 |         scanf_s("%d %d", &H, &W);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<cstdio>

int main(void) {
	int H, W, i, j;
	scanf_s("%d %d", &H, &W);

	for (i = 1; i <= H; i++) {
		for (j = 1; j <= W; j++) {
			printf("#");
		}
		printf("\n");
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 |         scanf_s("%d %d", &H, &W);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<cstdio>

int main(void) {
	int H, W, i, j;
	scanf_s("%d %d", &H, &W);

	for (i = 1; i <= H; i++) {
		for (j = 1; j <= W; j++) {
			printf("#");
		}
		printf("\n");
	}
	printf("\n");

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 |         scanf_s("%d %d", &H, &W);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;
int main(){
    while(true){
        int H,W;
        cin >> H >>W;
        
        if(H==0 && W==0)break;
        for(int y=0;y<H;y++){
            for(int x=0;x<W;x++){
                printf("#");
            }
            printf("\n");
        }
		printf("\n")
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:29: error: expected ';' before '}' token
   16 |                 printf("\n")
      |                             ^
      |                             ;
   17 |     }
      |     ~
Language: C++

#include<stdio.h>
int main(void){

int H,W,i,t;

for(;;){
scanf("%d %d",&H,&W);

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


	for(i=1;i<=H;i++){
		
		for(t=1;t<=W;t++){
			printf("#");
		}

		printf("\n");
	}
	print("\n");
}

 return 0;
}

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

#include<iostream>
using namespace std;
void output(){
    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<<"#"<<endl;
            }cout<<"\n";
        }cout<<endl;
    }return 0;
}
int main(){
output();}

Compiler output:
a.cc: In function 'void output()':
a.cc:13:13: error: return-statement with a value, in function returning 'void' [-fpermissive]
   13 |     }return 0;
      |             ^
Language: C++

#include<iostream>
using namespace std;

int main(){

int H,W;
char #;
cin >>H >>W
for(int i=0;i<H;i++){
for(int j=0;j<W;j++){
cout <<'#'<<endl;
}
}
return 0;
}

Compiler output:
a.cc:7:6: error: stray '#' in program
    7 | char #;
      |      ^
a.cc: In function 'int main()':
a.cc:7:1: error: declaration does not declare anything [-fpermissive]
    7 | char #;
      | ^~~~
a.cc:8:12: error: expected ';' before 'for'
    8 | cin >>H >>W
      |            ^
      |            ;
    9 | for(int i=0;i<H;i++){
      | ~~~         
a.cc:9:13: error: 'i' was not declared in this scope
    9 | for(int i=0;i<H;i++){
      |             ^
Language: C++

#include<iostream>
using namespace std;
??
int main(){
??
int H,W;
cin >>H >>W
for(int i=0;i<H;i++){
for(int j=0;j<W;j++){
if(H==0&&W==0)break;
cout <<'#';
}
cout <<"\n";}
return 0;
}

Compiler output:
a.cc:3:1: error: expected unqualified-id before '?' token
    3 | ??
      | ^
Language: C++

using System;

public class Test
{
	public static void Main()
	{
            string[] data;
            int H, W;
            while(true){
                data = Console.ReadLine().Split();
                if (int.Parse(data[0])== 0 && int.Parse(data[1]) == 0)
                {
                    break;
                }

                for (H = int.Parse(data[0]); H > 0; H--)
                {
                    for (W = int.Parse(data[1]); W > 0; W--)
                    {
                        Console.Write("#");
                    }
                    Console.WriteLine();
                }
            }
	}
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Test
      | ^~~~~~
Language: C++

using System;

public class Test
{
	public static void Main()
	{
            string[] data;
            int H, W;
            while(true){

                data = Console.ReadLine().Split();
                if (int.Parse(data[0])== 0 && int.Parse(data[1]) == 0)
                {
                    break;
                }

                for (H = int.Parse(data[0]); H > 0; H--)
                {
                    for (W = int.Parse(data[1]); W > 0; W--)
                    {
                        Console.Write("#");
                    }
                    Console.WriteLine();
                }
            }
	}
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Test
      | ^~~~~~
Language: C++

int main(){
int i,x,y;
scanf("%d %d",&x,&y);
for(i=1;i<y;i++){
for(i=1;i<x;i++){
printf("#");
}






}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'scanf' was not declared in this scope
    3 | scanf("%d %d",&x,&y);
      | ^~~~~
a.cc:6:1: error: 'printf' was not declared in this scope
    6 | printf("#");
      | ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
Language: C++

int main()
{
  int ("%d%d",&W,&H)  
   for('') 
    {if ( w == 0 && H ==0)break;
    for(i = 0; i < H; i++){
      for(j = 0; j < W; j++){
    printf("#");
      }
      printf("\n");
    }
  printf("\n"); 
    }

Compiler output:
a.cc:4:8: error: empty character constant
    4 |    for('')
      |        ^~
a.cc: In function 'int main()':
a.cc:3:16: error: 'W' was not declared in this scope
    3 |   int ("%d%d",&W,&H)
      |                ^
a.cc:3:19: error: 'H' was not declared in this scope
    3 |   int ("%d%d",&W,&H)
      |                   ^
a.cc:3:20: error: expression list treated as compound expression in functional cast [-fpermissive]
    3 |   int ("%d%d",&W,&H)
      |                    ^
a.cc:13:6: error: expected '}' at end of input
   13 |     }
      |      ^
a.cc:2:1: note: to match this '{'
    2 | {
      | ^
Language: C++

int main()
{
  int ("%d%d",&W,&H)  ;
   for(;;) 
    {if ( W == 0 && H ==0)break;
    for(i = 0; i < H; i++){
      for(j = 0; j < W; j++){
    printf("#");
      }
      printf("\n");
    }
  printf("\n"); 
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:3:16: error: 'W' was not declared in this scope
    3 |   int ("%d%d",&W,&H)  ;
      |                ^
a.cc:3:19: error: 'H' was not declared in this scope
    3 |   int ("%d%d",&W,&H)  ;
      |                   ^
a.cc:3:20: error: expression list treated as compound expression in functional cast [-fpermissive]
    3 |   int ("%d%d",&W,&H)  ;
      |                    ^
a.cc:6:9: error: 'i' was not declared in this scope
    6 |     for(i = 0; i < H; i++){
      |         ^
a.cc:7:11: error: 'j' was not declared in this scope
    7 |       for(j = 0; j < W; j++){
      |           ^
a.cc:8:5: error: 'printf' was not declared in this scope
    8 |     printf("#");
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
a.cc:10:7: error: 'printf' was not declared in this scope
   10 |       printf("\n");
      |       ^~~~~~
a.cc:10:7: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:12:3: error: 'printf' was not declared in this scope
   12 |   printf("\n");
      |   ^~~~~~
a.cc:12:3: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:13:6: error: expected '}' at end of input
   13 |     }
      |      ^
a.cc:2:1: note: to match this '{'
    2 | {
      | ^
Language: C++

int main()
{
  int ("%d%d",&W,&H)  ;
   for(;;) 
    {if ( W == 0 && H ==0)break;
    for(i = 0; i < H; i++){
      for(j = 0; j < W; j++){
    printf("#");
      }
      printf("\n");
    }
  printf("\n"); 
    }}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:16: error: 'W' was not declared in this scope
    3 |   int ("%d%d",&W,&H)  ;
      |                ^
a.cc:3:19: error: 'H' was not declared in this scope
    3 |   int ("%d%d",&W,&H)  ;
      |                   ^
a.cc:3:20: error: expression list treated as compound expression in functional cast [-fpermissive]
    3 |   int ("%d%d",&W,&H)  ;
      |                    ^
a.cc:6:9: error: 'i' was not declared in this scope
    6 |     for(i = 0; i < H; i++){
      |         ^
a.cc:7:11: error: 'j' was not declared in this scope
    7 |       for(j = 0; j < W; j++){
      |           ^
a.cc:8:5: error: 'printf' was not declared in this scope
    8 |     printf("#");
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
a.cc:10:7: error: 'printf' was not declared in this scope
   10 |       printf("\n");
      |       ^~~~~~
a.cc:10:7: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:12:3: error: 'printf' was not declared in this scope
   12 |   printf("\n");
      |   ^~~~~~
a.cc:12:3: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

int main()
{
   int W,H,i,j ;
  scanf ("%d%d",&W,&H) ;
  for (;;){if (W==0 && H ==0)break;} 
    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:4:3: error: 'scanf' was not declared in this scope
    4 |   scanf ("%d%d",&W,&H) ;
      |   ^~~~~
a.cc:7:30: error: 'printf' was not declared in this scope
    7 |       for(j = 0; j < W; j++){printf("#");}
      |                              ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
a.cc:8:7: error: 'printf' was not declared in this scope
    8 |       printf("\n");
      |       ^~~~~~
a.cc:8:7: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include<stdio.h>
#include<iostream>
using namespace std;
int main() {
	int i,j,x, y;
	i = 0;
	j = 0;
	while (1)
	{
		cin >> x >> y;
		if (x == 0&&y == 0) {
			break;
		}
			while (i == x) 
			{
				while (j == y)
				{
					cout << "#";
					j++;
				}
				cout << endl;
				i++;
				j = 0;
			}
                    }
	}
	return 0;
}

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

#include <iostream>

int main()
{

  for ( ; ; ) {
    int h, w ;

    std::cin >> h >> w ;

    if ( h == 0 && w == 0 )
      return 0 ;

    for ( int i = 0 ; i < h ; ++i ) {
      for ( int j = 0 ; j < w ; ++j ) {
        std::cout << "#" ;
      }
      std::cout << std::endl ;
    }

    std::endl ;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:15: error: statement cannot resolve address of overloaded function
   21 |     std::endl ;
      |               ^
Language: C++

while True:
        H, W = map(int, input().split())

        if H == 0 & W == 0:
                break

        countW, countH = 0, 0

        while True:
                if countH == H:
                        break
                while True:
                        if countW == W:
                                print('\n',end='')
                                countW = 0
                                break
                        print('#',end='')
                        countW += 1
                countH += 1

Compiler output:
a.cc:14:48: error: empty character constant
   14 |                                 print('\n',end='')
      |                                                ^~
a.cc:17:39: error: empty character constant
   17 |                         print('#',end='')
      |                                       ^~
a.cc:1:1: error: expected unqualified-id before 'while'
    1 | while True:
      | ^~~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc:21:31: warning: missing terminating ' character
   21 |                 cout << '\n'<<'\n;
      |                               ^
a.cc:21:31: error: missing terminating ' character
   21 |                 cout << '\n'<<'\n;
      |                               ^~~~
a.cc: In function 'int main()':
a.cc:22:9: error: expected primary-expression before '}' token
   22 |         }
      |         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:40: error: no match for 'operator=' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [2]')
   14 |                                 cout = "#";
      |                                        ^~~
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:458:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator=(std::basic_ostream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]'
  458 |       operator=(basic_ostream&& __rhs)
      |       ^~~~~~~~
/usr/include/c++/14/ostream:458:33: note:   no known conversion for argument 1 from 'const char [2]' to 'std::basic_ostream<char>&&'
  458 |       operator=(basic_ostream&& __rhs)
      |                 ~~~~~~~~~~~~~~~~^~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
	int i,j,H,W; //input
	while(1)
	{
		cin >> H >> W;
		if( (H==0) && (W==0)) break; //??????????????????????????????????????????????????¶
		for ( i=0; i<H; i++); //???????????????
		{
			for ( j=0; j<W; j++); //?¨?????????????
			{
				cout = '#';
			}
			cout << endl; //?¨?????????????????????????????????????????????????
		}
		cout << endl; //????¨??????¨????????????????????????????????£????????§??????????????????
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:40: error: no match for 'operator=' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'char')
   14 |                                 cout = '#';
      |                                        ^~~
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:458:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator=(std::basic_ostream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]'
  458 |       operator=(basic_ostream&& __rhs)
      |       ^~~~~~~~
/usr/include/c++/14/ostream:458:33: note:   no known conversion for argument 1 from 'char' to 'std::basic_ostream<char>&&'
  458 |       operator=(basic_ostream&& __rhs)
      |                 ~~~~~~~~~~~~~~~~^~~~~
Language: C++

include<iostream>
using namespace std;
#define PI 3.141592653589
 
int main()
{
    int i,j,H,W;
    while(1)
    {
        cin >> H >> W ;
        if((H == 0)&& (W == 0)) break;
 
        for(i=0;i<H;i++)
        {
            for(j=0;j<W;j++)
            {
                cout << '#' ;
            }
            cout << endl ;
        }
 
        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:10:9: error: 'cin' was not declared in this scope
   10 |         cin >> H >> W ;
      |         ^~~
a.cc:17:17: error: 'cout' was not declared in this scope
   17 |                 cout << '#' ;
      |                 ^~~~
a.cc:19:13: error: 'cout' was not declared in this scope
   19 |             cout << endl ;
      |             ^~~~
a.cc:19:21: error: 'endl' was not declared in this scope
   19 |             cout << endl ;
      |                     ^~~~
a.cc:22:9: error: 'cout' was not declared in this scope
   22 |         cout << endl ;
      |         ^~~~
a.cc:22:17: error: 'endl' was not declared in this scope
   22 |         cout << endl ;
      |                 ^~~~
Language: C++

include<iostream>
using namespace std;
#define PI 3.141592653589
int main()
{
    int i,j,H,W;
    while(1)
    {
        cin >> H >> W ;
        if((H == 0)&& (W == 0)) break;
 
        for(i=0;i<H;i++)
        {
            for(j=0;j<W;j++)
            {
                cout << '#' ;
            }
            cout << endl ;
        }
 
        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:9:9: error: 'cin' was not declared in this scope
    9 |         cin >> H >> W ;
      |         ^~~
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << '#' ;
      |                 ^~~~
a.cc:18:13: error: 'cout' was not declared in this scope
   18 |             cout << endl ;
      |             ^~~~
a.cc:18:21: error: 'endl' was not declared in this scope
   18 |             cout << endl ;
      |                     ^~~~
a.cc:21:9: error: 'cout' was not declared in this scope
   21 |         cout << endl ;
      |         ^~~~
a.cc:21:17: error: 'endl' was not declared in this scope
   21 |         cout << endl ;
      |                 ^~~~
Language: C++

#include <stdio.h>

int main(){
  int H,W,i=1,j=1;
  char x=#;
  scanf("%d %d",&H,&W);
  if(x != 0 && y != 0){
    for(j=1;j=<H;j++){
      for(i=1;i=<W;i++){
        printf('%c',x);
      }
    }
  } else {
    return 0;
  }
}

Compiler output:
a.cc:5:10: error: stray '#' in program
    5 |   char x=#;
      |          ^
a.cc:10:16: warning: multi-character character constant [-Wmultichar]
   10 |         printf('%c',x);
      |                ^~~~
a.cc: In function 'int main()':
a.cc:5:11: error: expected primary-expression before ';' token
    5 |   char x=#;
      |           ^
a.cc:7:16: error: 'y' was not declared in this scope
    7 |   if(x != 0 && y != 0){
      |                ^
a.cc:8:15: error: expected primary-expression before '<' token
    8 |     for(j=1;j=<H;j++){
      |               ^
a.cc:9:17: error: expected primary-expression before '<' token
    9 |       for(i=1;i=<W;i++){
      |                 ^
a.cc:10:16: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   10 |         printf('%c',x);
      |                ^~~~
      |                |
      |                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, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <stdio.h>

int main(){
  int H,W,i=1,j=1;
  char x='#';
  scanf("%d %d",&H,&W);
  if(H != 0 && W != 0){
    for(j=1;j<=H;j++){
      for(i=1;i<=W;i++){
        printf("&c",x);
      }
    }
    printf("\n")
  } else {
    return 0;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: expected ';' before '}' token
   13 |     printf("\n")
      |                 ^
      |                 ;
   14 |   } else {
      |   ~
Language: C++

#include <stdio.h>

int main(){
  int H,W,i=1,j=1;
  scanf("%d %d",&H,&W);
  if(H != 0 && W != 0){
    for(j=1;j<=H;j++){
      for(i=1;i<=W;i++){
        printf('#');
      }
      printf('\n')
    }
    printf("\n");
  } else {
    return 0;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    9 |         printf('#');
      |                ^~~
      |                |
      |                char
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:11:14: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   11 |       printf('\n')
      |              ^~~~
      |              |
      |              char
/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:11:19: error: expected ';' before '}' token
   11 |       printf('\n')
      |                   ^
      |                   ;
   12 |     }
      |     ~
Language: C++

#include <iostream>
using namespace std;

int main() {
  int H, W;
  while (true) {
    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:15:2: error: expected class-name at end of input
   15 | ~
      |  ^
Language: C++

import java.io.BufferedInputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Scanner scan = new Scanner(new BufferedInputStream(System.in));
		List<String> output = new ArrayList<String>();
		while (scan.hasNext()) {
			String input = scan.nextLine();
			String[] in = input.split(" ");
			int H = Integer.parseInt(in[0]);
			int W = Integer.parseInt(in[1]);
			if (H == 0 && W == 0) {
				break;
			} else {
				if (H >= 1 && H <= 300 && W >= 1 && W <= 300) {
					
					for (int i = 1; i <= H; i++) {
						String result = "";
						for (int j = 1; j <= W; j++) {
							result += "#";
						}
						output.add(result);
					}
					output.add(System.lineSeparator());
				}
			}
		}
		for (String out : output) {
			System.out.println(out);
		}
	}
}

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

#include <iostream>

int main()
{
	int h, w;
	cin >> h >> w;
	for (int i=0; i!=h; ++i) {
		for (int j=0; j!=w; ++j) {
			cout << '#';
		}
		cout << '\n';
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> h >> w;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |                         cout << '#';
      |                         ^~~~
      |                         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |                 cout << '\n';
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
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) {
			break;
		}
		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:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 |                 scanf_s("%d %d", &H, &W);
      |                 ^~~~~~~
      |                 scanf
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) {
			break;
		}
		for (i = 0; i < H; i++) {
			for (j = 0; j < W; j++) {
				printf("#");
			}
			printf("\n");
		}
		printf("\n");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 |                 scanf_s("%d %d", &H, &W);
      |                 ^~~~~~~
      |                 scanf
Language: C++

#include <iostream>
using namespace std;

int main()
{
  int H, W;

  cin >> H >> W;
  while( H != 0 or 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:23:1: error: expected class-name before '~' token
   23 | ~
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: expected primary-expression before ')' token
    6 | if((W==0)&&(H==0))){
      |                   ^
a.cc:10:13: error: 'k' was not declared in this scope
   10 | for(j=0;j<W;k++){
      |             ^
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;
		}
		cin >> H >> W;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: expected ';' before ':' token
    6 |         cin >> H >> W:
      |                      ^
      |                      ;
Language: C++

#include <iostream>

int main() {
int H, W
do{
std::cin >> H >> W;
for(int i = 0; i < H; i++){
for(int j = 0; j < W; j++){
std::cout << '#';
}
std::cout << std::endl;
}
} while(!(H == 0 && W == 0));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: expected initializer before 'do'
    5 | do{
      | ^~
a.cc:13:21: error: 'W' was not declared in this scope
   13 | } while(!(H == 0 && W == 0));
      |                     ^
Language: C++

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

int main(){
	int h, w;
	bool isFirst = true;
	for(;;){
		cin >> h >> w;
		if(!isFirst){
			cout << endl;
		}
		if(h == 0) return 0;
		for(int i = 0; i < h; i++){
			string line(j, '#');
			cout << line << endl;
		}
		cout << endl;
		isFirst = false;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:37: error: 'j' was not declared in this scope
   15 |                         string line(j, '#');
      |                                     ^
Language: C++

#include<iostream>
#include<vector>
#include <algorithm>

using namespace std;

int main(void){

	int a,b;

	cin >> a;
	cin >> b;			

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

	

	cout << *min_element(num.begin(), num.end()) << " ";

	cout << *max_element(num.begin(), num.end()) << " ";	

	cout << sum << endl;

	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:19:44: error: expected ';' before '}' token
   19 |                                 cout << "#"
      |                                            ^
      |                                            ;
   20 |                         }
      |                         ~                   
a.cc:28:30: error: 'num' was not declared in this scope; did you mean 'enum'?
   28 |         cout << *min_element(num.begin(), num.end()) << " ";
      |                              ^~~
      |                              enum
a.cc:32:17: error: 'sum' was not declared in this scope
   32 |         cout << sum << endl;
      |                 ^~~
Language: C++

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

int main(void) {
 while(1) {
   int H, W;
   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:14:31: error: expected ';' before ')' token
   14 |      for(int j = 0; j < W, j++){
      |                               ^
      |                               ;
Language: C++

#include <iostream>
using namespace std;

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




Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: 'end1' was not declared in this scope
   15 | }cout << end1;
      |          ^~~~
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;
		}
		else{
		for (i = 0; i < w; i++) {
			for (j = 0; j < h; j++) {
				cout << "#";
			}cout << "\n";
		}
	}
	cout << "\n";
	return 0;
	}


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

#include <iostream>

using namespace std;

int main(){
    int h, w;
    while (cin >> h >> w) {
        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: In function 'int main()':
a.cc:13:21: error: expected ';' before '}' token
   13 |         cout << endl
      |                     ^
      |                     ;
   14 |     }
      |     ~
Language: C++

#include<stdio.h>

int main(){
  int h,w,i,j;
h=1;
w=1;

  while(h>0&&w>0){
scanf("%d %d",&h,&w);
    for(i=0;i<h;i++){
    for(j=0;j<w;j++){
ptintf("#");
}
printf("\n");
      }
    
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: 'ptintf' was not declared in this scope; did you mean 'printf'?
   12 | ptintf("#");
      | ^~~~~~
      | printf
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: expected ';' before '}' token
   13 |     cout << "#"
      |                ^
      |                ;
   14 |    }
      |    ~
Language: C++

#include<iosteram>
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:1:9: fatal error: iosteram: No such file or directory
    1 | #include<iosteram>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include<iostreram>
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:1:9: fatal error: iostreram: No such file or directory
    1 | #include<iostreram>
      |         ^~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <vector>
#include <string>
using namespace std;
int main(){
    while(1){
        int a,b;
        cin >> a >> b;
        if (a = 0 && b = 0)
        {
            break;
        }
        for (int i=0; i<a; i++) {
            for (int j=0; j<b; j++) {
                cout << "#";
                
            }
            cout << endl;
        }
        
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: lvalue required as left operand of assignment
    9 |         if (a = 0 && b = 0)
      |                 ~~^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
int H=1,W=1;
while ((H!=0)&&(W!=0)){
	cin>>H>>W;
	for (int i=1;i<=H;i++){
		for (int j=1;j<=W;j++){
			cout<<'#';
		}
		cout<<endl;
		}
	cout<<endl;
	}
if((H==0)&&(W==0)){
	return 0
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: expected ';' before '}' token
   16 |         return 0
      |                 ^
      |                 ;
   17 | }
      | ~
Language: C++

#include<cstdio>
using namespace std;
int main(){
 int w,h;
 if(w==0 && h==0){
  return 0;
 }
 while(1){
 scanf("%d %d",&h,&w);
 for(int i=0;i<h;i++){
   for(int j=0;j<w;j++){
    printf("#");
    }
   printf("\n");
 }
 printf("\n");
}


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

#include<cstdio>
using namespace std;
int main(){
 int w,h;

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


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

#include<stdio.h>
#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
#include<string.h>
#include<math.h>
#include<utility>
#include<map>
using namespace std;
typedef long long int ll;
typedef long double ld;
typedef vector<ll> vi;
typedef vector<string> vs;
typedef pair<ll,ll> P;
typedef vector<P> vp;
#define REP(i,n) for(ll i=0;i<n;i++)
#define FOR(i,m,n) for(ll i=m;i<n;i++)
#define REPR(i,n) for(ll i=n-1;i>=0;i--)
#define FORR(i,n,m) for(ll i=n-1;i>=m;i--)
#define all(in) in.begin(),in.end()
#define ALL(in,K) in,in+K
#define INF 100000000
#define MOD 100000007
#define SIZE 100005
#define pi 	3.14159265358979323846

int main(){
	ll H,W;
	while(1){
		cin >> H[1] >> W[1];
		roop++;
	}
		if(H==0&&W==0){break;}
		REP(i,H){
			REP(j,W){
				printf("#");
			}
			printf("\n");
		}
	printf("\n");
	}
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:25: error: invalid types 'll {aka long long int}[int]' for array subscript
   31 |                 cin >> H[1] >> W[1];
      |                         ^
a.cc:31:33: error: invalid types 'll {aka long long int}[int]' for array subscript
   31 |                 cin >> H[1] >> W[1];
      |                                 ^
a.cc:32:17: error: 'roop' was not declared in this scope
   32 |                 roop++;
      |                 ^~~~
a.cc:34:32: error: break statement not within loop or switch
   34 |                 if(H==0&&W==0){break;}
      |                                ^~~~~
a.cc: At global scope:
a.cc:43:3: error: expected unqualified-id before 'return'
   43 |   return 0;
      |   ^~~~~~
a.cc:44:1: error: expected declaration before '}' token
   44 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

const int NUM = 100;

int main(){
    int W[NUM],H[NUM],n=0;
    for(int i=0;i<NUM;++i){
        ++n;
        
        cin >> H[i] >> W[i];
        
        if(H[i] == 0 && W[i] == 0){
            break;
        }
    }
    
    for(int l=0;l<n;++l){
        for(int h=0;h<H;++h){
            for(int w=0;w<W;++w){
                cout << "#";
            }
            cout << endl;
        }
        cout << endl;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |         for(int h=0;h<H;++h){
      |                     ~^~
a.cc:20:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |             for(int w=0;w<W;++w){
      |                         ~^~
Language: C++

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

int main(){
    while(1) {
       cin >>H>>W;
       if (H == 0& W == 0) break;
       for (int b = 0;b<H;b++){

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'H' was not declared in this scope
    6 |        cin >>H>>W;
      |              ^
a.cc:6:17: error: 'W' was not declared in this scope
    6 |        cin >>H>>W;
      |                 ^
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
    while(1) {
       cin >>H>>W;
       if (H == 0&& W==0)break;
       for (int b = 0;b<H;b++){

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'H' was not declared in this scope
    6 |        cin >>H>>W;
      |              ^
a.cc:6:17: error: 'W' was not declared in this scope
    6 |        cin >>H>>W;
      |                 ^
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
    while(1) {
        int H,W;
       cin >>H>>W;
       if (H == 0&& W==0)break;
       for (int b = 0;b<H;b++){

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


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

#include <bits/stdc++.h>
using namespace std;
int main(){
while(1){
int H, W;
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<<endk;
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:7: error: 'endk' was not declared in this scope
   15 | cout<<endk;
      |       ^~~~
a.cc: At global scope:
a.cc:17:1: error: expected unqualified-id before 'return'
   17 | return 0;
      | ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
while(1){
int H, W;
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:17:1: error: expected unqualified-id before 'return'
   17 | return 0;
      | ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     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 | using namespace std;
a.cc:11:7: error: 'cout' was not declared in this scope
   11 |       cout << "#";}
      |       ^~~~
a.cc:11:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << endl;}
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:13: error: 'endl' was not declared in this scope
   12 |     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 | using namespace std;
a.cc:13:3: error: 'cout' was not declared in this scope
   13 |   cout << endl;}
      |   ^~~~
a.cc:13:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:11: error: 'endl' was not declared in this scope
   13 |   cout << endl;}
      |           ^~~~
a.cc:13:11: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'M' was not declared in this scope
    6 |   swap (H,M);
      |           ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'M' was not declared in this scope
    6 |   swap (H,M);
      |           ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){

int H,W;

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: In function 'int main()':
a.cc:11:12: error: 'w' was not declared in this scope
   11 | if(H==0 && w==0) break;
      |            ^
a.cc:11:18: error: break statement not within loop or switch
   11 | if(H==0 && w==0) break;
      |                  ^~~~~
a.cc:14:15: error: 'w' was not declared in this scope
   14 | for(int j=0;j<w;j++){
      |               ^
a.cc: At global scope:
a.cc:22:1: error: expected unqualified-id before 'return'
   22 | return 0;
      | ^~~~~~
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^