criyle/codenet-compile-errors huggingface dataset:
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 |    }
      |    ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: expected primary-expression before '<<' token
   13 |       cout << << endl;
      |               ^~
Language: C++

#include <stdio.h>

int main(){
 int w, h, i, j;
 scanf("%d %d", &a, &b);

 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:5:18: error: 'a' was not declared in this scope
    5 |  scanf("%d %d", &a, &b);
      |                  ^
a.cc:5:22: error: 'b' was not declared in this scope
    5 |  scanf("%d %d", &a, &b);
      |                      ^
Language: C++

#include <stdio.h>

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

 for(x=0; i; x++){
  scanf("%d %d", &a, &b);
 
  if(a==0 && b==0){ break; }
 
  for(i = 0; i < b; i++){
   for(j = 0; j < a; j++){
     printf("#");
   }
   printf("\n");
  }
  
  print("\n");

  return 0;
 }
}

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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:43: error: expected ';' before ')' token
   13 |                         for (i=0, i<W, i++){
      |                                           ^
      |                                           ;
a.cc:19:17: error: expected primary-expression before '}' token
   19 |                 }
      |                 ^
a.cc:18:26: error: expected ';' before '}' token
   18 |                         }
      |                          ^
      |                          ;
   19 |                 }
      |                 ~         
a.cc:19:17: error: expected primary-expression before '}' token
   19 |                 }
      |                 ^
a.cc:18:26: error: expected ')' before '}' token
   18 |                         }
      |                          ^
      |                          )
   19 |                 }
      |                 ~         
a.cc:13:29: note: to match this '('
   13 |                         for (i=0, i<W, i++){
      |                             ^
a.cc:19:17: error: expected primary-expression before '}' token
   19 |                 }
      |                 ^
Language: C++



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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:35: error: expected ';' before ')' token
   12 |                 for (i=0, i<W, i++){
      |                                   ^
      |                                   ;
a.cc:18:17: error: expected primary-expression before '}' token
   18 |                 }
      |                 ^
a.cc:17:26: error: expected ';' before '}' token
   17 |                         }
      |                          ^
      |                          ;
   18 |                 }
      |                 ~         
a.cc:18:17: error: expected primary-expression before '}' token
   18 |                 }
      |                 ^
a.cc:17:26: error: expected ')' before '}' token
   17 |                         }
      |                          ^
      |                          )
   18 |                 }
      |                 ~         
a.cc:12:21: note: to match this '('
   12 |                 for (i=0, i<W, i++){
      |                     ^
a.cc:18:17: error: expected primary-expression before '}' token
   18 |                 }
      |                 ^
Language: C++



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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:35: error: expected ';' before ')' token
   13 |                 for (i=0, i<W, i++) {
      |                                   ^
      |                                   ;
a.cc:19:29: error: expected ';' before '}' token
   19 |                 cout << endl
      |                             ^
      |                             ;
   20 |         }
      |         ~                    
a.cc:20:9: error: expected primary-expression before '}' token
   20 |         }
      |         ^
a.cc:19:29: error: expected ')' before '}' token
   19 |                 cout << endl
      |                             ^
      |                             )
   20 |         }
      |         ~                    
a.cc:13:21: note: to match this '('
   13 |                 for (i=0, i<W, i++) {
      |                     ^
a.cc:20:9: error: expected primary-expression before '}' token
   20 |         }
      |         ^
Language: C++



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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:35: error: expected ';' before ')' token
   13 |                 for (i=0, i<W, i++) {
      |                                   ^
      |                                   ;
a.cc:20:9: error: expected primary-expression before '}' token
   20 |         }
      |         ^
a.cc:19:30: error: expected ')' before '}' token
   19 |                 cout << endl;
      |                              ^
      |                              )
   20 |         }
      |         ~                     
