Compiler output
prog.cpp: In function 'int main()':
prog.cpp:11:31: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'double*' [-Wformat=]
while(scanf("%d%d", &a, &b) == 2) {
^
prog.cpp:11:31: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'double*' [-Wformat=]
prog.cpp:12:32: warning: format '%d' expects argument of type 'int', but argument 2 has type 'double' [-Wformat=]
printf("%d%d\n", -a, -b);
^
prog.cpp:12:32: warning: format '%d' expects argument of type 'int', but argument 3 has type 'double' [-Wformat=]