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

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

     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:22: error: expected ';' before '}' token
    8 |           printf("#")
      |                      ^
      |                      ;
    9 |      }
      |      ~                
main.c:19:22: error: expected ';' before '}' token
   19 |           printf("#")
      |                      ^
      |                      ;
   20 |      }
      |      ~
Language: C

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

     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:22: error: expected ';' before '}' token
    8 |           printf("#")
      |                      ^
      |                      ;
    9 |        }
      |        ~              
main.c:19:22: error: expected ';' before '}' token
   19 |           printf("#")
      |                      ^
      |                      ;
   20 |      }
      |      ~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:26: error: expected expression before ')' token
    7 |         }while((H>0)&&(W>)0)
      |                          ^
main.c:7:29: error: expected ';' before 'for'
    7 |         }while((H>0)&&(W>)0)
      |                             ^
      |                             ;
    8 |         for(i=0;i<=W;i++){
      |         ~~~                  
main.c:8:25: error: expected ';' before ')' token
    8 |         for(i=0;i<=W;i++){
      |                         ^
      |                         ;
main.c:8:25: error: expected statement before ')' token
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:29: error: expected ';' before 'for'
    7 |         }while((H>0)&&(W>0))
      |                             ^
      |                             ;
    8 |         for(i=0;i<=W;i++){
      |         ~~~                  
main.c:8:25: error: expected ';' before ')' token
    8 |         for(i=0;i<=W;i++){
      |                         ^
      |                         ;
main.c:8:25: error: expected statement before ')' token
Language: C

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

}
}

Compiler output:
main.c:2:9: error: expected identifier or '(' before 'for'
    2 |         for(x=0;x<=100;x++)
      |         ^~~
main.c:2:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
    2 |         for(x=0;x<=100;x++)
      |                  ^~
main.c:2:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    2 |         for(x=0;x<=100;x++)
      |                         ^~
main.c:42:1: error: expected identifier or '(' before '}' token
   42 | }
      | ^
Language: C

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

}
	return 0;
}

Compiler output:
main.c:2:5: error: two or more data types in declaration specifiers
    2 | int void (main){
      |     ^~~~
main.c:2:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    2 | int void (main){
      |                ^
Language: C

#include <stdio.h>

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

    while(1){
        scanf("%d %d", &h, &w);
        if(h + w == 0)
            break;

        for(i = 0; i < h; i++){
            for(j = 0; j < w; j++){
                if(i == 0 || i == h - 1 || j == 0 || j == h - 1)
                    putchar('#');
                else
                    putchar('.');
            }
            puts("");
        }
        puts("");
    }
    return 0;
]

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

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

Compiler output:
main.c:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
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=1;i<=H;i++){
            for(j=1;j<=W;j++){
                if(i==1||i==H||j==1||j==W)
                    putchar('#');
                else
                    putchar('.');
            }
            puts("");
        }
        puts("");
    }
    return 0;
}

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

