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

#include <stdio.h>

int main(void)
{
	int h[qty];
	int w[qty];
	int qty;
	int i;
	int j;
	int k;
	
	printf("?????????????§???¢?????????????????????");
	scanf("%d", &qty);
	
	for (i = 0; i < qty; i++)
	{
		printf("????????????1???300?????§??????????¨?????????????");
		scanf("%d %d", h[i], w[i]);
		
		/*+
		if (((h[i] >= 1) && (h[i] <= 300)) && ((w[i] >= 1) && (w[i] <= 300)))
		{
			printf("1???300?????§???????????§??\????????????????????????");
			
			break;
		}
		*/
		
		if ((h[i] == 0) && (w[i] == 0))
		{
			break;
		}
	}
	
	for (i = 0; i < qty; i++)
	{
		for (j = 0; j < h[j]; j++)
		{
			for (k = 0; k < w[k]; k++)
			{
				printf("#");
			}
			printf("\n");
		}
		printf("\n");
	}
	printf("\n");
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:15: error: 'qty' undeclared (first use in this function)
    5 |         int h[qty];
      |               ^~~
main.c:5:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void)
{
	int h[qty];
	int w[qty];
	int qty;
	int i;
	int j;
	int k;
	
	printf("?????????????§???¢?????????????????????");
	scanf("%d", &qty);
	
	for (i = 0; i < qty; i++)
	{
		printf("????????????1???300?????§??????????¨?????????????");
		scanf("%d %d", h[i], w[i]);
		
		/*+
		if (((h[i] >= 1) && (h[i] <= 300)) && ((w[i] >= 1) && (w[i] <= 300)))
		{
			printf("1???300?????§???????????§??\????????????????????????");
			
			break;
		}
		*/
		
		if ((h[i] == 0) && (w[i] == 0))
		{
			break;
		}
	}
	
	for (i = 0; i < qty; i++)
	{
		for (j = 0; j < h[j]; j++)
		{
			for (k = 0; k < w[k]; k++)
			{
				printf("#");
			}
			printf("\n");
		}
		printf("\n");
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:15: error: 'qty' undeclared (first use in this function)
    5 |         int h[qty];
      |               ^~~
main.c:5:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |     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(){
main.c:4:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |     scanf("%d%d", &H, &W);
      |     ^~~~~
main.c:4:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:13: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |             printf("#");
      |             ^~~~~~
main.c:9:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |     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(){
main.c:4:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |     scanf("%d%d", &H, &W);
      |     ^~~~~
main.c:4:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:20: error: 'w' undeclared (first use in this function)
    6 |         if(H==0 && w==0){
      |                    ^
main.c:6:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:13: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |             printf("#");
      |             ^~~~~~
main.c:10:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:13: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |     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(){
main.c:5:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |     scanf("%d%d", &H, &W);
      |     ^~~~~
main.c:5:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |         printf("\n");
      |         ^~~~~~
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

#include <stdio.h>

int main(){
    int H,W,a,b;
    char i;
    i='#';
    scanf("%d%d", &H, &W);
    if (H==0 && W==0){
        return 0;
    }else{
    for(a = 0; a < H; a++){
        printf("\n");
        for(b = 0; b < W; b++){
            printf("#");
        };
    };
    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,a,b;
    char i;
    i='#';
    scanf("%d%d", &H, &W);
    if (H==0 && W==0){
        return 0;
    }else{
    for(a = 0; a < H; a++){
        printf("\n");
        for(b = 0; b < W; b++){
            printf("#");
        }
    }
    return 0;
    
}

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(){
int h,w,y,i;
while(scanf("%d %d\n",&h,&w)!=0){
for (y=0;y<h;y++){
for (i=0;i<w;i++){printf("#");}
printf("\n");};
if (h==0 && w==0)(break);
};
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:19: error: expected expression before 'break'
    8 | if (h==0 && w==0)(break);
      |                   ^~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:23: error: expected ';' before 'for'
    5 | scanf("%d %d\n",&h,&w)
      |                       ^
      |                       ;
    6 | for (y=0;y<h;y++){
      | ~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:23: error: expected ';' before 'for'
    5 | scanf("%d %d\n",&h,&w)
      |                       ^
      |                       ;
    6 | for (y=0;y<h;y++){
      | ~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:2:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ')' token
    2 |     int H, W, i,l);
      |                  ^
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(){
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:9:13: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |             printf("#");
      |             ^~~~~~
main.c:9:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:13: error: 'l' undeclared (first use in this function)
   11 |         for(l=0; l<H; l++){
      |             ^
main.c:11:13: note: each undeclared identifier is reported only once for each function it appears in
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:14:6: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   14 |      printf("\n");
      |      ^~~~~~
main.c:14:6: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:18: error: break statement not within loop or switch
    7 | if(h==0 && w==0) break;
      |                  ^~~~~
main.c: At top level:
main.c:15:1: error: expected identifier or '(' before 'return'
   15 | return 0;
      | ^~~~~~
main.c:16:1: error: expected identifier or '(' before '}' token
   16 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |     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()
main.c:5:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |     scanf("%d%d", &h, &w);
      |     ^~~~~
main.c:5:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:20: error: expected ')' before ';' token
    6 |     if(h!=0 && w!=0;) break;
      |       ~            ^
      |                    )
main.c:9:13: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |             printf("*");
      |             ^~~~~~
main.c:9:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   11 |         printf("\n");
      |         ^~~~~~
main.c:11:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |     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(){
main.c:4:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |     scanf("%d%d", &h, &w);
      |     ^~~~~
main.c:4:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:20: error: expected ')' before ';' token
    5 |     if(h!=0 && w!=0;) break;
      |       ~            ^
      |                    )
main.c:8:13: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |             printf("*");
      |             ^~~~~~
main.c:8:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   10 |         printf("\n");
      |         ^~~~~~
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>

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

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

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

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

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

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

int main(){
  int H, W, a, b, c, d, e, f, w;
  for(a=0;;a++){
      scanf("%d%d",&H,&W);
      if(H==0&&W==0)break;
  w=(W-2);
  for(f=0;f<1;f++){
  for(b=0;b<W;b++){
      printf("#");
  }
  printf("\n");
  
  for(c=0;c<H;c++){if(H==1)break;
      printf("#");
      for(e=0;e<w;e++){
          printf(".");
      }
      printf("#");
      printf("\n");
  }
  for(b=0;b<W;b++){if(H==1)break;
      printf("#");
  }
  printf("\n");
  if(H==1)break;
  printf("\n\n");
  }
  }

Compiler output:
main.c: In function 'main':
main.c:4:7: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |       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(){
main.c:4:7: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |       scanf("%d%d",&H,&W);
      |       ^~~~~
main.c:4:7: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:7: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |       printf("#");
      |       ^~~~~~
main.c:9:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   11 |   printf("\n");
      |   ^~~~~~
main.c:11:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:28:3: error: expected declaration or statement at end of input
   28 |   }
      |   ^
Language: C

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

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, i;

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

while(h == 0, w == 0){for(i = 1; i < h; i++){printf("%c", #*w);}}

return 0;}

Compiler output:
main.c: In function 'main':
main.c:9:59: error: stray '#' in program
    9 | while(h == 0, w == 0){for(i = 1; i < h; i++){printf("%c", #*w);}}
      |                                                           ^
main.c:9:60: error: invalid type argument of unary '*' (have 'int')
    9 | while(h == 0, w == 0){for(i = 1; i < h; i++){printf("%c", #*w);}}
      |                                                            ^~
Language: C

#include <stdio.h>

int main(){

int h, w, i;

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

while(h == 0, w == 0){for(i = 1; i < h; i++){printf("%c", "#"*w);}}

return 0;}

Compiler output:
main.c: In function 'main':
main.c:9:62: error: invalid operands to binary * (have 'char *' and 'int')
    9 | while(h == 0, w == 0){for(i = 1; i < h; i++){printf("%c", "#"*w);}}
      |                                                           ~~~^
      |                                                           |
      |                                                           char *
Language: C

#include <stdio.h>

int main(){

int h, w, i;

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

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

printf("%d", "#"*w);}}

return 0;}

Compiler output:
main.c: In function 'main':
main.c:11:17: error: invalid operands to binary * (have 'char *' and 'int')
   11 | printf("%d", "#"*w);}}
      |              ~~~^
      |              |
      |              char *
Language: C

#include <stdio.h>

int main(){

int h, w, i;

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

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

printf("%d", #*w);}}

return 0;}

Compiler output:
main.c: In function 'main':
main.c:11:14: error: stray '#' in program
   11 | printf("%d", #*w);}}
      |              ^
main.c:11:15: error: invalid type argument of unary '*' (have 'int')
   11 | printf("%d", #*w);}}
      |               ^~
Language: C

#include <stdio.h>

int main(){

int h, w, i, j;

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

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

for(j = 1; i < j; J++){printf("%c", "#");}

}}

return 0;}

Compiler output:
main.c: In function 'main':
main.c:11:19: error: 'J' undeclared (first use in this function)
   11 | for(j = 1; i < j; J++){printf("%c", "#");}
      |                   ^
main.c:11:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'j' undeclared (first use in this function)
    9 |     for(j = 0; i < key; i++) {
      |         ^
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:20: error: 'key' undeclared (first use in this function)
    9 |     for(j = 0; i < key; i++) {
      |                    ^~~
main.c:10:12: error: 'k' undeclared (first use in this function)
   10 |        for(k = 0; k < H[j] ; k++) {
      |            ^
main.c:11:15: error: 'l' undeclared (first use in this function)
   11 |           for(l = 0; l < W[j]; l++) {
      |               ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:20: error: 'key' undeclared (first use in this function)
    9 |     for(j = 0; i < key; i++) {
      |                    ^~~
main.c:9:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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


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

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

#include <stdio.h>

int main(void){

	int a=1;
	int b=1;

	for(a==0 && b==0){
		scanf("%d %d",&a,&b);

		for(int j=0;j<a;j++){

			for(int i=0;i<b;i++){
				printf("#");
			}
			printf("\n");
		}

	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:8:25: error: expected ';' before ')' token
    8 |         for(a==0 && b==0){
      |                         ^
      |                         ;
main.c:8:25: error: expected expression before ')' token
main.c:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^
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;
	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:15:21: error: expected ';' before ':' token
   15 |         printf("\n"):
      |                     ^
      |                     ;
Language: C

#include<stdio.h>

int main(void){

	int a, b, n, m;

	while (1) {
		scanf("%d %d", &a, &b);
		if ((a == 0) && (b == 0))
		{
			break;
		}
		else
		{
			for (m = 1; m <= a; m++)
			{
				for (n = 1; n <= b; n++)
				{
					printf("#");
				}
				printf("\n");
			}
		}
	}
	printf("\n")
	return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:13:28: error: lvalue required as left operand of assignment
   13 |                 if(H=0 && W=0) break;
      |                            ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:13:31: error: lvalue required as left operand of assignment
   13 |                 if(H = 0 && W = 0) break;
      |                               ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:13:36: error: lvalue required as left operand of assignment
   13 |                 else if(H = 0 && W = 0) break;
      |                                    ^
Language: C

  int H,W;
  while(1)
  {
    scanf("%d %d",&H,&W);
    if(H==0&&W==0) break;

    for(int i=0;i<H;i++)
      {
        for(int k=0;k<W;k++)
          putchar('#');
        printf("\n");
      }
      printf("\n");
  }
  return 0;

Compiler output:
main.c:2:3: error: expected identifier or '(' before 'while'
    2 |   while(1)
      |   ^~~~~
main.c:15:3: error: expected identifier or '(' before 'return'
   15 |   return 0;
      |   ^~~~~~
Language: C

#include<stdio.h>
int main(){
  int H[3000], W[3000], i, k, i;
  for(i=0;;i++){
    scanf("%d %d", H[i], W[i]);
  }
  n = i;
  for(i=0;i<n;i++){
    for(l=0;l<H[i];l++){
      for(k=0;k<W[i];k++){
        printf("#");
      }
      printf("\n");
    }
    printf("\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:31: error: redeclaration of 'i' with no linkage
    3 |   int H[3000], W[3000], i, k, i;
      |                               ^
main.c:3:25: note: previous declaration of 'i' with type 'int'
    3 |   int H[3000], W[3000], i, k, i;
      |                         ^
main.c:7:3: error: 'n' undeclared (first use in this function)
    7 |   n = i;
      |   ^
main.c:7:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:9: error: 'l' undeclared (first use in this function)
    9 |     for(l=0;l<H[i];l++){
      |         ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:13: error: 'k' undeclared (first use in this function)
   10 | for(j=0;j<W;k++){
      |             ^
main.c:10: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,i,j;
while(0){
scanf("%d %d",&H,&W);
if((W==0)&&(H==0)){
break;
}
for(i=0;i<H;i++){
for(j=0;j<W;k++){
printf("#");
}
printf("\n");
}
printf("\n");
}
return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:9:13: error: 'k' undeclared (first use in this function)
    9 | for(j=0;j<W;k++){
      |             ^
main.c:9:13: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:16:1: 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=1,W=1,i,j;
while((W!=0)&&(H!=0)){
scanf("%d %d",&H,&W);
for(i=0;i<H;i++){
for(j=0;j<W;k++){
printf("#");
}
printf("\n");
}
printf("\n");
}
return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:7:13: error: 'k' undeclared (first use in this function)
    7 | for(j=0;j<W;k++){
      |             ^
main.c:7:13: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:15:1: error: expected identifier or '(' before 'return'
   15 | return 0;
      | ^~~~~~
main.c:16:1: error: expected identifier or '(' before '}' token
   16 | }
      | ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scan'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scan("%d %d"&a,&b);
      |         ^~~~
      |         scanf
main.c:6:21: error: invalid operands to binary & (have 'char *' and 'int')
    6 |         scan("%d %d"&a,&b);
      |              ~~~~~~~^
      |              |
      |              char *
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |         scanf("%d %d"&a,&b);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:4:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |         scanf("%d %d"&a,&b);
      |         ^~~~~
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:22: error: invalid operands to binary & (have 'char *' and 'int')
    4 |         scanf("%d %d"&a,&b);
      |               ~~~~~~~^
      |               |
      |               char *
main.c:7:25: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |                         printf("#");
      |                         ^~~~~~
main.c:7:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 |                 printf("\n");
      |                 ^~~~~~
main.c:8:17: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:13: error: cannot initialize array of 'int' from a string literal with type array of 'char'
    4 |     int k[]="#",c,r,i,j;
      |             ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:20: error: 'n' undeclared (first use in this function)
    6 |         for(i=2;i<=n;i++){
      |                    ^
main.c:6:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:22: error: 'a' undeclared (first use in this function)
    7 |          scanf("%d",&a);
      |                      ^
main.c:8:15: error: 'd' undeclared (first use in this function)
    8 |          if(a<d){
      |               ^
main.c:11:15: error: 'e' undeclared (first use in this function)
   11 |          if(a>e){
      |               ^
main.c:14:10: error: 'f' undeclared (first use in this function)
   14 |          f=f+a;
      |          ^
main.c:17:5: error: expected declaration or statement at end of input
   17 |     return 0;
      |     ^~~~~~
Language: C

#include <stdio.h>
int main(void){
	while(1){
		int i;j:H,W;
		scanf("%d %d",&H,&W);
		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: 'H' undeclared (first use in this function)
    4 |                 int i;j:H,W;
      |                         ^
main.c:4:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:27: error: 'W' undeclared (first use in this function)
    4 |                 int i;j:H,W;
      |                           ^
main.c:7:29: error: 'j' undeclared (first use in this function)
    7 |                         for(j=0;j<W;j+;){
      |                             ^
main.c:7:39: error: expected expression before ';' token
    7 |                         for(j=0;j<W;j+;){
      |                                       ^
main.c:13:1: error: expected declaration or statement at end of input
   13 | }
      | ^
Language: C

#include <stdio.h>
int main(void){
	while(1){
		int i,j,H,W;
		scanf("%d %d",&H,&W);
		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:7:39: error: expected expression before ';' token
    7 |                         for(j=0;j<W;j+;){
      |                                       ^
main.c:13:1: error: expected declaration or statement at end of input
   13 | }
      | ^
Language: C

#include <stdio.h>
int main(void){
	while(1){
		int i,j,H,W;
		scanf("%d %d",&H,&W);
		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:1: error: expected declaration or statement at end of input
   13 | }
      | ^
Language: C

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

#include <stdio.h>
int main(void){
	while(1){
		int i,j,H,W;
		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:13:13: error: expected ';' before '}' token
   13 | printf("\n")
      |             ^
      |             ;
   14 |         }
      |         ~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:32: error: expected ';' before '}' token
    6 |          if(h==0 && w==0){break}
      |                                ^
      |                                ;
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:32: error: expected ';' before '}' token
    6 |          if(h==0 && w==0){break}
      |                                ^
      |                                ;
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:7:16: error: expected ';' before '}' token
    7 |           break
      |                ^
      |                ;
    8 |          }
      |          ~
Language: C

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

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



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

#include<stdio.h>

int main(){

    int H,W,i,j;

    scanf("%d%d",&H,&W);
    while(k==0){


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

    for(i = 0;i < H;i++){

        if(i == 0 || i == H-1){

            for(j = 0; j < W; j++){
             printf("#");

         }

       } else{
            
            for( j = 0;j < W ;j++){

                if(j==1 || j==W-1){
                     printf("#");
               }else{
                     printf(".");
               }

               printf("\n");

               }

       printf("\n");
       }

       return 0;
}



Compiler output:
main.c: In function 'main':
main.c:8:11: error: 'k' undeclared (first use in this function)
    8 |     while(k==0){
      |           ^
main.c:8:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:40:1: error: expected declaration or statement at end of input
   40 | }
      | ^
main.c:40:1: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>

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



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

#include<cstdio>

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


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

#include<cstdio>

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


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

#include<stdio.h>

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

return 0;
}


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

#include "stdin.h"

int main() 
{

  int i,j,a,b;



while (1) 
{


  scanf("%d %d\n",a,b);
  if (a==0) {
    break;
  }

for (j = 0; j < a; j++) 
{
  
for (i = 0; i < b; i++) 
{
  
 printf("#");

}
printf("\n");

}
printf("\n" );

}









  return 0;
}


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

#include "stdin.h"

int main() 
{

  int i,j,a,b;



while (1) 
{


  scanf("%d %d\n",&a,&b);
  if (a==0) {
    break;
  }

for (j = 0; j < a; j++) 
{
  
for (i = 0; i < b; i++) 
{
  
 printf("#");

}
printf("\n");

}
printf("\n" );

}









  return 0;
}


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

#include <stdio.h> 
#include<studio.h>
 
 int main(){ 
     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++){ 
                 if((i%2==0&&j%2==0)||(i%2==1&&j%2==1)){ 
                     printf("#"); 
                 }else{ 
                     printf("."); 
                 } 
             } 
             printf("\n"); 
         } 
         printf("\n"); 
     }  
 
     return 0; 
 } 



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

#include <stdio.h> #include <stdlib.h> int main() { int h; int w; scanf("%d %d", &h,&w); while (h!=0&&w!=0){ for(int i=0;i<h;i++){ for(int j=0;j<w;j++){ if(!i||!j||i==h-1||j==w-1){ printf("#"); }else{ printf("."); } } puts(""); } puts(""); scanf("%d %d", &h,&w); } return 0; } 


Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> #include <stdlib.h> int main() { int h; int w; scanf("%d %d", &h,&w); while (h!=0&&w!=0){ for(int i=0;i<h;i++){ for(int j=0;j<w;j++){ if(!i||!j||i==h-1||j==w-1){ printf("#"); }else{ printf("."); } } puts(""); } puts(""); scanf("%d %d", &h,&w); } 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 H,W,i,a;
	while(1)
	{
	scanf("%d %d",&H,&W);
		if(H==0 && W==0)break;
	for(a=1;a<=H;a++){
	for(i=1;i<=W;i++)
		{printf("#");}
		printf("\n");}
		printf("\n")
	}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:29: error: expected ';' before '}' token
   14 |                 printf("\n")
      |                             ^
      |                             ;
   15 |         }
      |         ~
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;
    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:10:21: error: expected ';' before '}' token
   10 |          printf("#")
      |                     ^
      |                     ;
   11 |        }
      |        ~
Language: C

#include <stdio.h>

int main(void) {

	int  i, j, H, W;

	

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

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


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

}


Compiler output:
main.c: In function 'main':
main.c:12:25: error: break statement not within loop or switch
   12 |                         break;
      |                         ^~~~~
Language: C

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

    © 2018 GitHub, Inc.
    Terms
    Privacy
    Security
    Status
    Help

    Contact GitHub
    API
    Training
    Shop
    Blog
    About




Compiler output:
main.c:21:5: error: stray '\302' in program
   21 |     <U+00A9> 2018 GitHub, Inc.
      |     ^~~~~~~~
main.c:21:7: error: expected identifier or '(' before numeric constant
   21 |     © 2018 GitHub, Inc.
      |       ^~~~
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:14:32: error: lvalue required as left operand of assignment
   14 |                 if( H = 0 && M = 0 ){
      |                                ^
main.c:30:1: error: expected declaration or statement at end of input
   30 | }
      | ^