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

#include <stdio.h>
int main(void)
{
  int H,W,a,b,c,d,e;

  while(1){
    scanf("%d %d",&H,&W);
    putchar('\n')
  for(a=1;a<=H;a++){
    for(b=1;b<=W;b++)
      printf("#");
    putchar('\n');
}
  putchar('\n');
  if(H==0 && W==0)   
    break;
  }


  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:18: error: expected ';' before 'for'
    8 |     putchar('\n')
      |                  ^
      |                  ;
    9 |   for(a=1;a<=H;a++){
      |   ~~~
Language: C

#include<stdio.h>

int main(void){
    int h, w, i, j;

    scnaf("%d %d", &h, &w);

    for(i = 0; i < h; i++){
        for(j = 0; j < w; j++){
            printf("#");
        }
        puts("");
    }

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:5: error: implicit declaration of function 'scnaf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |     scnaf("%d %d", &h, &w);
      |     ^~~~~
      |     scanf
Language: C

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

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:10:10: error: 'x' undeclared (first use in this function)
   10 |       if(x == 0 && y == 0) break;
      |          ^
main.c:10:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:20: error: 'y' undeclared (first use in this function)
   10 |       if(x == 0 && y == 0) break;
      |                    ^
Language: C

#include <stdio.h>

int main (void) {
    int a, b, i, j;
    
    while (1) {
        scanf("%d%d", &a, &b);
        
         if(a == b && a == 0){
                break;

         for(i=0; i<a, i++) {
             for(j=0; j<b; j++)
                 putchar('#');
             putchar('\n');
         }
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:27: error: expected ';' before ')' token
   12 |          for(i=0; i<a, i++) {
      |                           ^
      |                           ;
main.c:19:1: error: expected declaration or statement at end of input
   19 | }
      | ^
Language: C

#include <stdio.h>

int main (void) {
    int a, b, i, j;
    
    while (1) {
        scanf("%d%d", &a, &b);
        
         if(a == b && a == 0)
                break;

         for(i=0; i<a, i++) {
             for(j=0; j<b; j++)
                 putchar('#');
             putchar('\n');
         }
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:27: error: expected ';' before ')' token
   12 |          for(i=0; i<a, i++) {
      |                           ^
      |                           ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         scanf_s("%d %d", &h, &w);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>
int main(void){
int i=0, j=0, w=0, h=0;
	while(1){
	scanf_s("%d %d", &h, &w);
	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:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         scanf_s("%d %d", &h, &w);
      |         ^~~~~~~
      |         scanf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    8 |         scanf_s("%d %d", &h, &w);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>
int main(void){
int i=0;
int j=0;
int w=0;
int h=0;
	while(1){
	scanf_s("%d %d", &h, &w);
	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:
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    8 |         scanf_s("%d %d", &h, &w);
      |         ^~~~~~~
      |         scanf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:22: error: lvalue required as left operand of assignment
    6 |           if(h=0 && w=0){
      |                      ^
main.c:11:1: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>print("#");
      | ^~~~~~~~
main.c:11:3: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>print("#");
      |         ^~~~~~~~
main.c:11:5: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>print("#");
      |                 ^~~~~~~~
main.c:11:7: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>print("#");
      |                         ^~~~~~~~
main.c:11:9: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>print("#");
      |                                 ^~~~~~~~
main.c:11:11: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>print("#");
      |                                         ^~~~~~~~
main.c:11:13: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>print("#");
      |                                                 ^~~~~~~~
main.c:11:15: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 | 　　　　　　　print("#");
      |               ^~~~~
      |               printf
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:22: error: lvalue required as left operand of assignment
    6 |           if(h=0 && w=0){
      |                      ^
main.c:11:1: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>print("%c",#);
      | ^~~~~~~~
main.c:11:3: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>print("%c",#);
      |         ^~~~~~~~
main.c:11:5: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>print("%c",#);
      |                 ^~~~~~~~
main.c:11:7: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>print("%c",#);
      |                         ^~~~~~~~
main.c:11:9: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>print("%c",#);
      |                                 ^~~~~~~~
main.c:11:11: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>print("%c",#);
      |                                         ^~~~~~~~
main.c:11:13: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>print("%c",#);
      |                                                 ^~~~~~~~
main.c:11:15: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 | 　　　　　　　print("%c",#);
      |               ^~~~~
      |               printf
main.c:11:26: error: stray '#' in program
   11 | 　　　　　　　print("%c",#);
      |                          ^
main.c:11:27: error: expected expression before ')' token
   11 | 　　　　　　　print("%c",#);
      |                           ^
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:1: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>printf("%c",#);
      | ^~~~~~~~
main.c:11:3: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>printf("%c",#);
      |         ^~~~~~~~
main.c:11:5: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>printf("%c",#);
      |                 ^~~~~~~~
main.c:11:7: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>printf("%c",#);
      |                         ^~~~~~~~
main.c:11:9: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>printf("%c",#);
      |                                 ^~~~~~~~
main.c:11:11: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>printf("%c",#);
      |                                         ^~~~~~~~
main.c:11:13: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>printf("%c",#);
      |                                                 ^~~~~~~~
main.c:11:27: error: stray '#' in program
   11 | 　　　　　　　printf("%c",#);
      |                           ^
main.c:11:28: error: expected expression before ')' token
   11 | 　　　　　　　printf("%c",#);
      |                            ^
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:1: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000>  printf("%c",#);
      | ^~~~~~~~
main.c:11:3: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000>  printf("%c",#);
      |         ^~~~~~~~
main.c:11:5: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000>  printf("%c",#);
      |                 ^~~~~~~~
main.c:11:7: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000>  printf("%c",#);
      |                         ^~~~~~~~
main.c:11:9: error: stray '\343' in program
   11 | <U+3000><U+3000><U+3000><U+3000><U+3000>  printf("%c",#);
      |                                 ^~~~~~~~
main.c:11:25: error: stray '#' in program
   11 | 　　　　　  printf("%c",#);
      |                         ^
main.c:11:26: error: expected expression before ')' token
   11 | 　　　　　  printf("%c",#);
      |                          ^
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:9:39: error: expected ';' before 'if'
    9 |                 scanf("%d %d", &h, &w)
      |                                       ^
      |                                       ;
   10 |                 if (h == 0 && w == 0){
      |                 ~~
Language: C

#include<stdio.h>

//AOJ10013
int main( ) {
	int width;
	int height;
	bool loop = true;

	while( loop ) {
			scanf("%d %d" ,&height ,&width );
			if( height == 0 && width == 0) {
				break;
			}

		for( int i = 0; i < height; i++ ) {
			for( int j = 0; j < width; j++ ) {
				printf("#");
			}
			printf("\n");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: unknown type name 'bool'
    7 |         bool loop = true;
      |         ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:7:21: error: 'true' undeclared (first use in this function)
    7 |         bool loop = true;
      |                     ^~~~
main.c:7:21: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:7:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main( ) {
	int width;
	int height;
	int i,j;
	bool loop = true;

	while( loop ) {
			scanf("%d %d" ,&height ,&width );
			if( height == 0 && width == 0) {
				break;
			}

		for( i = 0; i < height; i++ ) {
			for( j = 0; j < width; j++ ) {
				printf("#");
			}
			printf("\n");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: unknown type name 'bool'
    7 |         bool loop = true;
      |         ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:7:21: error: 'true' undeclared (first use in this function)
    7 |         bool loop = true;
      |                     ^~~~
main.c:7:21: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:7:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){

int h,w,i,j;

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

Compiler output:
main.c: In function 'main':
main.c:13:13: error: expected ';' before '}' token
   13 | printf("\n")
      |             ^
      |             ;
   14 | }
      | ~            
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

#include<stdio.h>

int main(){

int h,w,i,j;

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

Compiler output:
main.c: In function 'main':
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C


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

Compiler output:
main.c:2:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    2 | include<stdio.h>
      |        ^
Language: C

#include <stdio.h>

int main(){
  int a, b;
  int i, j;
  scanf("%d %d", &a, &b);
  for(i = 0; i < a; i++){
    for(j = 0; j < b; j++){
      printf("#");
    }
    putchar('\n');
  }
    puthcar('\n');
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:5: error: implicit declaration of function 'puthcar'; did you mean 'putchar'? [-Wimplicit-function-declaration]
   13 |     puthcar('\n');
      |     ^~~~~~~
      |     putchar
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:20:29: error: expected ';' before '}' token
   20 |                 printf("\n")
      |                             ^
      |                             ;
   21 |         }
      |         ~
Language: C

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

	scanf("%d %d",&h,&w);

	while((h!=0)&&(w!=0)){
	
		for(i=1; i<=h; i++){

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

		}
		
		printf("\n");
		scanf("%d %d",&h,&w);
	}
	return 0;


}
o

Compiler output:
main.c:28:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   28 | o
      | ^
Language: C

#include <stdio.h>

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

  while(1) {
    if ((h == 0)&&(w == 0)) break;

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

Compiler output:
main.c: In function 'main':
main.c:11:21: error: expected ';' before ')' token
   11 |     for(i = 0; i < w) {
      |                     ^
      |                     ;
main.c:12:23: error: expected ';' before ')' token
   12 |       for(j = 0; j < h) { printf("#") };
      |                       ^
      |                       ;
main.c:12:38: error: expected ';' before '}' token
   12 |       for(j = 0; j < h) { printf("#") };
      |                                      ^~
      |                                      ;
Language: C

#include <stdio.h>

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

  while(true) {
    if ( (h == 0) && (w == 0) ) break;

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: 'true' undeclared (first use in this function)
    7 |   while(true) {
      |         ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:7:9: note: each undeclared identifier is reported only once for each function it appears in
    7 |   while(true) {
      |         ^~~~
Language: C

#include <stdioh>

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

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

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

       
  

Compiler output:
main.c: In function 'main':
main.c:9:25: error: expected '(' before 'j'
    9 |                     for j=0; j<w{
      |                         ^
      |                         (
main.c:9:33: error: expected ';' before '{' token
    9 |                     for j=0; j<w{
      |                                 ^
      |                                 ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:38: error: expected ';' before ')' token
    9 |                     for (j=0; j<w,j++){
      |                                      ^
      |                                      ;
Language: C

#include<stdio.h>

int main(void){
	int H ,W;
	int a ,b ,c;
	
	for(c = 0 ;;++c){
		scanf("%d %d" ,&H ,&W);
		if(H ==0 && W == 0) break;
	}
	
	for(a = 0; a < H; ++a){
		for(b = 0; b < W; ++b){
			printf("#");
		}
	}
	
	return 0:
	}

Compiler output:
main.c: In function 'main':
main.c:18:17: error: expected ';' before ':' token
   18 |         return 0:
      |                 ^
      |                 ;
Language: C

#include <stdio.h>

int main(void)
{
	int H, W;
	int i, j;
	
	scanf("%d %d", &H, &W);
	
	while (H != 0 || W != 0){
		for (i = 0; i < H; i++){
			for (j = 0; j < W; j++){
				printf("#");
			}
			puts("");
		}
		puts("")
		scanf("%d %d", &H, &W);
	}
	
	return (0);
}

Compiler output:
main.c: In function 'main':
main.c:17:25: error: expected ';' before 'scanf'
   17 |                 puts("")
      |                         ^
      |                         ;
   18 |                 scanf("%d %d", &H, &W);
      |                 ~~~~~
Language: C

#include <Stdio.h>

void create_rectangle(int width, int height) {
    int i, j;
    
    for(i = 0; i < height; i++) {
        for(j = 0; j < width; j++) {
            putchar('#');
        }
        putchar('\n');
    }
}

int main(void) {
    int w, h;
    
    do {
        scanf("%d %d", &h, &w);
        create_rectangle(w, h);
        putchar('\n');
    }while((w != 0) || (h != 0));
    
    
    
    return(0);
}

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

#include <Stdio.h>

void create_rectangle(int width, int height) {
    int i, j;
    
    for(i = 0; i < height; i++) {
        for(j = 0; j < width; j++) {
            putchar('#');
        }
        putchar('\n');
    }
}

int main(void) {
    int w, h;
    
    do {
        scanf("%d %d", &h, &w);
        if(h == 0 && w == 0)
            break;
        create_rectangle(w, h);
        
        putchar('\n');
    }while((w != 0) || (h != 0));
    
    return(0);
}

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

#include <Stdio.h>

void create_rectangle(int width, int height) {
    int i, j;
    
    for(i = 0; i < height; i++) {
        for(j = 0; j < width; j++) {
            putchar('#');
        }
        putchar('\n');
    }
}

int main(void) {
    int w, h;
    
    do {
        scanf("%d %d", &h, &w);
        if(h == 0 && w == 0)
            break;
        else {
            create_rectangle(w, h);
        
            putchar('\n');
        }
    }while((w != 0) || (h != 0));
    
    return(0);
}

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

#include <Stdio.h>

int main(void) {
    int w, h;
    int i, j;
    
    do {
        scanf("%d %d", &h, &w);
        if(h == 0 && w == 0)
            break;
        else {
            for(i = 0; i < h; i++) {
                for(j = 0; j < w; j++) {
                    putchar('#');
                }
                putchar('\n');
            }
            putchar('\n');
        }
    }while((w != 0) || (h != 0));
    
    return(0);
}

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

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

Compiler output:
main.c:1:19: warning: extra tokens at end of #include directive
    1 | #include <stdio.h>#include <stdlib.h> int main(){    int H,W,i,j;    while(1){        scanf("%d %d",&H,&W);        if(H == 0){            if(W == 0){                break;            }        }        for(i = 0;i < H;i++){            for(j = 0;j < W;j++){                printf("#");            }        printf("\n");        }    printf("\n");    }    return 0;}
      |                   ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include <stdio.h>

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

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

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

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

        if(j==W)
          printf("\n");
       }
     ]
    printf("\n");
    }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:6: error: expected statement before ']' token
   23 |      ]
      |      ^
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:14:14: error: stray '\' in program
   14 |     putchar(7\n');
      |              ^
main.c:14:14: error: expected ')' before 'n'
   14 |     putchar(7\n');
      |            ~ ^~
      |              )
main.c:14:16: warning: missing terminating ' character
   14 |     putchar(7\n');
      |                ^
main.c:14:16: error: missing terminating ' character
   14 |     putchar(7\n');
      |                ^~~
main.c:14:16: error: expected ';' before '}' token
   14 |     putchar(7\n');
      |                ^
      |                ;
   15 |   }
      |   ~
Language: C


#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:16:3: error: expected declaration or statement at end of input
   16 |   }
      |   ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:24:25: error: implicit declaration of function 'putcahr'; did you mean 'putchar'? [-Wimplicit-function-declaration]
   24 |                         putcahr('\n')
      |                         ^~~~~~~
      |                         putchar
main.c:24:38: error: expected ';' before '}' token
   24 |                         putcahr('\n')
      |                                      ^
      |                                      ;
   25 |                 }
      |                 ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:24:38: error: expected ';' before '}' token
   24 |                         putchar('\n')
      |                                      ^
      |                                      ;
   25 |                 }
      |                 ~
Language: C

int main(){
    
    int h[300],w[300];
    int i,j;
    int count = 0;
    
    i=0; j=0;

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

Compiler output:
main.c: In function 'main':
main.c:10:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   10 |         scanf("%d %d",&h[count],&w[count]);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:10:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   10 |         scanf("%d %d",&h[count],&w[count]);
      |         ^~~~~
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:24:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   24 |                 printf("#");
      |                 ^~~~~~
main.c:24:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:24:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:24:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:26:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   26 |             printf("\n");
      |             ^~~~~~
main.c:26:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:29:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   29 |         printf("\n");
      |         ^~~~~~
main.c:29:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:26: error: 'x' undeclared (first use in this function)
    4 |     while(scanf("%d %d",&x,&y),H!=0 && W!=0){
      |                          ^
main.c:4:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:29: error: 'y' undeclared (first use in this function)
    4 |     while(scanf("%d %d",&x,&y),H!=0 && W!=0){
      |                             ^
Language: C

include<stdio.h>

int main(){
  int h,w,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");
  }
  printf("\n");
  }
  return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:1: error: expected declaration or statement at end of input
   10 | }
      | ^
Language: C++

#include <stdio.h>
#include <math.h>

int main(void)
{
	int h, w;
	int flag = 0;
	
	while (scanf("%d %d", &h, &w) * h){
		while (h-- > 0){
			while (w-- > 0){
				putchar('#');
			}#include <stdio.h>
#include <math.h>

int main(void)
{
	int h, w;
	
	while (scanf("%d %d", &h, &w) * h){
		while (h-- > 0){
			int i;
			for (i = 0; i < w; i++){
				putchar('#');
			}
			puts("");
		}
		puts("");
	}
	
	return 0;
}

			puts("");
		}
		puts("");
	}
	
	return 0;
}

Compiler output:
a.cc:13:26: error: stray '#' in program
   13 |                         }#include <stdio.h>
      |                          ^
a.cc: In function 'int main()':
a.cc:13:27: error: 'include' was not declared in this scope
   13 |                         }#include <stdio.h>
      |                           ^~~~~~~
a.cc:13:36: error: 'stdio' was not declared in this scope; did you mean 'stdin'?
   13 |                         }#include <stdio.h>
      |                                    ^~~~~
      |                                    stdin
a.cc:16:1: error: expected primary-expression before 'int'
   16 | int main(void)
      | ^~~
Language: C++


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

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:3:1: error: expected unqualified-id before 'public'
    3 | public class Main{
      | ^~~~~~
Language: C++

import java.util.Scanner;

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

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:15: error: expected ':' before 'static'
    4 |         public static void main(String[] args){
      |               ^~~~~~~
      |               :
a.cc:4:33: error: 'String' has not been declared
    4 |         public static void main(String[] args){
      |                                 ^~~~~~
a.cc:4:42: error: expected ',' or '...' before 'args'
    4 |         public static void main(String[] args){
      |                                          ^~~~
a.cc:23:2: error: expected ';' after class definition
   23 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Aoj10012::main(int*)':
a.cc:5:17: error: 'Scanner' was not declared in this scope
    5 |                 Scanner input = new Scanner(System.in);
      |                 ^~~~~~~
a.cc:10:33: error: 'input' was not declared in this scope; did you mean 'int'?
   10 |                         int H = input.nextInt();
      |                                 ^~~~~
      |                                 int
a.cc:16:60: error: 'System' was not declared in this scope
   16 |                                 for (int j = 0; j < W; j++)System.out.print("#");
      |                                                            ^~~~~~
a.cc:17:33: error: 'System' was not declared in this scope
   17 |                                 System.out.println();
      |                                 ^~~~~~
a.cc:20:25: error: 'System' was not declared in this scope
   20 |                         System.out.println();
      |                         ^~~~~~
Language: C++

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

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

#include "stdafx.h"


int _tmain(int argc, _TCHAR* argv[])
{
	int h;
	int w;

	while(1){

	scanf ("%d %d", &h,&w);

	if(w>300)
		break;
	if(h<1)
		break;
		
	for(int i = 0;i < h; i++){
		for(int k = 0;k< w; k++)
			printf("#");
			printf("\n");
		

		}

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

	return 0;

}

Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <stdio.h>


int main()
{
	int h;
	int w;

	while(1){

	scanf ("%d %d", &h,&w);

	if(w>300)
		break;
	if(h<1)
		break;
		
	for(int i = 0;i < w; i++){
		for(int k = 0;k< h; k++)
			printf("#");
		printf("\n");

		}

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

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

#include <stdio.h>


int main(void)
{
	int h;
	int w;

	while(1){

	scanf ("%d %d", &h,&w);

	if(w>300)
		break;
	if(h<1)
		break;
		
	for(int i = 0;i < w; i++){
		for(int k = 0;k< h; k++)
			printf("#");
		printf("\n");

		}

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

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

#include <stdafx.h>


int main(void)
{
	int h;
	int w;

	while(1){

	scanf ("%d %d", &h,&w);

	if(w>300)
		break;
	if(h<1)
		break;
		
	for(int i = 0;i < h; i++){
		for(int k = 0;k< (w-1); k++){
			printf("#");
		}
		printf("#\n");
		}
????????????????????????printf("\n");

	if(h&&w==0)
		break;
	}
???????????????
	return 0;

}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'Hi' was not declared in this scope; did you mean 'i'?
    8 | for(i=0;i<Hi++){
      |           ^~
      |           i
a.cc:8:15: error: expected ';' before ')' token
    8 | for(i=0;i<Hi++){
      |               ^
      |               ;
Language: C++

i,h;main(w){for(;scanf("%d%d",&h,&w),h|w;)for(;h--?:!puts("");puts(""))for(i=0;i++<w;)printf("#");}

Compiler output:
a.cc:1:1: error: 'i' does not name a type
    1 | i,h;main(w){for(;scanf("%d%d",&h,&w),h|w;)for(;h--?:!puts("");puts(""))for(i=0;i++<w;)printf("#");}
      | ^
a.cc:1:9: error: expected constructor, destructor, or type conversion before '(' token
    1 | i,h;main(w){for(;scanf("%d%d",&h,&w),h|w;)for(;h--?:!puts("");puts(""))for(i=0;i++<w;)printf("#");}
      |         ^
Language: C++

#include<cstdio>
i,h;main(w){for(;scanf("%d%d",&h,&w),h|w;)for(;h--?:!puts("");puts(""))for(i=0;i++<w;)printf("#");}

Compiler output:
a.cc:2:1: error: 'i' does not name a type
    2 | i,h;main(w){for(;scanf("%d%d",&h,&w),h|w;)for(;h--?:!puts("");puts(""))for(i=0;i++<w;)printf("#");}
      | ^
a.cc:2:9: error: expected constructor, destructor, or type conversion before '(' token
    2 | i,h;main(w){for(;scanf("%d%d",&h,&w),h|w;)for(;h--?:!puts("");puts(""))for(i=0;i++<w;)printf("#");}
      |         ^
Language: C++

#include<cstdio>
i,h;
main(w){
  for(;scanf("%d%d",&h,&w),h|w;)
    for(;h--?:!puts("");puts(""))
      for(i=0;i++<w;)
	printf("#");
}

Compiler output:
a.cc:2:1: error: 'i' does not name a type
    2 | i,h;
      | ^
a.cc:3:5: error: expected constructor, destructor, or type conversion before '(' token
    3 | main(w){
      |     ^
Language: C++

i,h;main(w){for(;scanf("%d%d",&h,&w),h|w;puts(""))for(i=0;i<h*w;++i%w?printf("#"):puts("#"));}

Compiler output:
a.cc:1:1: error: 'i' does not name a type
    1 | i,h;main(w){for(;scanf("%d%d",&h,&w),h|w;puts(""))for(i=0;i<h*w;++i%w?printf("#"):puts("#"));}
      | ^
a.cc:1:9: error: expected constructor, destructor, or type conversion before '(' token
    1 | i,h;main(w){for(;scanf("%d%d",&h,&w),h|w;puts(""))for(i=0;i<h*w;++i%w?printf("#"):puts("#"));}
      |         ^
Language: C++

h;main(w){for(;scanf("%d%d",&h,&w),h;puts(""))for(h=h*w;h--;h%w?printf("#"):puts("#"));}

Compiler output:
a.cc:1:1: error: 'h' does not name a type
    1 | h;main(w){for(;scanf("%d%d",&h,&w),h;puts(""))for(h=h*w;h--;h%w?printf("#"):puts("#"));}
      | ^
a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token
    1 | h;main(w){for(;scanf("%d%d",&h,&w),h;puts(""))for(h=h*w;h--;h%w?printf("#"):puts("#"));}
      |       ^
Language: C++

h;main(w){for(;scanf("%d%d",&h,&w),h|w;puts(""))for(h=h*w;h--;h%w?printf("#"):puts("#"));}

Compiler output:
a.cc:1:1: error: 'h' does not name a type
    1 | h;main(w){for(;scanf("%d%d",&h,&w),h|w;puts(""))for(h=h*w;h--;h%w?printf("#"):puts("#"));}
      | ^
a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token
    1 | h;main(w){for(;scanf("%d%d",&h,&w),h|w;puts(""))for(h=h*w;h--;h%w?printf("#"):puts("#"));}
      |       ^
Language: C++

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) {
		print();
	}

	public static void print() {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			StringBuilder sb =new StringBuilder();
			String str = br.readLine();
			while (str != null) {
				String[] nums = str.split(" ", 0);
				int height = Integer.parseInt(nums[0]);
				int width = Integer.parseInt(nums[1]);

				if(height == 0 && width == 0){
					break;
				}

				for(int i = 0; i < width; i ++){
					sb.append("#");
				}
				for(int i = 0; i < height; i++){
					System.out.println(sb);
				}
				str = br.readLine();
				System.out.println("");
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.BufferedReader;
      | ^~~~~~
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.io.IOException;
      | ^~~~~~
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.io.InputStreamReader;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: expected unqualified-id before 'public'
    5 | public class Main {
      | ^~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef complex<double> P;
typedef pair<int,int> pii;
#define REP(i,n) for(ll i=0;i<n;++i)
#define REPR(i,n) for(ll i=1;i<n;++i)
#define FOR(i,a,b) for(ll i=a;i<b;++i)

#define DEBUG(x) cout<<#x<<": "<<x<<endl
#define DEBUG_VEC(v) cout<<#v<<":";REP(i,v.size())cout<<" "<<v[i];cout<<endl
#define ALL(a) (a).begin(),(a).end()

#define MOD (ll)(1e9+7)
#define ADD(a,b) a=((a)+(b))%MOD
#define FIX(a) ((a)%MOD+MOD)%MOD

int main(){
int h,w;
while(cin>>h>>w,h||w){
REP(i,h){
REP(j,w)cout<<"#";
cout<<endl;
}
  return 0;
}

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

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 << "#";
			}
			printf("\n");
		}
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'cin' was not declared in this scope
    6 |                 cin >> h >> w;
      |                 ^~~
a.cc:13:33: error: 'cout' was not declared in this scope
   13 |                                 cout << "#";
      |                                 ^~~~
a.cc:15:25: error: 'printf' was not declared in this scope
   15 |                         printf("\n");
      |                         ^~~~~~
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++

loop do
h,w = gets.split.map(&:to_i)
break if h==0 && w==0

h.times{puts '#'*w}
puts ''
end

Compiler output:
a.cc:6:6: error: empty character constant
    6 | puts ''
      |      ^~
a.cc:1:1: error: 'loop' does not name a type
    1 | loop do
      | ^~~~
a.cc:6:1: error: 'puts' does not name a type
    6 | puts ''
      | ^~~~
Language: C++

#include <iostream>
using namespace std;

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

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

#include <stdio.h>
#include <iostream>

using namespace std;

main(void) {
	int a;
	int b;	
	scanf("%d",&a);
	scanf("%d",&b);
	int i;
	int j;
	for ( i = 0; i < a; i++){
		for ( j = 0; j < b; j++) printf('#');
		printf("\n");
	}
	
	return 0;
}

Compiler output:
a.cc:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | main(void) {
      | ^~~~
a.cc: In function 'int main()':
a.cc:14:49: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   14 |                 for ( j = 0; j < b; j++) 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, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~