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

#include<stdio.h>

int main()
{
    int a, b, i, j, k, l;
    
    while(1){
        scanf("%d%d", &a, &b);

	if(a ==0 && b ==0) break;
        
        for(j =1; j <=b;j++) printf("#");
        printf("\n");
        for(i =1; i <=a-2;i++){
	    printf("#");
            for(l=1;l <= b; l++){
                if(l == 1 |l == b) printf("#");
                else printf(".");
               }
        for(k =1; k <b;j++) printf("#");
        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

#include<stdio.h>

int main()
{
    int a, b, i, j, k, l;
    
    while(1){
        scanf("%d%d", &a, &b);

	if(a ==0 && b ==0) break;
        
        for(j =1; j <=b;j++) printf("#");
        printf("\n");
        for(i =1; i <=a-2;i++){
	    printf("#");
            for(l=1;l <= b; l++){
                if(l == 1 ||l == b) printf("#");
                else printf(".");
               }
        for(k =1; k <b;j++) printf("#");
        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

#include<stdio.h>

int main()
{
    int a, b, i, j, k, l;
    
    while(1){
        scanf("%d%d", &a, &b);

	if(a ==0 && b ==0) break;
        
        for(j =1; j <=b;j++) printf("#");
        printf("\n");
        for(i =1; i <=a-2;i++){
            for(l=1;l <= b; l++){
                if(l == 1 ||l == b) printf("#");
                else printf(".");
               }
        for(k =1; k <b;j++) 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()
{
    int a, b, i, j;
    
    while(1){
        scanf("%d%d", &a, &b);

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


Compiler output:
main.c: In function 'main':
main.c:18:29: error: expected ';' before '}' token
   18 |                 printf("\n")
      |                             ^
      |                             ;
   19 |                }
      |                ~
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 <b;i++) printf("#");
        printf("#\n");
        for(i =1; i <=a-2;i++){
            for(j=1;j <= b; j++){
                if(j == 1 ||j == b) printf("#");
                else printf(".");
               }
        printf("\n");
        }
        for(i =1; i <b;i++) printf("#");
        printf("#\n");
    }
    printf("\n")
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:24:17: error: expected ';' before 'return'
   24 |     printf("\n")
      |                 ^
      |                 ;
   25 |     return 0;
      |     ~~~~~~
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 <b;i++) printf("#");
        printf("#\n");
        for(i =1; i <=a-2;i++){
            for(j=1;j <= b; j++){
                if(j == 1 || j == b) printf("#");
                else printf(".");      
               }
        printf("\n")
        }
        for(i =1; i <b;i++) printf("#");
        printf("#\n");
    }
    printf("\n");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:19:21: error: expected ';' before '}' token
   19 |         printf("\n")
      |                     ^
      |                     ;
   20 |         }
      |         ~
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++){
            if(i == 1 || i == a){
                for(j=1; j <b;j++) printf("#");
            }
            else {for(j=1;j <= b; j++){
                if(j == 1 || j == b) printf("#");
                else printf(".");      
            }
        printf("\n");
        for(i =1; i <b;i++) printf("#");
        printf("#\n");
    }
    printf("\n");
    return 0;
}


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


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


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


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


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

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

printf("\n");
}

printf("\n");
}

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:15: error: lvalue required as left operand of assignment
   15 | if(i = 0 || i = W)
      |               ^
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 == W)
//printf("#");
else
printf(".");
}

//printf("\n");
}

//printf("\n");
}

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:17:1: error: expected expression before 'else'
   17 | else
      | ^~~~
Language: C

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


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

#include(stdio.h)
int main(void){

int a,b,i,n;

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



Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(stdio.h)
      |         ^
main.c: In function 'main':
main.c:7:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 | scanf("%d %d",&a,&b);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include(stdio.h)
main.c:7:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 | scanf("%d %d",&a,&b);
      | ^~~~~
main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:20: error: break statement not within loop or switch
    8 | if(a == 0 && b== 0)break;
      |                    ^~~~~
main.c:9:14: error: stray '\343' in program
    9 | for(a = 0;i <<U+3000>a;i++){
      |              ^~~~~~~~
main.c:12:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   12 |     printf(".");
      |     ^~~~~~
main.c:12:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:12:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:5: error: expected '}' before 'else'
   13 |     else printf("#");}
      |     ^~~~
main.c:13:10: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |     else printf("#");}
      |          ^~~~~~