#include <stdio.h>
int main(void) {
?? ?? int H, W, m, n;
?? ?? while (1) {
?? ?? ?? ?? scanf("%d%d", &H, &W);
?? ?? ?? ?? if (H == 0 || W == 0) { break; }
?? ?? ?? ?? m = n = 1;
?? ?? ?? ?? while (m <= H && n <= W) {
?? ?? ?? ?? ?? ?? if (m != 1 && m != H && n != 1 && n != W) {
?? ?? ?? ?? ?? ?? ?? ?? printf("."); n++; continue;
?? ?? ?? ?? ?? ?? }
?? ?? ?? ?? ?? ?? printf("#");
?? ?? ?? ?? ?? ?? // tail? then newline
?? ?? ?? ?? ?? ?? if (n == W) { printf("\n"); n = 1; m++; }
?? ?? ?? ?? ?? ?? else { n++; }
?? ?? ?? ?? }
?? ?? ?? ?? printf("\n");
?? ?? }
?? ?? return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:1: error: expected expression before '?' token
    3 | ?? ?? int H, W, m, n;
      | ^
main.c:4:1: error: expected expression before '?' token
    4 | ?? ?? while (1) {
      | ^
Language: C

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

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:16:34: error: expected ';' before ')' token
   16 |                     for(k < w;k++){
      |                                  ^
      |                                  ;
Language: C

#include <stdio.h>

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

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


	return 0;

}

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:15:67: error: expected ';' before 'scanf'
   15 |                 printf("1???300???????????????????¨?????????????")
      |                                                                   ^
      |                                                                   ;
   16 |                 scanf("%d %d", &h[qty], &w[qty]);
      |                 ~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:3: 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:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d%d",&h,&w);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:18: error: break statement not within loop or switch
    5 |  if(h==0 && w==0)break
      |                  ^~~~~
main.c:5:23: error: expected ';' before 'for'
    5 |  if(h==0 && w==0)break
      |                       ^
      |                       ;
    6 | for(
      | ~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:9: error: expected expression before ':' token
    3 |     for(:scanf("%d%d", &H, &W);){
      |         ^
main.c:3:32: error: expected expression before ')' token
    3 |     for(:scanf("%d%d", &H, &W);){
      |                                ^
main.c:8:21: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |                     printf("#");
      |                     ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main(int argc, const char * argv[]) {
main.c:8:21: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 |                     printf("#");
      |                     ^~~~~~
main.c:8:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   10 |                 printf("#");
      |                 ^~~~~~
main.c:10:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:32: error: expected ';' before ')' token
   11 |                 for(x=1;x<W,x++)
      |                                ^
      |                                ;
main.c:14:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   14 |             printf("\n");}
      |             ^~~~~~
main.c:14:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   15 |         printf("\n");}
      |         ^~~~~~
main.c:15:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:9: error: expected expression before ':' token
    3 |     for(:scanf("%d%d", &H, &W);){
      |         ^
main.c:3:32: error: expected expression before ')' token
    3 |     for(:scanf("%d%d", &H, &W);){
      |                                ^
main.c:8:21: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |                     printf("#");
      |                     ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main() {
main.c:8:21: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 |                     printf("#");
      |                     ^~~~~~
main.c:8:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   10 |                 printf("#");
      |                 ^~~~~~
main.c:10:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:32: error: expected ';' before ')' token
   11 |                 for(x=1;x<W,x++)
      |                                ^
      |                                ;
main.c:14:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   14 |             printf("\n");}
      |             ^~~~~~
main.c:14:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   15 |         printf("\n");}
      |         ^~~~~~
main.c:15:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:10: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |     for(;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:10: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |     for(;scanf("%d%d", &H, &W);){
      |          ^~~~~
main.c:3:10: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:21: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |                     printf("#");
      |                     ^~~~~~
main.c:8:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:21: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   10 |                 printf("#");
      |                 ^~~~~~
main.c:10:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:32: error: expected ';' before ')' token
   11 |                 for(x=1;x<W,x++)
      |                                ^
      |                                ;
main.c:14:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   14 |             printf("\n");}
      |             ^~~~~~
main.c:14:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   15 |         printf("\n");}
      |         ^~~~~~
main.c:15:9: 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",&H,&W);
    if(H!=0&&W!=0){
      for(i=0;i<H;i++){   
    if(i==0||i==H-1){
      for(j=0;j<W;j++){
      printf("#");
    }}
    if(1<=i&&i<=H-2){
    for(j=0;j<W;j++){
      if(j==0||j==W-1){
        printf("#");
      }
      else { 
        printf(".");
    } }  }
      printf("\n");
      }
      printf("\n");
    }
    if(H==0&&W==0){
      break;
    }
  }
  return 0;
}

Compiler output:
main.c:1:9: 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){
      for(i=0;i<H;i++){   
    if(i==0||i==H-1){
      for(j=0;j<W;j++){
      printf("#");
    }
    }
    if(1<=i&&i<=H-2){
    for(j=0;j<W;j++){
      if(j==0||j==W-1){
        printf("#");
      }
      else { 
        printf(".");
      }
    }   
      }
      printf("\n");
      }
      printf("\n");
    }
    if(H==0&&W==0){
      break;
    }
  }
  return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:11:52: error: lvalue required as left operand of assignment
   11 |                                         if(i=0 || i=H) {
      |                                                    ^
Language: C

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

	return 0;
}

Compiler output:
main.c:1:1: error: unknown type name 'nt'; did you mean 'int'?
    1 | nt main(void)
      | ^~
      | int
main.c: In function 'main':
main.c:8:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |                 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 | nt main(void)
main.c:8:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |                 scanf("%d%d", &h[i], &w[i]);
      |                 ^~~~~
main.c:8:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:91: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |                                 if(k == 0 || k == (w[j] - 1) || l == 0 || l == (h[j] - 1))printf("#");
      |                                                                                           ^~~~~~
main.c:13:91: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:91: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:91: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:38: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   14 |                                 else printf(".");
      |                                      ^~~~~~
main.c:14:38: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   16 |                         printf("\n");
      |                         ^~~~~~
main.c:16:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:18:27: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   18 |                 if(j != i)printf("\n");
      |                           ^~~~~~
main.c:18:27: note: include '<stdio.h>' or provide a declaration of 'printf'
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++){
			if(i==0||i==H){
				for(j=0;j<W;j++){
					printf("#");
				}
			}else{
				for(j=0;j<W;j++){
					if(j==0||j==W)printf("#");
					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 |         }
      |         ~                    
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
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++){
			if(i==0||i==H){
				for(j=0;j<W;j++){
					printf("#");
				}
			}else{
				for(j=0;j<W;j++){
					if(j==0||j==W)printf("#");
					printf(".");
				}
			}
			printf("\n");
		}
		printf("\n")
	}
	return 0;
}

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

