foo.c:3:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'n'
    3 | n = 100010
      | ^
foo.c: In function 'main':
foo.c:17:11: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
   17 | scanf("%11d",&n);
      |        ~~~^  ~~
      |           |  |
      |           |  long int *
      |           int *
      |        %11ld
foo.c:18:12: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
   18 | printf("%11d\n",n)
      |         ~~~^    ~
      |            |    |
      |            int  long int
      |         %11ld
foo.c:18:19: error: expected ';' before 'return'
   18 | printf("%11d\n",n)
      |                   ^
      |                   ;
   19 | return 0;
      | ~~~~~~             
   
  
    [Hydro](https://hydro.ac)提供评测服务