main.c:13:10: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   14 |     printf("\n")
      |     ^~~~~~
main.c:14:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:17: error: expected ';' before '}' token
   14 |     printf("\n")
      |                 ^
      |                 ;
   15 | }
      | ~                
main.c:16:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   16 |   printf("\n")
      |   ^~~~~~
main.c:16:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:15: error: expected ';' before '}' token
   16 |   printf("\n")
      |               ^
      |               ;
   17 | }
      | ~              
main.c: At top level:
main.c:18:1: error: expected identifier or '(' before 'return'
   18 | return 0;
      | ^~~~~~
main.c:19:1: error: expected identifier or '(' before '}' token
   19 | }
      | ^
Language: C

#include(stdio.h)
int main(void){

int a,b,i,n;

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



Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(stdio.h)
      |         ^
main.c: In function 'main':
main.c:7:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 | scanf("%d %d",&a,&b);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include(stdio.h)
main.c:7:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 | scanf("%d %d",&a,&b);
      | ^~~~~
main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:14: error: stray '\343' in program
    9 | for(a = 0;i <<U+3000>a;i++){
      |              ^~~~~~~~
main.c:12:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   12 |     printf(".");
      |     ^~~~~~
main.c:12:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:12:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:5: error: expected '}' before 'else'
   13 |     else printf("#");}
      |     ^~~~
main.c:13:10: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |     else printf("#");}
      |          ^~~~~~
main.c:13:10: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   15 |     printf("\n")
      |     ^~~~~~
main.c:15:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:17: error: expected ';' before '}' token
   15 |     printf("\n")
      |                 ^
      |                 ;
   16 | }
      | ~                
main.c:17:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   17 |   printf("\n")
      |   ^~~~~~
main.c:17:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:15: error: expected ';' before '}' token
   17 |   printf("\n")
      |               ^
      |               ;
   18 | }
      | ~              
main.c: At top level:
main.c:19:1: error: expected identifier or '(' before 'return'
   19 | return 0;
      | ^~~~~~
main.c:20:1: error: expected identifier or '(' before '}' token
   20 | }
      | ^
Language: C

#include(stdio.h)
int main(void){

int a,b,i,n;

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



Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(stdio.h)
      |         ^
main.c: In function 'main':
main.c:7:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 | scanf("%d %d",&a,&b);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include(stdio.h)
main.c:7:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 | scanf("%d %d",&a,&b);
      | ^~~~~
main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:14: error: stray '\343' in program
    9 | for(a = 0;i <<U+3000>a;i++){
      |              ^~~~~~~~
main.c:12:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   12 |     printf(".");
      |     ^~~~~~
main.c:12:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:12:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:5: error: expected '}' before 'else'
   13 |     else printf("#");}
      |     ^~~~
main.c:13:10: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |     else printf("#");}
      |          ^~~~~~
main.c:13:10: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   15 |     printf("\n")
      |     ^~~~~~
main.c:15:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:17: error: expected ';' before '}' token
   15 |     printf("\n")
      |                 ^
      |                 ;
   16 | }
      | ~                
main.c:17:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   17 |   printf("\n")
      |   ^~~~~~
main.c:17:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:15: error: expected ';' before '}' token
   17 |   printf("\n")
      |               ^
      |               ;
   18 | }
      | ~              
main.c: At top level:
main.c:19:1: error: expected identifier or '(' before 'return'
   19 | return 0;
      | ^~~~~~
main.c:20:1: error: expected identifier or '(' before '}' token
   20 | }
      | ^
Language: C

#include(stdio.h)
int main(void){

int a,b,i,n;

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



Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(stdio.h)
      |         ^
main.c: In function 'main':
main.c:7:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 | scanf("%d %d",&a,&b);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include(stdio.h)
main.c:7:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 | scanf("%d %d",&a,&b);
      | ^~~~~
main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:14: error: stray '\343' in program
    9 | for(a = 0;i <<U+3000>a;i++){
      |              ^~~~~~~~
main.c:12:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   12 |     printf(".");
      |     ^~~~~~
main.c:12:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:12:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:5: error: expected '}' before 'else'
   13 |     else printf("#");}
      |     ^~~~
main.c:13:10: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |     else printf("#");}
      |          ^~~~~~
