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