#include<stdio.h>
int main(){
int H,W,a[300],b[300],i=0,N=0;
scanf("%d %d",&a[0],&b[0]);
while(a[i]!=0||b[i]!=0)
{
N++;
i++;
scanf("%d %d",&a[i],&b[i]);
}
for(i=0;i<=N-1;i++)
{
   for(W=1;W<=b[i];W++)
   {
      printf("#");
   }
   printf("\n");
   for(H=2;H<=a[i]-1;H++)
    {
      printf("#");
      for(W=2;W<=b[i]-1;W++)
      {
         printf(".");
      }
     printf("#\n");
    }
　for(W=1;W<=b[i];W++)
   {
      printf("#");
   }
printf("\n");
printf("\n");
}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:27:1: error: stray '\343' in program
   27 | <U+3000>for(W=1;W<=b[i];W++)
      | ^~~~~~~~
Language: C

#include<stdio.h>
int main(){
int H,W,a[300],b[300],i=0,N=0;
scanf("%d %d",&a[0],&b[0]);
while(a[i]!=0||b[i]!=0)
{
N++;
i++;
scanf("%d %d",&a[i],&b[i]);
}
for(i=0;i<=N-1;i++)
{
   for(W=1;W<=b[i];W++)
   {
      printf("#");
   }
   printf("\n");
   for(H=2;H<=a[i]-1;H++)
    {
      printf("#");
      for(W=2;W<=b[i]-1;W++)
      {
         printf(".");
      }
     printf("#\n");
    }
　for(W=1;W<=b[i];W++)
   {
      printf("#");
   }
printf("\n");

}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:27:1: error: stray '\343' in program
   27 | <U+3000>for(W=1;W<=b[i];W++)
      | ^~~~~~~~
Language: C

#include<stdio.h>

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


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

#include<stdio.h>

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


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

#include<stdio.h>

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



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

#include<stdio.h>
int main(){
    int H, W;    /* 幅、高さの格納用変数*/
    int i, j;       /* カウンタ用変数*/
    while(1){
        scanf("%d %d", H, W);
        if(H == 0 && W == 0){
            break;
        }
        for(i = 0;i < H;i++){
            printf("#");
            for(j = 0;j < W - 2;j++){
                if(i == 0){
                    printf("#");
                else{
                    printf(".");
                }
            }
            printf("#\n");
    }
    return 0;
}


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

#include<stdio.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++){
            printf("#");
            for(j = 0;j < W - 2;j++){
                if(i == 0){
                    printf("#");
                }
                else{
                    printf(".");
                }
            }
            printf("#\n");
    }
    return 0;
}


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

#include <stdio.h>

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



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

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



Compiler output:
main.c: In function 'main':
main.c:23:9: error: 'else' without a previous 'if'
   23 |         else{
      |         ^~~~
main.c:31:13: error: 'else' without a previous 'if'
   31 |             else{
      |             ^~~~
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=1;i<=h;i++){
			for(j=1;j<=w;j++){
				if(i==1 || i==h){
					printf("#");
				}else{
					if(j==1 || j==w)	printf("#");
					else{
						printf(".");
					}
				}

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



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

#include <stdio.h> 
4 
 
 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==0||i==h-1||j==0||j==w-1){ 
                     printf("#"); 
                 }else{ 
                     printf("."); 
                 } 
             } 
             printf("\n"); 
         } 
         printf("\n"); 
     } 
 
 
     return 0; 
 } 



