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

int main(void) {
    int i,j,H,W;
    
    while (1) {
    scanf("%d",&H);
    scanf("%d",&W);
        if (H==0&&W==0){
            break;
        }
    for (i=0; i<H; i++) {
    for (j=0; j<W; j++) {
        if (i==0||i==H-1||j==0||j==W-1) {
        printf("#");
        }else
        {
        printf(".");
        }
        
    }
    printf("\n");
    }
        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",&H);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void) {
main.c:5:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |     scanf("%d",&H);
      |     ^~~~~
main.c:5:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |         printf("#");
      |         ^~~~~~
main.c:13:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   16 |         printf(".");
      |         ^~~~~~
main.c:16:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:20:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   20 |     printf("\n");
      |     ^~~~~~
main.c:20:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:22:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   22 |         printf("\n");
      |         ^~~~~~
main.c:22:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:24:5: error: expected declaration or statement at end of input
   24 |     return 0;
      |     ^~~~~~
Language: C

include<stdio.h>

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

while(1){
scanf("%d %d",&h,&w);
if(h==0&&w==0)break;
for(i=0;i<h;i++){
for(j=0;j<w;j++){
if(j==0 || j==w-1){printf("#");}
else{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;

while(1){
scanf("%d %d",&h,&w);
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==0 || j==w-1){printf("#");}
else{printf(".");}
}
}

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


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:2: error: expected '}' before 'else'
   14 | }else{
      |  ^~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:15: error: 'i' undeclared (first use in this function); did you mean 'ni'?
    7 |         while(i==0){
      |               ^
      |               ni
main.c:7:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:21: error: 'n' undeclared (first use in this function); did you mean 'ni'?
   11 |                 for(n = 0;n < W;n++){
      |                     ^
      |                     ni
Language: C

#include<stdio.h>

main(){

int i,j,H,W;

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

for(j=0;i<H;j++){
for(i=0;j<W;i++){
if(i!=0&&i<W-1&&j!=0&&jH-1)printf(".");
else printf("#");
}
printf("\n");
}
printf("\n");
return 0;
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:14:23: error: 'jH' undeclared (first use in this function); did you mean 'H'?
   14 | if(i!=0&&i<W-1&&j!=0&&jH-1)printf(".");
      |                       ^~
      |                       H
main.c:14:23: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

main(){

int i,j,H,W;

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

for(j=0;i<H;j++){
for(i=0;j<W;i++){
if(i!=0&&i<W-1&&j!=0&&jH-1)printf(".");
else printf("#");
}
printf("\n");
}

return 0;
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:14:23: error: 'jH' undeclared (first use in this function); did you mean 'H'?
   14 | if(i!=0&&i<W-1&&j!=0&&jH-1)printf(".");
      |                       ^~
      |                       H
main.c:14:23: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

main(){

int i,j,H,W;

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

for(j=0;j<H;j++){
for(i=0;i<W;i++){
if(i!=0&&i<W-1&&j!=0&&jH-1)printf(".");
else printf("#");
}
printf("\n");
}
printf("\n");
return 0;
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:14:23: error: 'jH' undeclared (first use in this function); did you mean 'H'?
   14 | if(i!=0&&i<W-1&&j!=0&&jH-1)printf(".");
      |                       ^~
      |                       H
main.c:14:23: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

main(){

int i,j,H,W;

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

for(j=0;j<H;j++){
for(i=0;i<W;i++){
if(i!=0&&i<W-1&&j!=0&&jH-1)printf(".");
else printf("#");
}
printf("\n");
}
printf("\n");
}
return 0;
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:13:23: error: 'jH' undeclared (first use in this function); did you mean 'H'?
   13 | if(i!=0&&i<W-1&&j!=0&&jH-1)printf(".");
      |                       ^~
      |                       H
main.c:13:23: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

void drawFrame(int height, int width);

int main(void) {

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

        printf("\n");
    }

    return 0;
}

void drawFrame(int height, int width) {

    int i;
    int j;

    for(i = 0; i < height; i++) {
        for(j = 0; k < width; j++) {
            if(i == 0 ||
               i == height - 1 ||
               j == 0 ||
               j == width - 1) {
                putchar("#");
            }
            else {
                putchar(".");
            }
        }
        printf("\n");
    }

    return;
}

Compiler output:
main.c: In function 'drawFrame':
main.c:31:20: error: 'k' undeclared (first use in this function)
   31 |         for(j = 0; k < width; j++) {
      |                    ^
main.c:31:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:36:25: error: passing argument 1 of 'putchar' makes integer from pointer without a cast [-Wint-conversion]
   36 |                 putchar("#");
      |                         ^~~
      |                         |
      |                         char *
In file included from main.c:1:
/usr/include/stdio.h:618:25: note: expected 'int' but argument is of type 'char *'
  618 | extern int putchar (int __c);
      |                     ~~~~^~~
main.c:39:25: error: passing argument 1 of 'putchar' makes integer from pointer without a cast [-Wint-conversion]
   39 |                 putchar(".");
      |                         ^~~
      |                         |
      |                         char *
/usr/include/stdio.h:618:25: note: expected 'int' but argument is of type 'char *'
  618 | extern int putchar (int __c);
      |                     ~~~~^~~
Language: C

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

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

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

  
 #include<stdio.h>
int main()
{
  int a,b,i,j;
  while(1)
	   {
  scanf("%d%d",&a,&b);
  if(a==0&&b==0){break;}

  for(i=1;i<=a;i++)
    {
      for(j=1;j<=b;j++)
	{
	  if(i>1&&i<a&&j<b&&j>1)printf(".");
	  else printf("#");
	}
      printf("\n");
    }
  printf("\n";)
    
	   }
  return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:18:8: warning: missing terminating " character
   18 | printf("??\");
      |        ^
main.c:18:8: error: missing terminating " character
   18 | printf("??\");
      |        ^~~~~~~
main.c:19:1: error: expected expression before '}' token
   19 | }
      | ^
main.c:18:8: error: expected ';' before '}' token
   18 | printf("??\");
      |        ^
      |        ;
   19 | }
      | ~       
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C

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

  int W,H,w,h;

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

    for (h = 1;h <= H;h++) {
      for (w = 1;w <= W;w++) {
	if (1 < w && w < W){
	  printf(".");
	} else {
	  printf("#");
	}
      }
      printf("#");
    }
  }
  return 0;
}

Compiler output:
main.c:1:10: fatal error: stdie.h: No such file or directory
    1 | #include <stdie.h>
      |          ^~~~~~~~~
compilation terminated.
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++){
                      printf("#");
                      for(j=0,j<W,j++){
                            if(i==0 || i=h-1){
                                 printf("#");
                            }else{
                                 printf(".");
                            }
                       }
                        printf("#\n");
                   }      
                   printf("\n");
            }
       return 0;
}
                              

Compiler output:
main.c: In function 'main':
main.c:12:38: error: expected ';' before ')' token
   12 |                       for(j=0,j<W,j++){
      |                                      ^
      |                                      ;
main.c:12:38: error: expected expression before ')' token
main.c:13:42: error: 'h' undeclared (first use in this function)
   13 |                             if(i==0 || i=h-1){
      |                                          ^
main.c:13:42: note: each undeclared identifier is reported only once for each function it appears in
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
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++){
                      printf("#");
                      for(j=0,j<W-2,j++){
                            if(i==0 || i=h-1){
                                 printf("#");
                            }else{
                                 printf(".");
                            }
                       }
                        printf("#\n");
                   }      
                   printf("\n");
            }
       return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:40: error: expected ';' before ')' token
   12 |                       for(j=0,j<W-2,j++){
      |                                        ^
      |                                        ;
main.c:12:40: error: expected expression before ')' token
main.c:13:42: error: 'h' undeclared (first use in this function)
   13 |                             if(i==0 || i=h-1){
      |                                          ^
main.c:13:42: note: each undeclared identifier is reported only once for each function it appears in
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
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++){
                      printf("#");
                      for(j=0;j<W;j++){
                            if(i==0 || i=h-1){
                                 printf("#");
                            }else{
                                 printf(".");
                            }
                       }
                        printf("#\n");
                   }      
                   printf("\n");
            }
       return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:42: error: 'h' undeclared (first use in this function)
   13 |                             if(i==0 || i=h-1){
      |                                          ^
main.c:13:42: note: each undeclared identifier is reported only once for each function it appears in
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
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++) {
if (x != 0 || x != H-1 || y != 0 || y != w-1) {
printf(".");
} else {
printf("#");
}
}
printf("\n");
}
}

return (0);
}

Compiler output:
main.c: In function 'main':
main.c:10:42: error: 'w' undeclared (first use in this function)
   10 | if (x != 0 || x != H-1 || y != 0 || y != w-1) {
      |                                          ^
main.c:10:42: 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;
int x,y;

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

return (0);
}

Compiler output:
main.c: In function 'main':
main.c:18:13: error: expected ';' before '}' token
   18 | printf("\n")
      |             ^
      |             ;
   19 | }
      | ~
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++) {
if (x = 0 || x = H-1 || y = 0 || y = W-1) {
printf("#");
} else {
printf(".");
}
}
printf("\n");
}
printf("\n");
}