a.cc:13:21: note: to match this '('
   13 |                 for (i=0, i<W, i++) {
      |                     ^
a.cc:20:9: error: expected primary-expression before '}' token
   20 |         }
      |         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:35: error: expected ';' before ')' token
   11 |                 for (i=0, i<W, i++) {
      |                                   ^
      |                                   ;
a.cc:18:9: error: expected primary-expression before '}' token
   18 |         }
      |         ^
a.cc:17:30: error: expected ')' before '}' token
   17 |                 cout << endl;
      |                              ^
      |                              )
   18 |         }
      |         ~                     
a.cc:11:21: note: to match this '('
   11 |                 for (i=0, i<W, i++) {
      |                     ^
a.cc:18:9: error: expected primary-expression before '}' token
   18 |         }
      |         ^
Language: C++


import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		// Scanner scanner = new Scanner("3 5 4 2 0 0 8 8");
		Scanner scanner = new Scanner(System.in);
		int a;
		int b;
		while (true) {
			a = scanner.nextInt();
			b = scanner.nextInt();
			if (a == 0 && b == 0) {
				break;
			}
			for (int i = 0; i < a; i++) {
				lineMaker(b);
				System.out.println("");
			}
			System.out.println("");
		}
	}

	static void lineMaker(int b) {
		for (int i = 0; i < b; i++) {
			System.out.print("#");
		}
	}
}

Compiler output:
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.Scanner;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:15: error: expected ':' before 'static'
    5 |         public static void main(String[] args) {
      |               ^~~~~~~
      |               :
a.cc:5:33: error: 'String' has not been declared
    5 |         public static void main(String[] args) {
      |                                 ^~~~~~
a.cc:5:42: error: expected ',' or '...' before 'args'
    5 |         public static void main(String[] args) {
      |                                          ^~~~
a.cc:29:2: error: expected ';' after class definition
   29 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:7:17: error: 'Scanner' was not declared in this scope
    7 |                 Scanner scanner = new Scanner(System.in);
      |                 ^~~~~~~
a.cc:11:29: error: 'scanner' was not declared in this scope
   11 |                         a = scanner.nextInt();
      |                             ^~~~~~~
a.cc:18:33: error: 'System' was not declared in this scope
   18 |                                 System.out.println("");
      |                                 ^~~~~~
a.cc:20:25: error: 'System' was not declared in this scope
   20 |                         System.out.println("");
      |                         ^~~~~~
a.cc: In static member function 'static void Main::lineMaker(int)':
a.cc:26:25: error: 'System' was not declared in this scope
   26 |                         System.out.print("#");
      |                         ^~~~~~
Language: C++

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

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

Compiler output:
a.cc:2:9: error: expected unqualified-id before 'while'
    2 |         while (1){
      |         ^~~~~
a.cc:17:9: error: expected unqualified-id before 'return'
   17 |         return 0;
      |         ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

while True:
    H, W = [int(i) for i in input().split()]
    if H == w == 0:
        break
    
    for i in range(H):
        for w in range(W):
            print('#',end='')
        print()
    
    print()

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

while True:
    H, W = [int(i) for i in input().split()]
    if H == w == 0:
        break
    
    for h in range(H):
        for w in range(W):
            print('#',end='')
        print()
    
    print()

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

while True:
    H, W = [int(i) for i in input().split()]
    if H == w == 0:
        break
    
    for h in range(H):
        for w in range(W):
            print('#',end='')
        
        print()
    
    print()

Compiler output:
a.cc:8:27: error: empty character constant
    8 |             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 i, j, x, y;
  cin >> x >> y;

  if(x != 0; y != 0){
    for(i = 0; i < x; i++){
      for(j = 0; j < y; j++){
      cout << '#';
    ???}
      cout << endl;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected primary-expression before '?' token
   12 |     ???}
      |     ^
a.cc:12:6: error: expected primary-expression before '?' token
   12 |     ???}
      |      ^
a.cc:12:7: error: expected primary-expression before '?' token
   12 |     ???}
      |       ^
a.cc:12:8: error: expected primary-expression before '}' token
   12 |     ???}
      |        ^
a.cc:12:8: error: expected ':' before '}' token
   12 |     ???}
      |        ^
      |        :
a.cc:12:8: error: expected primary-expression before '}' token
a.cc:12:8: error: expected ':' before '}' token
   12 |     ???}
      |        ^
      |        :
