运行 ID: 6248

Main.cc: In function ‘int main()’:
Main.cc:6:12: warning: format ‘%lf’ expects argument of type ‘double’, but argument 2 has type ‘int’ [-Wformat=]
     printf("%.2lf",a)
            ^~~~~~~ ~
Main.cc:6:22: error: expected ‘;’ before ‘if’
     printf("%.2lf",a)
                      ^
                      ;
     if (a>=0)
     ~~                
Main.cc:10:6: error: ‘else’ without a previous ‘if’
     }else if (a<0)
      ^~~~