return (0);
}

Compiler output:
main.c: In function 'main':
main.c:10:36: error: lvalue required as left operand of assignment
   10 | if (x = 0 || x = H-1 || y = 0 || y = W-1) {
      |                                    ^
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 = 1; i <= W; i++){
		printf("#");
	}
	printf("\n");
	for(j = 1; j <= H - 2; j++){
		printf("#");
		for(i = 1; i <= W - 2; i++){
			printf(".");
	}
		printf("#\n");
	}
		for(i = 1; i <= W; i++){
		printf("#");
	}
	printf("\n\n");
}
	return 0;
}
}

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

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

  int m,f,r;
  int i,n;
  scanf("%d %d %d",&m,&f,&r);
  
  for(i = 0; i < n; i++){
    scanf("%d", &a[i]);
  }
   
  for(i = n-1; i >= 0; i--){
    if(i != n-1) printf(" "); 
    printf("%d", a[i]);
  }
  printf("\n");
	
	return 0;
}

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

#include<stdio.h>

int main(){
  int H[100], W[100], i, j, s,cnt=0, var;
  while(1){
    scanf("%d %d", &H[cnt], &W[cnt]);
    if(H[cnt]==0 || W[cnt]==0){
      break;
    }
    cnt++;
  }
  
  
  for(var=0;var<=cnt;var++){
    for(s=0;s<W[var];s++){
      printf("#");
    printf("\n");
    for(j=0;j<H[var]-2;j++){
      printf("#");
      for(i=0;i<W[var]-2;i++){
      }
      printf("#");
      printf("\n");
    }
    for(s=0;s<W[var];s++){
      printf("#");
    }
    printf("\n\n");
  }
  return 0;
}

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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:5: warning: comparison between pointer and integer
    8 | if(h==&&w==0)break;
      |     ^~
main.c:8:1: error: label 'w' used but not defined
    8 | if(h==&&w==0)break;
      | ^~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:46:9: error: expected declaration or statement at end of input
   46 |         return 0;
      |         ^~~~~~
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++){
		if(w==0 || h==0 || w==W ||h==H)
    			putchar('#');
		else
			putchar('.');
	putchar('\n');
    }
    putchar('\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(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++){
                                if(w==0 || h==0 || w==W-1 ||h==H-1)
                                        putchar('#');
                                else
                                        putchar('.');
                        }
                        putchar('\n');
                }
                putchar('\n');
        }
        putchar('\n')
        return 0;
}
~