main.c:13:10: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   15 |     printf("\n");
      |     ^~~~~~
main.c:15:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   17 |   printf("\n");
      |   ^~~~~~
main.c:17:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c: At top level:
main.c:19:1: error: expected identifier or '(' before 'return'
   19 | return 0;
      | ^~~~~~
main.c:20:1: error: expected identifier or '(' before '}' token
   20 | }
      | ^
Language: C

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

int a,b,i,n;

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



Compiler output:
main.c: In function 'main':
main.c:9:14: error: stray '\343' in program
    9 | for(a = 0;i <<U+3000>a;i++){
      |              ^~~~~~~~
main.c:13:5: error: expected '}' before 'else'
   13 |     else printf("#");}
      |     ^~~~
main.c: At top level:
main.c:19:1: error: expected identifier or '(' before 'return'
   19 | return 0;
      | ^~~~~~
main.c:20:1: error: expected identifier or '(' before '}' token
   20 | }
      | ^
Language: C

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

int a,b,i,n;

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



Compiler output:
main.c: In function 'main':
main.c:9:14: error: stray '\343' in program
    9 | for(a = 0;i <<U+3000>a;i++){
      |              ^~~~~~~~
Language: C

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


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

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

int a,b,i,n;

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



Compiler output:
main.c: In function 'main':
main.c:9:14: error: stray '\343' in program
    9 | for(a = 0;i <<U+3000>a;i++){
      |              ^~~~~~~~
Language: C

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

int a,b,i,n;

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



Compiler output:
main.c: In function 'main':
main.c:9:14: error: stray '\343' in program
    9 | for(a = 0;i <<U+3000>a;i++){
      |              ^~~~~~~~
main.c:13:4: error: expected '}' before 'else'
   13 |    else
      |    ^~~~
main.c: At top level:
main.c:20:1: error: expected identifier or '(' before 'return'
   20 | return 0;
      | ^~~~~~
main.c:21:1: error: expected identifier or '(' before '}' token
   21 | }
      | ^
Language: C

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

int a,b,i,n;

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



Compiler output:
main.c: In function 'main':
main.c:9:14: error: stray '\343' in program
    9 | for(a = 1;i <<U+3000>a;i++){
      |              ^~~~~~~~
main.c:13:1: error: expected '}' before 'else'
   13 | else printf("#");}
      | ^~~~
main.c: At top level:
main.c:19:1: error: expected identifier or '(' before 'return'
   19 | return 0;
      | ^~~~~~
main.c:20:1: error: expected identifier or '(' before '}' token
   20 | }
      | ^
Language: C

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

int a,b,i,n;

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



Compiler output:
main.c: In function 'main':
main.c:9:15: error: stray '\343' in program
    9 | for(a = 1;i <=<U+3000>a;i++){
      |               ^~~~~~~~
main.c:13:1: error: expected '}' before 'else'
   13 | else printf("#");}
      | ^~~~
main.c: At top level:
main.c:19:1: error: expected identifier or '(' before 'return'
   19 | return 0;
      | ^~~~~~
main.c:20:1: error: expected identifier or '(' before '}' token
   20 | }
      | ^
Language: C

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

int a,b,i,n;

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



