/in/foo.cc: In function 'int main()':
/in/foo.cc:5:13: warning: format '%f' expects argument of type 'float*', but argument 2 has type 'int' [-Wformat=]
5 | scanf("%f",a);
| ~^ ~
| | |
| | int
| float*
/in/foo.cc:15:32: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
15 | printf(".2%f",a) ;
| ~^ ~
| | |
| | int
| double
| %d
/in/foo.cc:5:10: warning: 'a' is used uninitialized [-Wuninitialized]
5 | scanf("%f",a);
| ~~~~~^~~~~~~~
/in/foo.cc:4:9: note: 'a' was declared here
4 | int a;
| ^