a.cc:12:8: error: expected primary-expression before '}' token
a.cc:12:8: error: expected ':' before '}' token
   12 |     ???}
      |        ^
      |        :
a.cc:12:8: error: expected primary-expression before '}' token
Language: C++

#include<iostream>
using namespace std;

int main() {
	while(1){
		int i, j, h, w;
		cin >> h >> w;

		if ( h == 0; w = 0) break;

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

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

#include<iostream>
using namespace std;

int main () {
   while (1) {
      int i, j, h, w;
      cin >> h >> w;

      if ( h == 0 $$ w == 0 ) break;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected ')' before '$$'
    9 |       if ( h == 0 $$ w == 0 ) break;
      |          ~       ^~~
      |                  )
Language: C++

#include <string>
#include <vector>
#include <iostream>
#include <stdio.h>
#define _USE_MATH_DEFINES
#include <cmath>
#include<algorithm>
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;
    }

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

#include<iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   17 |         return ;
      |         ^~~~~~
Language: C++

#include<iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   18 |         return ;
      |         ^~~~~~
Language: C++

#include<iostream>

using namespace std;

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

		cout<<endl;
	}
	return ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   19 |         return ;
      |         ^~~~~~
Language: C++

#include<iostream>

using namespace std;

int main(void){
	int H,W;
	for(;;){
		cin>>H>>W;
		if(H==W==0){
			break;
			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:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:5:15: note: to match this '{'
    5 | int main(void){
      |               ^
Language: C++

#include<iostream>

using namespace std;

int main(){
	int H,W;
	for(;;){
		cin>>H>>W;
		if(H==W==0){
			break;
			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:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include<iostream>

using namespace std;

int main(){
	int H,W;
	for(;;){
		cin>>H>>W;
		if(H==W==0){
			break;
		}else{
			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:12:43: error: expected primary-expression before ')' token
   12 |                         for(int i=0;i<H;i+){
      |                                           ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'i' was not declared in this scope
    8 |         for(i = 0; i <= H; i++){
      |             ^
a.cc:10:21: error: 'j' was not declared in this scope
   10 |                 for(j = 0; j <= W; j++){
      |                     ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
   for (int i = 0; ; i++){
   int W,H;
   cin >> W >> H;
   if (W == 0 && H == 0)
   break;
   for (int j = 0; j < H;j++){
     for (int k = 0; k < W; k++)
      cout << '#';
      cout <<'\n' << Lendl;
      
    }
   }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:22: error: 'Lendl' was not declared in this scope
   15 |       cout <<'\n' << Lendl;
      |                      ^~~~~
Language: C++

int main(){
 	int H, W, i, j;
 	
	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;
 		}
	}
	
 	return 0;
}

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

#include<iostream>
int main(){
	while (true){
		int H, W, i, j;
		std::cin >> H >> W;
		if (H == 0 && W == 0){
			break;
		}
		else{
			for (i = 1; i <= H; i++){
				for (j = 1; j <= W; j++){
					std::cout << "#";
				}
				std::cout << "\n";
			}
		}
	}
	return 0;

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

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before 'cin'
    6 |         cin >> H >> W >> j >> i;
      |         ^~~
a.cc:15:21: error: 'i' was not declared in this scope
   15 |         if ( j = 0; i =0; )
      |                     ^
a.cc:15:25: error: expected ')' before ';' token
   15 |         if ( j = 0; i =0; )
      |            ~            ^
      |                         )
a.cc:15:27: error: expected primary-expression before ')' token
   15 |         if ( j = 0; i =0; )
      |                           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:25: error: expected initializer before 'cin'
    6 |         int H,W,j,i     cin >> H >> W;
      |                         ^~~
a.cc:14:21: error: expected ';' before 'endl'
   14 |                 cout endl;
      |                     ^~~~~
      |                     ;
Language: C++


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

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

Compiler output:
a.cc:2:2: error: stray '#' in program
    2 | }#include <iostream>
      |  ^
a.cc:2:1: error: expected declaration before '}' token
    2 | }#include <iostream>
      | ^
a.cc:2:3: error: 'include' does not name a type
    2 | }#include <iostream>
      |   ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:17: error: 'cin' was not declared in this scope
    8 |                 cin >> H >> W;
      |                 ^~~
a.cc:12:17: error: 'cout' was not declared in this scope
   12 |                 cout << "#";
      |                 ^~~~
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << endl;
      |                 ^~~~
a.cc:16:25: error: 'endl' was not declared in this scope
   16 |                 cout << endl;
      |                         ^~~~
Language: C++

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

int main()
{
	int H,W;
	char rect[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++){
				rect[i][j] = "#";
			}
		}
		
		for(int i = 0;i < H;i++){
			for(int j = 0;j < W;j++){
				cout << rect[i][j];
				if(j == W - 1) cout << "\n";
			}
	}
	return 0;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:46: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   15 |                                 rect[i][j] = "#";
      |                                              ^~~
      |                                              |
      |                                              const char*
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
signed main(){
  int a,b;
  while(scanf("%d%d",&a,&b),a||b){
      for(int c=0;c<a;c++){
	  for(int d=0;d<b;d++){
	      printf("*");
	      }
	      printf("\n")
	  }
	  printf("\n")
      }
}

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

#include<bits/stdc++.h>
using namespace std;
 
signed main(){
  int a,b;
  while(scanf("%d%d",&a,&b),a||b){
      for(int c=0;c<a;c++){
	  for(int d=0;d<b;d++){
	      printf("*");
	      }
	      printf("\n")
	  }
	  printf("\n");
      }
}

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

#include<iostream>
#include<cstdio>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> a >> b;
      |   ^~~
      |   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
      |                  ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:25: error: expected ';' before '}' token
   15 |                 puts("")
      |                         ^
      |                         ;
   16 |         }
      |         ~
Language: C++

int main() {
	int Array[1000][2];
	int i;
	for (i = 0;; i++){
		int a, b;
		cin >> a >> b;
		if (a == 0 && b == 0)
			break;
		Array[i][0] = a;
		Array[i][1] = b;
	}
	for (int n = 0; n < i; n++)
	{
		for (int k = 0; k < Array[n][0]; k++) {
			for (int i = 0; i < Array[n][1]; i++)
			{
				cout << "#";
			}
			cout << endl;
		}
		cout << endl;
	}
}

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

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

Compiler output:
a.cc:2:1: error: 'inr' does not name a type; did you mean 'int'?
    2 | inr main(void){
      | ^~~
      | int
Language: C++

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

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

#include <iostream>
using namespace std;

void main(void)
{
	int H, W;

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

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

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

#include <iostream>
using namespace std;

void 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;
		}
		cout << endl;
	}
}

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

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

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

#include <iostream>
using namespace std;

int main(){
	while(1){
	int h,w;
	cin>>h>>w;
	for(int i=0;i<h;i++){
		for(int j=0;i<w;j++){
			cout<<"#"<<endl;
		}
		cout<<"\n"<<endl;
	}
	cout<<"\n"<<endl;
	}
return0;
}

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

import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner kb=new Scanner(System.in);
		int h[]=new int[1000],w[]=new int[1000];
		int i=0;
		while(true){
			h[i]=kb.nextInt();
			w[i]=kb.nextInt();
			System.out.println();
			if(h[i]==0&&w[i]==0){
				System.out.println();
				break;
			}else{

				for(int j=0;j<h[i];j++){
					for(int k=0;k<w[i];k++){
						System.out.print("#");
					}
					System.out.println();
				}
				//System.out.println();
				i++;
			}
		}
	}
}

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

#include<iosream>
using namespace std;

int main(){

 while(1){
  cin >> int h >> int 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 << " " <<;
  return 0;
}

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

#include<iosream>
using namespace std;

int main(){

 while(1){
  cin >> int h >> int 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 << " ";
  return 0;
}

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

#include<iosream>
using namespace std;

int main(){

 while(1){
  cin >> int h >> int 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:9: fatal error: iosream: No such file or directory
    1 | #include<iosream>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;

int main(){

 while(1){
  cin >> int h >> int 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:7:10: error: expected primary-expression before 'int'
    7 |   cin >> int h >> int w;
      |          ^~~
a.cc:8:6: error: 'h' was not declared in this scope
    8 |   if(h==0 && w==0) break;
      |      ^
a.cc:8:14: error: 'w' was not declared in this scope
    8 |   if(h==0 && w==0) break;
      |              ^
a.cc:10:19: error: 'h' was not declared in this scope
   10 |   for (int i=0;i<=h;++i){
      |                   ^
a.cc:11:20: error: 'w' was not declared in this scope
   11 |    for (int j=0;j<=w;++j){
      |                    ^
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main() {
	int H,W,a,b;
	cin>>H>>W;
	while(true){
		for(b=0;b<W;b=b+1){
			for(a=0;a<H;a=a+1){
				cout<<#;
			}/n;
		}endl;
		if (H=0 && W=0)break
	}
}

Compiler output:
a.cc:10:39: error: stray '#' in program
   10 |                                 cout<<#;
      |                                       ^
a.cc: In function 'int main()':
a.cc:10:40: error: expected primary-expression before ';' token
   10 |                                 cout<<#;
      |                                        ^
a.cc:11:26: error: expected primary-expression before '/' token
   11 |                         }/n;
      |                          ^
a.cc:11:27: error: 'n' was not declared in this scope
   11 |                         }/n;
      |                           ^
a.cc:12:22: error: statement cannot resolve address of overloaded function
   12 |                 }endl;
      |                      ^
a.cc:13:25: error: lvalue required as left operand of assignment
   13 |                 if (H=0 && W=0)break
      |                       ~~^~~~
a.cc:13:37: error: expected ';' before '}' token
   13 |                 if (H=0 && W=0)break
      |                                     ^
      |                                     ;
   14 |         }
      |         ~
Language: C++

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

int main(){
  while(1) {
    cin >> x >> y;
    if ((x == 0) && (y == 0)) {
      break;
    }
    for (int i = 0; i < x; i++) {
      for (int j = 0; j < y; j++) {
        cout << '#';
      }
      cout << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'x' was not declared in this scope
    8 |     cin >> x >> y;
      |            ^
a.cc:8:17: error: 'y' was not declared in this scope
    8 |     cin >> x >> y;
      |                 ^
Language: C++

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

int main(){
  int x, y;
  while(1) {
    cin >> x >> y;
    if ((x == 0) && (y == 0)) {
      break;
    }
    for (int i = 0; i < x; i++) {
      for (int j = 0; j < y; j++) {
        printf("#");
      }
      if (i != x - 1) {
        printf("\n);
      }
    }
  }
}

Compiler output:
a.cc:18:16: warning: missing terminating " character
   18 |         printf("\n);
      |                ^
a.cc:18:16: error: missing terminating " character
   18 |         printf("\n);
      |                ^~~~~
a.cc: In function 'int main()':
a.cc:19:7: error: expected primary-expression before '}' token
   19 |       }
      |       ^
Language: C++

#include<stdio.h>
int main(){
    int H[10000], W[10000];
    int length;
    int i=0, j, k;
    do{
        scanf("%d %d");
        i += 1;
    }while(H[i-1]==0 || W[i-1]==0);
    length = i;
    for(i=0; i<length-1; i++){
        for(j=0; j<H[i]; j++){
            for(k=0; k<W[i]; k++){
                print("#");
            }
            printf("\n");
        }
        printf("\n");
    }
    return 0;
}

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

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

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

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

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

int main() {
	int w,h;
	while (true){
	std::cin >> w >> h;
	if(w==0 && h==0){break;}
	int wc=1;
	int hc=1;
	while(wc<=w){
		while(hc<=h){
			std::cout <<"#";
			hc++;
		}
		hc=1;
		std::cout << std::endl;
		wc++;
	}
	std::cout << std::endl;
}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:14: error: 'cin' is not a member of 'std'
    4 |         std::cin >> w >> h;
      |              ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main() {
a.cc:10:30: error: 'cout' is not a member of 'std'
   10 |                         std::cout <<"#";
      |                              ^~~~
a.cc:10:30: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:22: error: 'cout' is not a member of 'std'
   14 |                 std::cout << std::endl;
      |                      ^~~~
a.cc:14:22: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:35: error: 'endl' is not a member of 'std'
   14 |                 std::cout << std::endl;
      |                                   ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | int main() {
a.cc:17:14: error: 'cout' is not a member of 'std'
   17 |         std::cout << std::endl;
      |              ^~~~
a.cc:17:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:27: error: 'endl' is not a member of 'std'
   17 |         std::cout << std::endl;
      |                           ^~~~
a.cc:17:27: 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 a,b;
cin>>a>>b;
if(a == 0 && b == 0)break;
for(int i=1;i<=a;i++){
for(int j=1;j<=b;j++){

cout<<"#";
}
cout<<endl;
}
return 0;
}

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

#include<iostream>
#include<conio.h>
using namespace std;
void main()
{
	while (1) {
		int a, b;
		cin >> a >> b;
		if (a == 0 && b == 0)break;
		for (int i = 1; i <= a; i++) {
			for (int j = 1; j <= b; j++) {
				cout << "#";
			}
			cout << "\n";
		}
	}
	getch();
}

Compiler output:
a.cc:2:9: fatal error: conio.h: No such file or directory
    2 | #include<conio.h>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:46: error: expected primary-expression before ';' token
   11 |                                 cout << "#"<<;
      |                                              ^
a.cc:13:39: error: expected primary-expression before ';' token
   13 |                         cout << "\n"<<;
      |                                       ^
Language: C++

while True:
    H,W= map(int, input().split())
    if H==0 and W==0:
        break
    s = "#"
    for i in range(H):        
        x = s*W
        print(x)
    print("")
              

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

#include <iostream>
using namespace std;

int main()
{
int i,j,k,W,H;

for(i=0;cin >> 0 >> 0;i++)
 {
cin >> H >> W;
for(j=0;j<H;j++)
  {
for(k=0;k<W;k++)
   {
cout << "#";
   }
  }
 }

return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: ambiguous overload for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
    8 | for(i=0;cin >> 0 >> 0;i++)
      |         ~~~ ^~ ~
      |         |      |
      |         |      int
      |         std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/14/iostream:42,
                 from a.cc:1:
/usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
  122 |       operator>>(__istream_type& (*__pf)(__istream_type&))
      |       ^~~~~~~~
/usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]'
  126 |       operator>>(__ios_type& (*__pf)(__ios_type&))
      |       ^~~~~~~~
/usr/include/c++/14/istream:133:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
  133 |       operator>>(ios_base& (*__pf)(ios_base&))
      |       ^~~~~~~~
/usr/include/c++/14/istream:352:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; __streambuf_type = std::basic_streambuf<char>]'
  352 |       operator>>(__streambuf_type* __sb);
      |       ^~~~~~~~
/usr/include/c++/14/istream:939:5: note: candidate: 'std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*) [with _Traits = char_traits<char>]'
  939 |     operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
      |     ^~~~~~~~
/usr/include/c++/14/istream:945:5: note: candidate: 'std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*) [with _Traits = char_traits<char>]'
  945 |     operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
      |     ^~~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
int i,j,k,W,H;

while(1)
 {
if(cin >> 0 >> 0) break:
cin >> H >> W;
for(j=0;j<H;j++)
  {
for(k=0;k<W;k++)
   {
cout << "#";
   }
  }
 }

return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: ambiguous overload for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
   10 | if(cin >> 0 >> 0) break:
      |    ~~~ ^~ ~
      |    |      |
      |    |      int
      |    std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/14/iostream:42,
                 from a.cc:1:
/usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
  122 |       operator>>(__istream_type& (*__pf)(__istream_type&))
      |       ^~~~~~~~
/usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]'
  126 |       operator>>(__ios_type& (*__pf)(__ios_type&))
      |       ^~~~~~~~
/usr/include/c++/14/istream:133:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
  133 |       operator>>(ios_base& (*__pf)(ios_base&))
      |       ^~~~~~~~
/usr/include/c++/14/istream:352:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; __streambuf_type = std::basic_streambuf<char>]'
  352 |       operator>>(__streambuf_type* __sb);
      |       ^~~~~~~~
/usr/include/c++/14/istream:939:5: note: candidate: 'std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*) [with _Traits = char_traits<char>]'
  939 |     operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
      |     ^~~~~~~~
/usr/include/c++/14/istream:945:5: note: candidate: 'std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*) [with _Traits = char_traits<char>]'
  945 |     operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
      |     ^~~~~~~~
a.cc:10:24: error: expected ';' before ':' token
   10 | if(cin >> 0 >> 0) break:
      |                        ^
      |                        ;
a.cc:10:24: error: expected primary-expression before ':' token
Language: C++

#include <iostream>
using namespace std;

int main()
{
int i,j,k,W,H;

while(1)
 {

cin >> H >> W;
if(H==0||W==0) break:

for(j=0;j<H;j++)
  {
for(k=0;k<W;k++)
   {
cout << "#";
   }
  }
 }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: expected ';' before ':' token
   12 | if(H==0||W==0) break:
      |                     ^
      |                     ;
a.cc:12:21: error: expected primary-expression before ':' token
a.cc:14:16: error: expected ';' before ')' token
   14 | for(j=0;j<H;j++)
      |                ^
      |                ;
Language: C++

#include <iostream>
using namespace std;

int main()
{
int i,j,k,W,H;

while(1)
 {
cin >> H >> W;
if(H==0||W==0) break:
for(j=0;j<H;j++)
  {
for(k=0;k<W;k++)
   {
cout << "#";
   }
  }
 }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: expected ';' before ':' token
   11 | if(H==0||W==0) break:
      |                     ^
      |                     ;
a.cc:11:21: error: expected primary-expression before ':' token
a.cc:12:16: error: expected ';' before ')' token
   12 | for(j=0;j<H;j++)
      |                ^
      |                ;
Language: C++

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

int main() {
  int H,W;
  while(1) {
    cin >> H >> W;
    if (H == 0 && W == 0) {
      break;
    }
    char str1[H] = '\#';
    for(int i; i < H;) {
      ++i;
      printf("\n",test1);
    }
  }
}

Compiler output:
a.cc:13:20: warning: unknown escape sequence: '\#'
   13 |     char str1[H] = '\#';
      |                    ^~~~
a.cc: In function 'int main()':
a.cc:13:20: error: array must be initialized with a brace-enclosed initializer
a.cc:16:19: error: 'test1' was not declared in this scope
   16 |       printf("\n",test1);
      |                   ^~~~~
Language: C++

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

int main() {
  int H,W;
  while(1) {
    cin >> H >> W;
    if (H == 0 && W == 0) {
      break;
    }
    char str1[H] = '#';
    for(int i; i < H;) {
      ++i;
      printf("\n",str1);
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: array must be initialized with a brace-enclosed initializer
   13 |     char str1[H] = '#';
      |                    ^~~
Language: C++

#include <stdio.h>

int main() {
  int W, H;
  int w, h;
  scanf("%d %d", &W, &H);
  while(W != 0 || H != 0) {
    for(h = 0; h < H; h++) {
      for(w = 0; w < W; w++) {
        printf("#");
      }
    printf("\n");
    scanf("%d %d", &W, &H);
  }
  return 0;
}

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