Compiler output:
main.c:2:1: error: expected identifier or '(' before numeric constant
    2 | 4
      | ^
Language: C

#include <stdio.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==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:17:1: error: stray '\343' in program
   17 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>printf("\n");
      | ^~~~~~~~
main.c:17:3: error: stray '\343' in program
   17 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>printf("\n");
      |         ^~~~~~~~
main.c:17:5: error: stray '\343' in program
   17 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>printf("\n");
      |                 ^~~~~~~~
main.c:17:7: error: stray '\343' in program
   17 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>printf("\n");
      |                         ^~~~~~~~
main.c:17:9: error: stray '\343' in program
   17 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>printf("\n");
      |                                 ^~~~~~~~
main.c:17:11: error: stray '\343' in program
   17 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>printf("\n");
      |                                         ^~~~~~~~
main.c:17:13: error: stray '\343' in program
   17 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>printf("\n");
      |                                                 ^~~~~~~~
main.c:17:15: error: stray '\343' in program
   17 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>printf("\n");
      |                                                         ^~~~~~~~
Language: C

#include<bits/stdc++.h>

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

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



Compiler output:
main.c: In function 'main':
main.c:6:12: error: expected ')' before ';' token
    6 |     if(x==0;y==0)break;
      |       ~    ^
      |            )
Language: C

{
    int W, H,i,j,k;
    
    
    while(scanf("%d %d",&W,&H)!=EOF);
    {
        {
    for (i=1;i<=W;i++)
        {
        printf("#");
    
        }
   printf("\n");
    }     
   
    for(j=1;j<=H-2;j++)
        {
        printf("#");
       
        for(k=1;k<W-1;k++)
            {
            printf(".");
        
            }
        printf("#\n");
            
        }
        
       for (i=1;i<=W;i++){
    printf("#");
    }
    printf("\n"); 
        
    
    }
   
 return 0;
}


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

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:9:17: error: 'J' undeclared (first use in this function)
    9 |     for(j=0;j<H;J++){
      |                 ^
main.c:9:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:3: error: expected '}' before 'else'
   12 |   else if(0<i && i<H){
      |   ^~~~
main.c: At top level:
main.c:17:2: error: expected identifier or '(' before 'return'
   17 |  return 0 ;
      |  ^~~~~~
main.c:18:1: error: expected identifier or '(' before '}' token
   18 | }
      | ^
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:12:3: error: expected '}' before 'else'
   12 |   else if(0<i && i<H){
      |   ^~~~
main.c: At top level:
main.c:17:2: error: expected identifier or '(' before 'return'
   17 |  return 0 ;
      |  ^~~~~~
main.c:18:1: error: expected identifier or '(' before '}' token
   18 | }
      | ^
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:12:3: error: expected '}' before 'else'
   12 |   else (0<i && i<H){
      |   ^~~~
main.c:12:20: error: expected ';' before '{' token
   12 |   else (0<i && i<H){
      |                    ^
      |                    ;
main.c: At top level:
main.c:17:2: error: expected identifier or '(' before 'return'
   17 |  return 0 ;
      |  ^~~~~~
main.c:18:1: error: expected identifier or '(' before '}' token
   18 | }
      | ^
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:12:19: error: expected ';' before '{' token
   12 | }else (0<i && i<H){
      |                   ^
      |                   ;
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:12:20: error: expected ';' before '{' token
   12 | } else (0<i && i<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(j=0;j<H;j++){
      for(i=0;i<W;i++){
        if(j==0 || j==H ){
          printf("#");
        } else if(j !=0 && j !=H && i==0 || i==W){
          printf("#");
        } else{
          printf(".");
        }
      }
      printf("\n");
    }
    printf("\n");
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:11: error: expected ';' before '}' token
    8 |      break
      |           ^
      |           ;
    9 |    };
      |    ~
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(j==0 || j==H ){
          printf("#");
        } else if(j !=0 && j !=H && i==0 || i==W){
          printf("#");
        } else{
          printf(".");
        }
      }
      printf("\n");
    }
    printf("\n");
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:11: error: expected ';' before '}' token
    8 |      break
      |           ^
      |           ;
    9 |    }
      |    ~
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(j==0 || j==H ){
          printf("#");
        } else if(j !=0 && j !=H && i==0 || i==W){
          printf("#");
        } else{
          printf(".");
        }
      }
      printf("\n");
    }
    printf("\n");
  }
  return 0;
}


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

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


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

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

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

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

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

}
printf("\n");
}