Compiler output:
main.c: In function 'main':
main.c:9:15: error: stray '\343' in program
    9 | for(a = 1;i <=<U+3000>a;i++){
      |               ^~~~~~~~
Language: C

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

int a,b,i,n;

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



Compiler output:
main.c: In function 'main':
main.c:9:15: error: stray '\343' in program
    9 | for(a = 1;i <=<U+3000>a;i++){
      |               ^~~~~~~~
Language: C

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

int a,b,i,n;

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



Compiler output:
main.c: In function 'main':
main.c:9:15: error: stray '\343' in program
    9 | for(i = 1;i <=<U+3000>a;i++){
      |               ^~~~~~~~
Language: C

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

int a,b,i,n;

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



Compiler output:
main.c: In function 'main':
main.c:9:15: error: stray '\343' in program
    9 | for(i = 1;i <=<U+3000>a;i++){
      |               ^~~~~~~~
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;
        }
int i, j;
for ( i = 0; i < 4; i++ ){
    for ( j = 0; j < 8; j++ ){
        if(        ){
            printf(".");
        } else {
            printf("#");
        }
    }
    printf("\n");
}
    }
    printf("\n");
    return 0;
}


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


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


Compiler output:
main.c: In function 'main':
main.c:14:9: error: 'ifi' undeclared (first use in this function)
   14 |         ifi > 1 && i < W && j > 1 && j < H){
      |         ^~~
main.c:14:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:43: error: expected ';' before ')' token
   14 |         ifi > 1 && i < W && j > 1 && j < H){
      |                                           ^
      |                                           ;
main.c:14:43: error: expected statement before ')' token
main.c:16:11: error: 'else' without a previous 'if'
   16 |         } else {
      |           ^~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:10:62: error: expected ';' before 'else'
   10 |                 if(x <= 1&&x >= H&&y <= 1&&y >= W)printf("#")
      |                                                              ^
      |                                                              ;
   11 |                 else if printf(".")
      |                 ~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:16:20: error: expected ';' before '}' token
   16 |         printf(".")
      |                    ^
      |                    ;
   17 |       }
      |       ~             
main.c:18:6: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |      print("\n");
      |      ^~~~~
      |      printf
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:16:20: error: expected ';' before '}' token
   16 |         printf(".")
      |                    ^
      |                    ;
   17 |       }
      |       ~             
main.c:19:6: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   19 |      print("\n");
      |      ^~~~~
      |      printf
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:16:20: error: expected ';' before '}' token
   16 |         printf(".")
      |                    ^
      |                    ;
   17 |       }
      |       ~             
main.c:18:6: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |      print("\n");
      |      ^~~~~
      |      printf
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:16:20: error: expected ';' before '}' token
   16 |         printf(".")
      |                    ^
      |                    ;
   17 |       }
      |       ~             
main.c:18:6: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |      print("\n");
      |      ^~~~~
      |      printf
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:16:20: error: expected ';' before '}' token
   16 |         printf(".")
      |                    ^
      |                    ;
   17 |       }
      |       ~             
main.c:18:6: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |      print("\n");
      |      ^~~~~
      |      printf
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:16:20: error: expected ';' before '}' token
   16 |         printf(".")
      |                    ^
      |                    ;
   17 |       }
      |       ~             
main.c:18:6: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |      print("\n");
      |      ^~~~~
      |      printf
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:16:6: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   16 |      print("\n");
      |      ^~~~~
      |      printf
main.c:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^
Language: C

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


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

#include <stdio.h>

int main(void) {

int H,W,x,y;
scanf("%d %d\n",&H,&W);
while((H!=0)||(W!=0)){
for(y=1;y<=H;y++){
s=((y==1)||(y==H))?'#':".";
printf("#");
for(x=1;x<=W-2;x++){
printf("%c",s);
}
printf("#\n");
}
printf("\n");
scanf("%d %d\n",&H,&W);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:1: error: 's' undeclared (first use in this function)
    9 | s=((y==1)||(y==H))?'#':".";
      | ^
main.c:9:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:23: error: pointer/integer type mismatch in conditional expression [-Wint-conversion]
    9 | s=((y==1)||(y==H))?'#':".";
      |                       ^
Language: C

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

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

#include <stdio.h>

int main(int argv, char *argc[]){
    int hex, wide, x, y;
    
    while(1){
        scanf("%d %d", &hex ,&wide);
        
        if(hex == 0 || wide == 0)break;
        
        for(y=0;y<hex;y++){
            for(x=0;x<wide;x++){
                if((!(0==y)) && (!((hex-1)==y)) &&
                    (!(0==x)) && (!((wide-1)==x))){
                    print(".");
                    continue;
                }
                printf("#");
                 
            }
            printf("\n");
        }
        printf("\n");
        
    }
    return 0;
}

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

#include<stdio.h>

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

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

#include<stdio.h>

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

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

#include<stdio.h>

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

while(1){
  if(w == 0 && h == 0 )break;
  for(i=0;i<h;i++){
  for(j=0;j<w;j++){
  if(i==0 or i==(h-1) or j==0 or j==(w-1))printf("#");
  else printf(".");
  }
  printf("\n");
  }
  printf("\n");
}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:10: error: expected ')' before 'or'
   11 |   if(i==0 or i==(h-1) or j==0 or j==(w-1))printf("#");
      |     ~    ^~~
      |          )
Language: C

#include<stdio.h>

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

while(1){
  if(w == 0 && h == 0 )break;
  for(i=0;i<h;i++){
  for(j=0;j<w;j++){
  if(i==0 or i==h-1 or j==0 or j==w-1)printf("#");
  else printf(".");
  }
  printf("\n");
  }
  printf("\n");
}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:10: error: expected ')' before 'or'
   11 |   if(i==0 or i==h-1 or j==0 or j==w-1)printf("#");
      |     ~    ^~~
      |          )
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:15:71: error: expected ')' before '{' token
   15 |         if(((i == 0) | (i == (H - 1))) | (((s == 0) | (s == (W - 1)))){
      |           ~                                                           ^
      |                                                                       )
main.c:20:7: error: expected expression before '}' token
   20 |       }
      |       ^
