foo.cc: In function 'int main()':
foo.cc:55:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int*' [-Wformat=]
printf("%d ",&i);
~~^
foo.cc: In function 'int cal(robot&, robot&)':
foo.cc:20:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
foo.cc: In function 'int main()':
foo.cc:24:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
~~~~~^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务