Compiler output:
main.c: In function 'main':
main.c:16:20: error: expected expression before ')' token
   16 |         if(        ){
      |                    ^
Language: C

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

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

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

	for ( i = 0; i < H; i++ ){
	for ( j = 0; j < W; j++ ){
        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:16:21: error: 'a' undeclared (first use in this function)
   16 |         if(i>1 && i<a && j<b && j>1){
      |                     ^
main.c:16:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:28: error: 'b' undeclared (first use in this function)
   16 |         if(i>1 && i<a && j<b && j>1){
      |                            ^
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:11:32: error: expected ')' before 'or'
   11 |                     if ( i == 0 or i == H - 1 ) {
      |                        ~       ^~~
      |                                )
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:6: error: 'i' undeclared (first use in this function)
    6 |  for(i=0;i<h;i++)
      |      ^
main.c:6:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:8: error: 'j' undeclared (first use in this function)
   10 |    for(j=0;j<w;j++)
      |        ^
main.c:17:8: error: 'p' undeclared (first use in this function)
   17 |    for(p=0;p<w-1;p++)
      |        ^
main.c:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^
Language: C

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


Compiler output:
main.c: In function 'main':
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-1; i++){
		for(j=0; j<W; j++){
			if(i*j == 0 || j-1 ==W)
				putchar('#');
			else putchar('.');
		}
		putchar('\n');
	}
	for(i=0; i<W; i++) purchar('#');
	putchar('\n');
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:16:28: error: implicit declaration of function 'purchar'; did you mean 'putchar'? [-Wimplicit-function-declaration]
   16 |         for(i=0; i<W; i++) purchar('#');
      |                            ^~~~~~~
      |                            putchar
Language: C

#include <stdio.h>

int main (void){
  int H,W,h,w;

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

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


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

Judge and other services may stop temporarily because of system maintenance. We are sorry for the inconvenience


Compiler output:
main.c:1:1: error: unknown type name 'Judge'
    1 | Judge and other services may stop temporarily because of system maintenance. We are sorry for the inconvenience
      | ^~~~~
main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'other'
    1 | Judge and other services may stop temporarily because of system maintenance. We are sorry for the inconvenience
      |           ^~~~~
main.c:1:11: error: unknown type name 'other'
Language: C

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

int main(void){
int H;
int W;
int a;
int i;
int c;

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

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


Compiler output:
main.c: In function 'main':
main.c:17:19: error: lvalue required as left operand of assignment
   17 |       if(i==1 || i=H){
      |                   ^
main.c:20:9: error: implicit declaration of function 'prontf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   20 |         prontf(".");}
      |         ^~~~~~
      |         printf
main.c:28:1: error: expected declaration or statement at end of input
   28 | }
      | ^
Language: C

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

int main(void){
int H;
int W;
int a;
int i;
int c;

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

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


Compiler output:
main.c: In function 'main':
main.c:17:19: error: lvalue required as left operand of assignment
   17 |       if(i==1 || i=H){
      |                   ^
main.c:28:1: error: expected declaration or statement at end of input
   28 | }
      | ^
Language: C

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

int main(void){
int H;
int W;
int a;
int i;
int c;

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

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


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

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

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


Compiler output:
main.c: In function 'main':
main.c:16:40: error: lvalue required as left operand of assignment
   16 |                         if (i = 0 || i = H - 1) {
      |                                        ^