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

#include<stdio.h>

int main( ){

  int H,W,S,T;
  scanf("%d %d",&H,&W);
if(H==0&&W==0){break;}
  for (S=0;S<H;S++){
    for (T=0;T<W;T++){
      printf("#");} 
     if(H==0&&W==0){break;}
printf("\n");
 }
  printf("\n");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:16: error: break statement not within loop or switch
    7 | if(H==0&&W==0){break;}
      |                ^~~~~
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    5 | scanf("%d %d",&H,&W);
      | ^~~~~
main.c:6:10: error: 'W' undeclared (first use in this function)
    6 | if(H==0&&W==0)
      |          ^
main.c:6:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:13: error: expected identifier or '(' before '=' token
    4 |         int = H, W, i;
      |             ^
main.c:7:24: error: 'W' undeclared (first use in this function)
    7 |         scanf("%d %d",&W,&H);
      |                        ^
main.c:7:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:27: error: 'H' undeclared (first use in this function)
    7 |         scanf("%d %d",&W,&H);
      |                           ^
main.c:8:13: error: 'i' undeclared (first use in this function)
    8 |         for(i = 0; i < H; i++){
      |             ^
main.c:9:33: error: expected ')' before '{' token
    9 |            for(i = 0; i < W; i++{
      |               ~                 ^
      |                                 )
main.c:13:1: error: expected expression before '}' token
   13 | }
      | ^
main.c:14:24: error: expected ';' before 'return'
   14 | }while(W == 0 && H ==0)
      |                        ^
      |                        ;
   15 | 
   16 | return 0;
      | ~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:13: error: expected identifier or '(' before '=' token
    4 |         int = H, W, i;
      |             ^
main.c:7:24: error: 'W' undeclared (first use in this function)
    7 |         scanf("%d %d",&W,&H);
      |                        ^
main.c:7:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:27: error: 'H' undeclared (first use in this function)
    7 |         scanf("%d %d",&W,&H);
      |                           ^
main.c:8:13: error: 'i' undeclared (first use in this function)
    8 |         for(i = 0; i < H; i++){
      |             ^
main.c:9:33: error: expected ')' before '{' token
    9 |            for(i = 0; i < W; i++{
      |               ~                 ^
      |                                 )
main.c:13:1: error: expected expression before '}' token
   13 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:13: error: expected identifier or '(' before '=' token
    4 |         int = H, W, i;
      |             ^
main.c:7:24: error: 'W' undeclared (first use in this function)
    7 |         scanf("%d %d",&W,&H);
      |                        ^
main.c:7:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:27: error: 'H' undeclared (first use in this function)
    7 |         scanf("%d %d",&W,&H);
      |                           ^
main.c:8:13: error: 'i' undeclared (first use in this function)
    8 |         for(i = 0; i < H; i++){
      |             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:13: error: expected identifier or '(' before '=' token
    4 |         int = H, W, i;
      |             ^
main.c:7:24: error: 'W' undeclared (first use in this function)
    7 |         scanf("%d %d",&W,&H);
      |                        ^
main.c:7:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:27: error: 'H' undeclared (first use in this function)
    7 |         scanf("%d %d",&W,&H);
      |                           ^
main.c:8:13: error: 'i' undeclared (first use in this function)
    8 |         for(i = 0; i < H; i++){
      |             ^
main.c:14:18: error: expected expression before '!=' token
   14 | }while(W != 0 || !=0);
      |                  ^~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:18: error: expected expression before '!=' token
   14 | }while(W != 0 || !=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++){
    printf("\n");
    for(j=0; j<W; j++){
      printf("#");
    }
  }
  }
  return 0;
}

Compiler output:
main.c:1:1: error: stray '`' in program
    1 | `#include <stdio.h>
      | ^
main.c:1:2: error: stray '#' in program
    1 | `#include <stdio.h>
      |  ^
main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | `#include <stdio.h>
      |           ^
Language: C

#include<stdio.h>
int main(void){
    int w,h,i,j,;
    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("#");
            }
            printf("\n");
        }
        printf("\n");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:17: error: expected identifier or '(' before ';' token
    3 |     int w,h,i,j,;
      |                 ^
Language: C

#include <stdio.h>
int main(void)
int hako[300][300]
{
int i,j;
int hako[][]

scanf("%d %d",&H,&W);
for (i = 0;i < H;i++){
 printf("\n");
   for (j = 0;j < W; j++)
      printf("#",hako[i][j];
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    4 | {
      | ^
main.c:16: error: expected '{' at end of input
Language: C

#include <stdio.h>
int main(void)
{
int i,j;
int H,W;
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");
} 

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

#include <stdio.h>
int main(void)
{
int i,j;
int H,W;
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: In function 'main':
main.c:19:1: error: expected declaration or statement at end of input
   19 | }
      | ^
Language: C

#include<stdio.h>

int main(){
	int H,W,x,j.i;
	for(x=0;x<100000;x++){
		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:4:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    4 |         int H,W,x,j.i;
      |                    ^
main.c:10:13: error: 'i' undeclared (first use in this function)
   10 |         for(i=0;i<H;i++){
      |             ^
main.c:10:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:21: error: 'j' undeclared (first use in this function)
   11 |                 for(j=0;j<W;j++){
      |                     ^
Language: C

#include<stdio.h>

int main(void){
	int H,W,x,j.i;
	for(x=0;x<100000;x++){
		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:4:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    4 |         int H,W,x,j.i;
      |                    ^
main.c:10:13: error: 'i' undeclared (first use in this function)
   10 |         for(i=0;i<H;i++){
      |             ^
main.c:10:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:21: error: 'j' undeclared (first use in this function)
   11 |                 for(j=0;j<W;j++){
      |                     ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:4:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    4 |         int H,W,x,j.i;
      |                    ^
main.c:10:13: error: 'i' undeclared (first use in this function)
   10 |         for(i=0;i<H;i++){
      |             ^
main.c:10:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:21: error: 'j' undeclared (first use in this function)
   11 |                 for(j=0;j<W;j++){
      |                     ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c:16:10: error: expected identifier or '(' before 'return'
   16 |         }return 0;
      |          ^~~~~~
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }
      | ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c:17:10: error: expected identifier or '(' before 'return'
   17 |         }return 0;
      |          ^~~~~~
main.c:18:1: error: expected identifier or '(' before '}' token
   18 | }
      | ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c:19:1: error: expected identifier or '(' before '}' token
   19 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:32: error: 'H' undeclared (first use in this function)
    6 |                 scanf("%d %d",&H,&W);
      |                                ^
main.c:6:32: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:35: error: 'W' undeclared (first use in this function)
    6 |                 scanf("%d %d",&H,&W);
      |                                   ^
Language: C

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

Compiler output:
main.c:1:2: error: stray '#' in program
    1 | a#include<stdio.h>
      |  ^
main.c:1:1: error: unknown type name 'a'
    1 | a#include<stdio.h>
      | ^
main.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | a#include<stdio.h>
      |          ^
Language: C

int a, b;
int i, j;
while(scanf("%d %d", &a, &b) != EOF){
  for (i = 0; i < a; i++){
    for (j = 0; j < b; j++){
      printf("#");
    }
    printf("\n");
  }
  printf("\n");
}

Compiler output:
main.c:3:1: error: expected identifier or '(' before 'while'
    3 | while(scanf("%d %d", &a, &b) != EOF){
      | ^~~~~
Language: C

int a, b;
int i, j;
while(scanf("%d %d", &a, &b) != EOF) {
  for (i = 0; i < a; i++){
    for (j = 0; j < b; j++){
      printf("#");
    }
    printf("\n");
  }
  printf("\n");
}

return 0;

Compiler output:
main.c:3:1: error: expected identifier or '(' before 'while'
    3 | while(scanf("%d %d", &a, &b) != EOF) {
      | ^~~~~
main.c:13:1: error: expected identifier or '(' before 'return'
   13 | return 0;
      | ^~~~~~
Language: C

int main(int argc, const char * argv[]){
    int H,W,i,j;
    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");
            }
        }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |     scanf("%d %d",&H,&W);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(int argc, const char * argv[]){
main.c:3:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |     scanf("%d %d",&H,&W);
      |     ^~~~~
main.c:3:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:9: error: break statement not within loop or switch
    5 |         break;
      |         ^~~~~
main.c:9:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |                 printf("#");
      |                 ^~~~~~
main.c:9:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   11 |             printf("\n");
      |             ^~~~~~
main.c:11:13: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main(int argc, const char * argv[]){
    int H,W,i,j;
    scanf("%d %d",&H,&W);
    if(H<=300 && W<=300){
         if(H==0 && W==0){
        break;
        }else{
        for(i=1;i<=H;i++){
            for(j=1;j<=W;j++){
                printf("#");
                }
            printf("\n");
            }
        }
   }else{
        break;
    }
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |     scanf("%d %d",&H,&W);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(int argc, const char * argv[]){
main.c:3:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |     scanf("%d %d",&H,&W);
      |     ^~~~~
main.c:3:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:9: error: break statement not within loop or switch
    6 |         break;
      |         ^~~~~
main.c:10:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |                 printf("#");
      |                 ^~~~~~
main.c:10:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   12 |             printf("\n");
      |             ^~~~~~
main.c:12:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:9: error: break statement not within loop or switch
   16 |         break;
      |         ^~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:17: error: 'h' undeclared (first use in this function)
    4 |  scanf("%d %d",&h,&w);
      |                 ^
main.c:4:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:20: error: 'w' undeclared (first use in this function)
    4 |  scanf("%d %d",&h,&w);
      |                    ^
main.c:8:7: error: 'j' undeclared (first use in this function)
    8 |  for (j=0 ; j<h ; j++) {
      |       ^
main.c:9:7: error: 'i' undeclared (first use in this function)
    9 |  for (i=0 ; i<w ; i++) {
      |       ^
main.c:11:13: error: expected ')' before '{' token
   11 |   if (!(i%2) {
      |      ~      ^~
      |             )
main.c:14:2: error: expected expression before '}' token
   14 |  }
      |  ^
main.c:15:1: error: expected declaration or statement at end of input
   15 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:13: error: 'a' undeclared (first use in this function)
    5 |         if (a == 0 && b == 0) break;
      |             ^
main.c:5:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:23: error: 'b' undeclared (first use in this function)
    5 |         if (a == 0 && b == 0) break;
      |                       ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:13: error: expected ';' before '}' token
   10 | printf("\n")
      |             ^
      |             ;
   11 | }else{
      | ~
Language: C

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

if(w==0){
printf("\n")
}else{
printf("#");
}

}
if(h==0)printf("\n");
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:13: error: expected ';' before '}' token
   11 | printf("\n")
      |             ^
      |             ;
   12 | }else{
      | ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:5: error: unknown type name 'var'
    7 | for(var i;i<h;i++){
      |     ^~~
main.c:8:5: error: unknown type name 'var'
    8 | for(var j;j<h;j++){
      |     ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:5: error: unknown type name 'var'
    7 | for(var i;i<h;i++){
      |     ^~~
main.c:8:5: error: unknown type name 'var'
    8 | for(var j;j<w;j++){
      |     ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:5: error: unknown type name 'var'
    7 | for(var i=0;i<h;i++){
      |     ^~~
main.c:8:5: error: unknown type name 'var'
    8 | for(var j=0;j<w;j++){
      |     ^~~
Language: C

#include<stdio.h>

int main(void){

	int h, w,i,j;

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

	while (w!=0&&h!=0){

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

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

include<stdio.h>
#define N 256

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

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

#include<stdio.h>

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

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

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

#include <stdio.h>
int main ()
{
	int HW[10000][2],i;
	do{
		scanf("%d %d",&HW[i][0],&HW[i][1]);	
		i++;
	}while(HW[i-1][0]==0 && HW[i-1][1]==0);
	for(i=0;i<HW[i][0];i++){
		for(j=0;j<HW[i][1];j++){
			printf("#");
		}
		printf("\n");
	}
}

Compiler output:
main.c: In function 'main':
main.c:10:21: error: 'j' undeclared (first use in this function)
   10 |                 for(j=0;j<HW[i][1];j++){
      |                     ^
main.c:10:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:35: error: 'H' undeclared (first use in this function)
   11 |                         for(k=0;k<H[i][1];k++){
      |                                   ^
main.c:11:35: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main ()
{
	int HW[10000][2],i=0,j,l,k;
	while(1){
		scanf("%d %d",&HW[i][0],&HW[i][1]);	
		if(HW[i][0]==0 && HW[i][0]==1)break;
		i++;
	}
	for(j=0;j<i;j++){
		for(l=0;l<HW[j][0];l++){
			for(k=0;k<H[i][1];k++){
				printf("#");
			}
			printf("\n");
		}
		printf("\n");
	}
}

Compiler output:
main.c: In function 'main':
main.c:12:35: error: 'H' undeclared (first use in this function)
   12 |                         for(k=0;k<H[i][1];k++){
      |                                   ^
main.c:12:35: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main ()
{
	int HW[10000][2],i=0,j,l,k;
	while(1){
		scanf("%d %d",&HW[i][0],&HW[i][1]);	
		if(HW[i][0]==0 && HW[i][1]==0)break;
		i++;
	}
	for(j=0;j<i;j++){
		for(l=0;l<HW[j][0];l++){
			for(k=0;k<H[i][1];k++){
				printf("#");
			}
			printf("\n");
		}
		printf("\n");
	}
}

Compiler output:
main.c: In function 'main':
main.c:12:35: error: 'H' undeclared (first use in this function)
   12 |                         for(k=0;k<H[i][1];k++){
      |                                   ^
main.c:12:35: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main ()
{
	int HW[10000][2],i=0,j,l,k;
	while(1){
		scanf("%d %d",&HW[i][0],&HW[i][1]);	
		if(HW[i][0]==0 && HW[i][1]==0)break;
		i++;
	}
	for(j=0;j<i;j++){
		for(l=0;l<HW[j][0];l++){
			for(k=0;k<H[j][1];k++){
				printf("#");
			}
			printf("\n");
		}
		printf("\n");
	}
}

Compiler output:
main.c: In function 'main':
main.c:12:35: error: 'H' undeclared (first use in this function)
   12 |                         for(k=0;k<H[j][1];k++){
      |                                   ^
main.c:12:35: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <iostream>
using namespace std;
#include <stdio.h>
int main()
{
	int HW[10000][2], i = 0, j, l, k;
	while (1){
		cin >> HW[i][0] >> HW[i][1];
		if (HW[i][0] == 0 && HW[i][1] == 0)break;
		i++;
	}
	for (j = 0; j<i; j++){
		for (l = 0; l<HW[j][0]; l++){
			for (k = 0; k<HW[j][1]; k++){
				printf("#");
			}
			printf("\n");
		}
		printf("\n");
	}
}

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

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

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'while'
    4 |         while(H!=0&&W!=0){
      |         ^~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'while'
    4 |         while(H!=0&&W!=0){
      |         ^~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'while'
    4 |         while(H!=0&&W!=0){
      |         ^~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:21: error: expected ';' before ')' token
    6 |     for(i=0;i<=x,i++)
      |                     ^
      |                     ;
main.c:8:25: error: expected ';' before ')' token
    8 |         for(j=0;j<=y,j++)
      |                         ^
      |                         ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:9: error: 'i' undeclared (first use in this function)
   10 |     for(i=0;i<=b;i++)
      |         ^
main.c:10:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:3: error: expected declaration or statement at end of input
   19 |   }
      |   ^
main.c:19:3: error: expected declaration or statement at end of input
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:9: error: 'i' undeclared (first use in this function)
   10 |     for(i=0;i<b;i++)
      |         ^
main.c:10:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:3: error: expected declaration or statement at end of input
   19 |   }
      |   ^
main.c:19:3: error: expected declaration or statement at end of input
Language: C





 


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

Compiler output:
main.c: In function 'main':
main.c:19:9: error: 'i' undeclared (first use in this function)
   19 |     for(i=0;i<=b;i++)
      |         ^
main.c:19:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:30:5: error: expected declaration or statement at end of input
   30 |     }
      |     ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:13: error: 'k' undeclared (first use in this function)
   11 |     for(d=0;k<b;d++){
      |             ^
main.c:11:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
  int H,W=1;
  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("#");}
        printf("\n");}
    printf("\n");
    scanf("%d%d",&H,&W);}
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:17: error: expected expression before ';' token
    7 |     for(i=0;i<H+;i++){
      |                 ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:3: error: expected declaration or statement at end of input
   14 |   return 0;
      |   ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:3: error: expected declaration or statement at end of input
   14 |   return 0;
      |   ^~~~~~
Language: C

#include <stdio.h>
int main()
{
  int H, W;
  scanf("%d %d", &H, &W);

  int a, b;

  for(a=0; a<=H-1; a++){
    for(b=0; b<=W-1; b++){
    printf("#");
    }
  printf("\n");
  }
  printf("\n")
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:15: error: expected ';' before 'return'
   15 |   printf("\n")
      |               ^
      |               ;
   16 |   return 0;
      |   ~~~~~~
Language: C

#include<stdio.h>

int main(void){

int H,W,x,y;

while(1){

scanf("%d %d\n",&H,&W);

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

for(x=0; x<H; x++){
for(y=0; y<W;y++){

printf("#");

}

printf("\n");

}

return 0;
}

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

#include<stdio.h>

int main (void)
{
	int H;
	int W;
	int i,j;
		
	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("#");
			}
			printf("\n");
			
		
		}
		printf("\n");		
	}
		
	return 0;

Compiler output:
main.c: In function 'main':
main.c:23:9: error: expected declaration or statement at end of input
   23 |         return 0;
      |         ^~~~~~
Language: C

#include <stdio.h>

int main(void){
  char a = '#';
  int h, w, i, ii, b;
  scanf("%d %d", &h, &w);
  for(b = 0; b < 1; b--)
    {
     if((h != 0)&&(w != 0))
       {
        for(i = 0; i < h; i++)
          {
            for(ii = 0; ii < w; ii++)
             {
	      printf("%c", a);
             }
	    printf("\n");
            }
	scanf("%d %d", &h, &w);
       }
       printf("\n");
     else
       {
	 break;
       }
    }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:6: error: 'else' without a previous 'if'
   22 |      else
      |      ^~~~
Language: C

#include <stdio.h>
int main()
{
    int i,j,H,W;
    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("#\n");
                   }
              printf("\n";)
              }
         printf("\n");
        }
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:26: error: expected ')' before ';' token
   14 |               printf("\n";)
      |                     ~    ^
      |                          )
main.c:14:28: error: expected ';' before '}' token
   14 |               printf("\n";)
      |                            ^
      |                            ;
   15 |               }
      |               ~
Language: C

#include <stdio.h>
int main()
{
    int i,j,H,W;
    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";)
              }
         printf("\n");
        }
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:26: error: expected ')' before ';' token
   14 |               printf("\n";)
      |                     ~    ^
      |                          )
main.c:14:28: error: expected ';' before '}' token
   14 |               printf("\n";)
      |                            ^
      |                            ;
   15 |               }
      |               ~
Language: C

#include <stdio.h>
int main(void)
{
	int vertical, horizonal;
	
	fscanf(stdin, "%d %d", &vertical, &);
	while (vertical && horizonal) {
		while (vertical--) {
			while (horizonal) fputc('#', stdout);
			fputc('\n', stdout);
		}
	fscanf(stdin, "%d %d", &vertical, &horizonal);
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:44: error: expected expression before ')' token
    6 |         fscanf(stdin, "%d %d", &vertical, &);
      |                                            ^
Language: C

#include <stdio.h>
int main(void)
{
	int vertical, horizonal, work;
	
	fscanf(stdin, "%d %d", &vertical, &horizonal);
	while (vertical && horizonal) {
		while (vertical--) {
			work = horizonal;
			while (work--) fputc('#', stdout);
			fputc('\n', stdout);
		}
		foutc('\n', stdout);
	fscanf(stdin, "%d %d", &vertical, &horizonal);
	}
	
	return 0;
}

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

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

Compiler output:
main.c:16:3: error: expected identifier or '(' before 'return'
   16 |   return 0;
      |   ^~~~~~
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }
      | ^
Language: C

#include<stdio.h>

int main(void) {
int H,W;
int x,y;

while(scanf("%d %d", &H, &W), (H+W) != 0) {
for (x = 0; x < H; x++) {
for (y = 0; y < W; y++) {
printf("#");
}
printf("\n");
}
printf("\n")
}

return (0);
}

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

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

Compiler output:
main.c: In function 'main':
main.c:16:21: error: expected ';' before 'return'
   16 |         printf("\n")
      |                     ^
      |                     ;
   17 | 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++)
				putchar('#');
			putchar('\n');
		}
		putchar('\n');

		scanf("%d %d", &H, &W);
	}

	return 0;

Compiler output:
main.c: In function 'main':
main.c:21:9: error: expected declaration or statement at end of input
   21 |         return 0;
      |         ^~~~~~
Language: C

#include <stdio.h>
int yoko,tate;
int x,y;

main(){
while(1){
	
  scanf("%d%d",&tate,&yoko);
  for(x=1;tate>=x;x++){
   for(y=1;yoko>=y;y++){
   printf("#");
   if(yoko==y){printf("\n");}
   if(yoko==y&&tate==x){printf("\n")}
   }
  }
  if(yoko==0&&tate==0){
  return 0;}
}  
}  
  

Compiler output:
main.c:5:1: error: return type defaults to 'int' [-Wimplicit-int]
    5 | main(){
      | ^~~~
main.c: In function 'main':
main.c:13:37: error: expected ';' before '}' token
   13 |    if(yoko==y&&tate==x){printf("\n")}
      |                                     ^
      |                                     ;
Language: C

#include <stdio.h>

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

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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:15:13: error: expected ';' before ':' token
   15 | printf("\n"):
      |             ^
      |             ;
Language: C

#include<stdio.h>
int main(void){
	int i,j,h,w;
	scanf("%d %d",&h[i],&w[j]);
	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:25: error: subscripted value is neither array nor pointer nor vector
    4 |         scanf("%d %d",&h[i],&w[j]);
      |                         ^
main.c:4:31: error: subscripted value is neither array nor pointer nor vector
    4 |         scanf("%d %d",&h[i],&w[j]);
      |                               ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:26: warning: comparison between pointer and integer
    6 |                 for(i=0;i<h;i++){
      |                          ^
main.c:7:34: warning: comparison between pointer and integer
    7 |                         for(j=0;j<w;j++){
      |                                  ^
main.c:12:26: error: lvalue required as left operand of assignment
   12 |                 if(h=0&&w=0){break;
      |                          ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:17:9: error: implicit declaration of function 'prontf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   17 |         prontf("\n");
      |         ^~~~~~
      |         printf
Language: C

#include <stdio.h>

int main( void )
{
	int H, W, H_Cou, W_Cow;
	
	while(1)
	{
		scanf( "%d %d", &H, &W );
		
		if( H == 0 && W == 0 )
		{
			break;
		}
		else
		{
			for( H_Cou = 0; H_Cou < H; H_Cou++ )
			{
				for( W_Cou == 0; W_Cou < W; W_Cou++ )
				{
					printf( "#" );
				}
				
				printf( "\n" );
			}
			
			printf( "\n" );
		}
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:38: error: 'W_Cou' undeclared (first use in this function); did you mean 'W_Cow'?
   19 |                                 for( W_Cou == 0; W_Cou < W; W_Cou++ )
      |                                      ^~~~~
      |                                      W_Cow
main.c:19:38: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main(void){
    int H,W,h,w;
    while{
    scanf("%d %d",&H,&W);
    if(H==0 && W==0)
	beak;
    for(h=0; h<H; h++){
    putchar('#');
    	for(w=0; w<W; w++)
    		putchar('#');
    }
    puchar('\n');
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:10: error: expected '(' before '{' token
    4 |     while{
      |          ^
      |          (
main.c:7:9: error: 'beak' undeclared (first use in this function)
    7 |         beak;
      |         ^~~~
main.c:7:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:5: error: implicit declaration of function 'puchar'; did you mean 'putchar'? [-Wimplicit-function-declaration]
   13 |     puchar('\n');
      |     ^~~~~~
      |     putchar
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:9: error: 'beak' undeclared (first use in this function)
    7 |         beak;
      |         ^~~~
main.c:7:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:5: error: implicit declaration of function 'puchar'; did you mean 'putchar'? [-Wimplicit-function-declaration]
   13 |     puchar('\n');
      |     ^~~~~~
      |     putchar
Language: C

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

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

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

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

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

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:29: error: 'n' undeclared (first use in this function)
    6 |                 scanf("%d",&n);
      |                             ^
main.c:6:29: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:29: error: 'n' undeclared (first use in this function)
    6 |                 scanf("%d",&n);
      |                             ^
main.c:6:29: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>


int main(void) {

	// 1_5-A Print a Rectangle

	int h,w;
	int i,j;
	
	scanf("%d %d",&h,&w);

	for(h!=0 && w!=0){
		for(i=0; i<h; i++){
			for(j=0; j<w; j++){
				printf("#");
			}
			printf("\n");
		}
		printf("\n");
	}
        return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:25: error: expected ';' before ')' token
   13 |         for(h!=0 && w!=0){
      |                         ^
      |                         ;
main.c:13:25: error: expected expression before ')' token
Language: C

#include<iostream>

using namespace std;

int main(){
	for(int i=0;i<4;i++){
		for(int j=0;j<8;j++){
			cout<<"#";
		}
		cout<<endl;
	}
	return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:8:32: error: expected ')' before '{' token
    8 |     while ((H != 0) || (W != 0) {
      |           ~                    ^~
      |                                )
main.c:20:1: error: expected expression before '}' token
   20 | }
      | ^