Language: C++


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

int i,j,H,W;

while(1){

scanf(“%d %d”,&H,&W);

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

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

　　　for(j=1;j<=W;j++){

　　　　if(i==1 || i==H || j==1 || j==W) printf(“#”);

　　　　else printf(“.”);

　　　}

　　　printf(“\n”);

　　}

printf(“\n”);

}

return 0; }

Compiler output:
a.cc:9:7: error: extended character “ is not valid in an identifier
    9 | scanf(“%d %d”,&H,&W);
      |       ^
a.cc:9:12: error: extended character ” is not valid in an identifier
    9 | scanf(“%d %d”,&H,&W);
      |            ^
a.cc:15:1: error: extended character 　 is not valid in an identifier
   15 | 　　　for(j=1;j<=W;j++){
      | ^
a.cc:15:1: error: extended character 　 is not valid in an identifier
a.cc:15:1: error: extended character 　 is not valid in an identifier
a.cc:17:1: error: extended character 　 is not valid in an identifier
   17 | 　　　　if(i==1 || i==H || j==1 || j==W) printf(“#”);
      | ^
a.cc:17:1: error: extended character 　 is not valid in an identifier
a.cc:17:1: error: extended character 　 is not valid in an identifier
a.cc:17:1: error: extended character 　 is not valid in an identifier
a.cc:17:49: error: extended character “ is not valid in an identifier
   17 | 　　　　if(i==1 || i==H || j==1 || j==W) printf(“#”);
      |                                                 ^
a.cc:17:50: error: stray '#' in program
   17 | 　　　　if(i==1 || i==H || j==1 || j==W) printf(“#”);
      |                                                  ^
a.cc:17:51: error: extended character ” is not valid in an identifier
   17 | 　　　　if(i==1 || i==H || j==1 || j==W) printf(“#”);
      |                                                   ^
a.cc:19:1: error: extended character 　 is not valid in an identifier
   19 | 　　　　else printf(“.”);
      | ^
a.cc:19:1: error: extended character 　 is not valid in an identifier
a.cc:19:1: error: extended character 　 is not valid in an identifier
a.cc:19:1: error: extended character 　 is not valid in an identifier
a.cc:19:21: error: extended character “ is not valid in an identifier
   19 | 　　　　else printf(“.”);
      |                     ^
a.cc:19:23: error: extended character ” is not valid in an identifier
   19 | 　　　　else printf(“.”);
      |                       ^
a.cc:21:1: error: extended character 　 is not valid in an identifier
   21 | 　　　}
      | ^
a.cc:21:1: error: extended character 　 is not valid in an identifier
a.cc:21:1: error: extended character 　 is not valid in an identifier
a.cc:23:1: error: extended character 　 is not valid in an identifier
   23 | 　　　printf(“\n”);
      | ^
a.cc:23:1: error: extended character 　 is not valid in an identifier
a.cc:23:1: error: extended character 　 is not valid in an identifier
a.cc:23:14: error: extended character “ is not valid in an identifier
   23 | 　　　printf(“\n”);
      |              ^
a.cc:23:15: error: stray '\' in program
   23 | 　　　printf(“\n”);
      |               ^
a.cc:23:16: error: extended character ” is not valid in an identifier
   23 | 　　　printf(“\n”);
      |                ^
a.cc:25:1: error: extended character 　 is not valid in an identifier
   25 | 　　}
      | ^
a.cc:25:1: error: extended character 　 is not valid in an identifier
a.cc:27:8: error: extended character “ is not valid in an identifier
   27 | printf(“\n”);
      |        ^
a.cc:27:9: error: stray '\' in program
   27 | printf(“\n”);
      |         ^
a.cc:27:10: error: extended character ” is not valid in an identifier
   27 | printf(“\n”);
      |          ^
a.cc: In function 'int main()':
a.cc:9:7: error: '\U0000201c' was not declared in this scope
    9 | scanf(“%d %d”,&H,&W);
      |       ^
a.cc:9:9: error: 'd' was not declared in this scope
    9 | scanf(“%d %d”,&H,&W);
      |         ^
a.cc:9:12: error: 'd\U0000201d' was not declared in this scope
    9 | scanf(“%d %d”,&H,&W);
      |            ^~
a.cc:15:14: error: expected ')' before ';' token
   15 | 　　　for(j=1;j<=W;j++){
      |          ~   ^
      |              )
a.cc:15:23: error: expected ';' before ')' token
   15 | 　　　for(j=1;j<=W;j++){
      |                       ^
      |                       ;
a.cc:23:15: error: expected ')' before 'n\U0000201d'
   23 | 　　　printf(“\n”);
      |             ~ ^~~
      |               )
a.cc:23:1: error: '\U00003000\U00003000\U00003000printf' was not declared in this scope
   23 | 　　　printf(“\n”);
      | ^~~~~~~~~~~~
a.cc:25:1: error: '\U00003000\U00003000' was not declared in this scope
   25 | 　　}
      | ^~~~
a.cc:27:9: error: expected ')' before 'n\U0000201d'
   27 | printf(“\n”);
      |       ~ ^~~
      |         )