Language: C

#include <stdio.h>

int main( void )
{
	int H;
	int W;
	int loop1;
	int loop2;

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

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

	}

	return ( 0 );
}

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

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

Compiler output:
main.c: In function 'main':
main.c:6:5: error: expected '}' before 'else'
    6 |     else for(i=1;i<=h;i++){
      |     ^~~~
main.c: At top level:
main.c:21:3: error: expected identifier or '(' before 'return'
   21 |   return 0;
      |   ^~~~~~
main.c:22:1: error: expected identifier or '(' before '}' token
   22 | }
      | ^
Language: C

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

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

for (p=0;p<W;p++){
  printf("#");
}
printf("\n");

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

for(p=0;p<W;)p++){
 printf("#");
}
printf("\n");

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:17: error: expected ';' before ')' token
   22 | for(p=0;p<W;)p++){
      |                 ^
      |                 ;
main.c:22:17: error: expected statement before ')' token
Language: C

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

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

for(p=0;p<W;p++){
 printf("#");
}
printf("\n");

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

for(p=0;p<W;p++){
 printf("#");
}
printf("\n");

return 0;
}

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

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

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

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

  int h[100],w[100],i,j,k=0;

  while(h!=0&&w!=0){
    scanf("%d%d",&h[k],&w[k]);
    k++;
  }

  for(k=0;k<100;k++){
    if(h[k]==0&&w[k]==0) break;
    else for(i=1;i<=h[k];i++){
	for(j=1;j<=w[k];j++){
	  if(i==1||i==h||j==1||j==w){
	    printf("#");
	  }
	  else printf(".");
	}
	printf("\n");
      }

    return 0;
  }

Compiler output:
main.c: In function 'main':
main.c:15:21: warning: comparison between pointer and integer
   15 |           if(i==1||i==h||j==1||j==w){
      |                     ^~
main.c:15:33: warning: comparison between pointer and integer
   15 |           if(i==1||i==h||j==1||j==w){
      |                                 ^~
main.c:24:3: error: expected declaration or statement at end of input
   24 |   }
      |   ^
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 || j == 0 || j == W - 1) {
????????????????????????????????????????fputc('#', stdout);
????????????????????????????????} else {
????????????????????????????????????????fputc('.', stdout);
????????????????????????????????}
????????????????????????}
????????????????????????printf("\n");
????????????????}
????????????????printf("\n");
????????}
????????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 = 0; i < H; i++) {
????????????????????????for (j = 0; j < W; j++) {
????????????????????????????????if (i == 0 || i == H - 1 || j == 0 || j == W - 1) {
????????????????????????????????????????fputc('#', stdout);
????????????????????????????????} else {
????????????????????????????????????????fputc('.', stdout);
????????????????????????????????}
????????????????????????}
????????????????????????printf("\n");
????????????????}
        printf("\n");
????????}
????????return 0;
}

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

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

  int h,w,i,j,k=0;

    scanf("%d%d",&h,&w);
    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");
    }
  }

  return 0;
}

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

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

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