foo.cc: In function 'int main()':
foo.cc:11:20: warning: format '%F' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
   11 |         printf("%.2F",m);
      |                 ~~~^  ~
      |                    |  |
      |                    |  int
      |                    double
      |                 %.2d
foo.cc:7:18: warning: 'n' is used uninitialized [-Wuninitialized]
    7 |         while(a+1==n)
      |               ~~~^~~
foo.cc:5:17: note: 'n' was declared here
    5 |         int a,m,n;
      |                 ^
foo.cc:11:15: warning: 'm' may be used uninitialized [-Wmaybe-uninitialized]
   11 |         printf("%.2F",m);
      |         ~~~~~~^~~~~~~~~~
foo.cc:5:15: note: 'm' was declared here
    5 |         int a,m,n;
      |               ^
   
  
    [Hydro](https://hydro.ac)提供评测服务