Compiler output:
main.c: In function 'main':
main.c:19:22: error: expected ';' before 'return'
   19 |         putchar('\n')
      |                      ^
      |                      ;
   20 |         return 0;
      |         ~~~~~~        
main.c: At top level:
main.c:22:1: error: expected identifier or '(' before '~' token
   22 | ~
      | ^
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++){
                                if(w==0 || h==0 || w==W-1 ||h==H-1)
                                        putchar('#');
                                else
                                        putchar('.');
                        }
                        putchar('\n');
                }
                putchar('\n');
        }
        putchar('\n');
        return 0;
}
~

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

#include <stdio.h>


int main(void) {

	// 1_5-B Print a Frame

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

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

Compiler output:
main.c: In function 'main':
main.c:17:29: error: expected ';' before 'for'
   17 |                 printf("\n")
      |                             ^
      |                             ;
   18 |                 for(i=0; i<h; i++){
      |                 ~~~
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++) {
                if ((i == 0) || (i == H - 1) || (j == 0) || (j == W - 1)) {
                    printf("#");
                } eles {
                    printf(".");
                }
            }
            putchar('\n');
        }
        putchar('\n');
        scanf("%d %d", &H, &W);
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:19: error: 'eles' undeclared (first use in this function)
   14 |                 } eles {
      |                   ^~~~
main.c:14:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:23: error: expected ';' before '{' token
   14 |                 } eles {
      |                       ^~
      |                       ;
Language: C

#include <stdio.h>
int main()
{
	unsigned int W = 0, H = 0;
	int a, bl
	while (1)
	{
		scanf("%u %u", &W, &H);
		
		if (W == 0 && H == 0)
			break;
		if (W > 300 && H > 300)
			continue;

		for (a = 0; a != H; a++)
		{
			for (b = 0; b != W; b++)
			{
				if(a == 0 || a == H - 1 || b == 0 || b == W - 1)
					printf("#");
				else
					printf(".");
			}
			printf("\n");
		}
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'while'
    6 |         while (1)
      |         ^~~~~
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 (j=0; j<H; j++) {      
         for (i=0; i<W; i++) {
            if ( i == 0 || j == 0 || i == W-1 || j == H-1 ) {
               printf("#");
            } else {
               printf("*");
            }
         }
      printf("\n");
      }
   printf("\n");
   }
    
   return 0;
       
}

Compiler output:
main.c: In function 'main':
main.c:9:11: error: expected '(' before 'H'
    9 |       if  H == 0 && W == 0) {
      |           ^
      |           (
main.c:9:27: error: expected statement before ')' token
    9 |       if  H == 0 && W == 0) {
      |                           ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:11: error: expected '(' before 'H'
    9 |       if  H == 0 && W == 0) {
      |           ^
      |           (
main.c:9:27: error: expected statement before ')' token
    9 |       if  H == 0 && W == 0) {
      |                           ^
Language: C

#include<stdio.h>

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

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

Compiler output:
main.c: In function 'main':
main.c:18:32: error: expected '(' before '{' token
   18 |                         else if{
      |                                ^
      |                                (
main.c:32:1: error: expected declaration or statement at end of input
   32 | }
      | ^
Language: C

#include<stdio.h>

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

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

Compiler output:
main.c: In function 'main':
main.c:18:32: error: expected '(' before '{' token
   18 |                         else if{
      |                                ^
      |                                (
Language: C

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

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

#include <stdio.h>
int main(void)
{
	int i,j,h,w;
	while(1){
		scanf("%d %d",&h,&w);
		if(h==0 && w==0) break;
		else if(h>2 && w>2){
			for(j=0;j<w;j++)
				printf("#");
			printf("\n");
			for(i=0;i<(h-2);i++){
				printf("#");
				for(j=0;j<(w-2);j++){
					printf(".");
				}
				printf("#\n");
			}
			for(j=0;j<w;j++)
				printf("#");
			printf("\n\n");
		}
		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:29:32: error: stray '\' in program
   29 |                         printf(\n);
      |                                ^
main.c:29:33: error: 'n' undeclared (first use in this function)
   29 |                         printf(\n);
      |                                 ^
main.c:29:33: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:26:18: error: expected statement before ']' token
   26 |                 }]
      |                  ^
Language: C

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

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

for(i=0; i<H; i++){
 for(j=0; j<W; j++){
  if(i==0 || i==H-1){
    printf("#");
   }else{
    if(j==0 || j==W-1){
     printf("#");
    }else{
     printf(".");}
   }
  }
 printf("\n");
 }
 printf("\n")
}

return 0;

}
  

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:3: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |   pritnf("#");
      |   ^~~~~~
      |   printf
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:3: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |   pritnf("#");
      |   ^~~~~~
      |   printf
Language: C

int k;

int main(void){
	
	for(i=0;i<100;i++){
		scanf("%d %d",&h[i],&w[i]);
		if(h[i] == 0 && w[i] == 0){
			break;
		}
	}
	for(i=0;i<100;i++){
		for(j=0;j<h[i];j++){
			for(k=0;k<w[i];k++){
				if(j == 0 || j == h[i]-1 || k == 0 || k == w[i]-1){
				printf("#");
				}else{
					printf(".");
			}
			}
			printf("\n");
			
		}
			printf("\n");
			if(h[i+1] == 0 && w[i+1] == 0){
			break;
			
		}
		
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:13: error: 'i' undeclared (first use in this function)
    5 |         for(i=0;i<100;i++){
      |             ^
main.c:5:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |                 scanf("%d %d",&h[i],&w[i]);
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int k;
main.c:6:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |                 scanf("%d %d",&h[i],&w[i]);
      |                 ^~~~~
main.c:6:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:32: error: 'h' undeclared (first use in this function)
    6 |                 scanf("%d %d",&h[i],&w[i]);
      |                                ^
main.c:6:38: error: 'w' undeclared (first use in this function)
    6 |                 scanf("%d %d",&h[i],&w[i]);
      |                                      ^
main.c:12:21: error: 'j' undeclared (first use in this function)
   12 |                 for(j=0;j<h[i];j++){
      |                     ^
main.c:15:33: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   15 |                                 printf("#");
      |                                 ^~~~~~
main.c:15:33: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:33: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:15:33: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:41: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   17 |                                         printf(".");
      |                                         ^~~~~~
main.c:17:41: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:20:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   20 |                         printf("\n");
      |                         ^~~~~~
main.c:20:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:23:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   23 |                         printf("\n");
      |                         ^~~~~~
main.c:23:25: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>

int main()
{

 int H, W, i, j;
 
 while(1)
 {
      scanf("%d %d\n", &H, &W);

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

      for(i = 0; i < H; i++)
      {
          for(j = 0; j < W; j++)
          {
              if(i == 0 || i - 1 == H || j == 0 || j - 1 == W)
              {
                  printf("#");
              }
              else
              {
                  printf(".");
              }
          }
          printf("\n");
      }
      printf("\n");
 }

 
 retrun 0;
}

Compiler output:
main.c: In function 'main':
main.c:33:2: error: 'retrun' undeclared (first use in this function)
   33 |  retrun 0;
      |  ^~~~~~
main.c:33:2: note: each undeclared identifier is reported only once for each function it appears in
main.c:33:8: error: expected ';' before numeric constant
   33 |  retrun 0;
      |        ^~
      |        ;
Language: C

#include <stdio.h>

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

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

      for(i = 0; i < H; i++)
      {
          for(j = 0; j < W; j++)
          {
              if(i == 0 || i - 1 == H || j == 0 || j - 1 == W)
              {
                  printf("#");
              }
              else
              {
                  printf(".");
              }
          }
          printf("\n");
      }
      printf("\n");
 }
 retrun 0;
}

Compiler output:
main.c: In function 'main':
main.c:30:2: error: 'retrun' undeclared (first use in this function)
   30 |  retrun 0;
      |  ^~~~~~
main.c:30:2: note: each undeclared identifier is reported only once for each function it appears in
main.c:30:8: error: expected ';' before numeric constant
   30 |  retrun 0;
      |        ^~
      |        ;
Language: C

#include<stdio.h>

int main(){

   int H, W;

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

   while(H!=0 || W!=0){
      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==0 || j==W-1) printf("#");
               else printf(".");
            }
         }
         printf("\n");
      }
 
      scanf("%d %d", &H, &W);
   }

   return 0;

}

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

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

Compiler output:
main.c: In function 'main':
main.c:12:11: error: expected ';' before 'j'
   12 |    for(j=0 j<cr; j++)
      |           ^~
      |           ;
main.c:12:21: error: expected ';' before ')' token
   12 |    for(j=0 j<cr; j++)
      |                     ^
      |                     ;
Language: C

#include <stdio.h>

int main(){
 int H,W;
 int 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++){
    if(h==0 || h==H-1 || w==0 || w==W-1)printf("#");
    else printf(".");
  }
  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 (void)
{
	int h, w;
	int H, W;

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

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

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

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


using namespace std;
int main()
{
	while (1)
	{
		int d,c;
		cin>>d>>c;
		if(d == 0 && c == 0)break;
		for(int i = 0;i<d;i++)
		{
			printf("#");
			
		}
		printf("\n");
		printf("\n");
		for(int j = 0+1;j<c-1;j++)
		{
			printf("#");
			for(int i=0+1;i<d-1;i++){
				printf(".");
				
			}
			printf("#");
			printf("\n");
			printf("\n");
		}
		for(int i=0;i<d;i++)
			printf("#");
		printf("\n");
	}
	return 0;
}

Compiler output:
main.c:2:1: error: unknown type name 'using'
    2 | using namespace std;
      | ^~~~~
main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std;
      |                 ^~~
main.c: In function 'main':
main.c:8:17: error: 'cin' undeclared (first use in this function)
    8 |                 cin>>d>>c;
      |                 ^~~
main.c:8:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:25: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   12 |                         printf("#");
      |                         ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | 
main.c:12:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   12 |                         printf("#");
      |                         ^~~~~~
main.c:12:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   15 |                 printf("\n");
      |                 ^~~~~~
main.c:15:17: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<iostream>
using namespace std;
int main()
{
	while (1)
	{
		int d,c;
		cin>>d>>c;
		if(d == 0 && c == 0)break;
		for(int i = 0;i<d;i++)
		{
			cout<<"#";
			
		}
		cout<<"\n";
		cout<<"\n";
		for(int j = 0+1;j<c-1;j++)
		{
			cout<<"#";
			for(int i=0+1;i<d-1;i++){
				cout<<".";
				
			}
			cout<<"#";
			cout<<"\n";
			cout<<"\n";
		}
		for(int i=0;i<d;i++)
			cout<<"#";
		cout<<"\n";
	}
	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(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++){
                    if(i==0||i==H-1){
                        for(l=0;l<W;l++)
                        printf("#");
                        printf("\n");
                    }else{
                        for(j=0;j<W;j++){
                            if(j==0||j==W-1)
                                printf("#");
                            else
                                printf(".");
                        }
                        printf("\n");
                    }
            }

        printf("\n");
    }



    return 0;
}

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

#include <stdio.h>

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

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

#include <stdio.h>

int main(void)
{
	int H;
	int W;
	int a;  /*??°???????????¨?????°*/
	int b;  /*??°???????????¨?????°*/
	int c;  /*??°???????????¨?????°*/
	int d;  /*??°???????????¨?????°*/
	
		while(1){
			scanf("%d %d", &H, &W);
				if(H == 0 && W == 0){
			break;
		}
		for (a = 1; a <= W; a++){
			printf("#");
		}
		printf("\n");
		for (b = 1; b <= (H-2); b++){
			printf("#");
			for(c = 1; c <= (W-2); c++){
				printf(".");
			}
			printf("#");
				printf("\n");
			}
		for (d = 1; d <= W; d++){
			printf("#");
			
			}
			printf("\n");
		printf("\n");
		}

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

\#include<stdio.h>

int main()
{
	int high,wide,i,j;

	while(1){
		scanf("%d %d",&high,&wide);
		if(high==0 && wide==0) break;

		if(high < 3 || 300<wide){
			printf("error\n");
		}else{
			for(i=0;i<high;i++){
				if(i==0||i==high-1){
					for(j=0;j<wide;j++)printf("#");
				}else{
					printf("#");
					for(j=2;j<wide;j++) printf(".");
					printf("#");
				}
				printf("\n");
			}
		}
		printf("\n");
	}
	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:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | \#include<stdio.h>
      |          ^
Language: C

#include<stdio.h>

int main()
{
	int high,wide,i,j;

	while(1){
		scanf("%d %d",&high,&wide);
		if(high==0 && wide==0) break;

		if(high < 3 || 300<wide){
			printf("error\n");
		}else{
			for(i=0;i<high;i++){
				if(i==0||i==high-1){
					for(j=0;j<wide;j++)printf("#");
				}else{
					printf("#");
					for(j=2;j<wide;j++) printf(".");
					printf("#");
				}
				printf("\n");
			}
		}
		printf("\n");
	}
	return 0;

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:29:14: error: subscripted value is neither array nor pointer nor vector
   29 |     if(height[j+1] != 0){
      |              ^
main.c:30:15: warning: missing terminating " character
   30 |        printf("\n);
      |               ^
main.c:30:15: error: missing terminating " character
   30 |        printf("\n);
      |               ^~~~~
main.c:31:1: error: expected expression before '}' token
   31 | }
      | ^
main.c:30:15: error: expected ';' before '}' token
   30 |        printf("\n);
      |               ^
      |               ;
   31 | }
      | ~
Language: C

#include <stdio.h>

int main()
{
  int H,W,i,j;
  
  while(1)
  {
    scanf("%d %d",&H,&W);
    
    if(H == 0 && W == 0) break;
    
    for(i = 0; i < H; i++)
    {
      for(j = 0; j < W; j++)
      {
        if((i == 0 || i == H - 1) && (j == 0 || j == W - 1))
        {
           putchar('#');
        }
if((i != 0 && i != H - 1) && (j != 0 && j != W - 1))
        {
          putchar('.');
        }

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

Compiler output:
main.c: In function 'main':
main.c:32:1: error: expected declaration or statement at end of input
   32 | }
      | ^
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++)
      {
        if(i == 0 || i == (H - 1))
        {
          putchar('#');
        }
        else if(j == 0 || j == (W - 1))
        {
          putchar('#');
        else
        {
          putchar('.');
        }
      }        
      printf("\n");
    }
    printf("\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:9: error: expected '}' before 'else'
   24 |         else
      |         ^~~~