robots.cpp: In function 'int main()':
robots.cpp:16:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | scanf("%d %d %d\n",&n,&w,&h);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
robots.cpp:21:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
21 | scanf("%c",&c);
| ~~~~~^~~~~~~~~
robots.cpp:45:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
45 | scanf("\n");
| ~~~~~^~~~~~
robots.cpp:17:18: warning: 'y2' may be used uninitialized in this function [-Wmaybe-uninitialized]
17 | int x1,y1,x2,y2;
| ^~
robots.cpp:17:15: warning: 'x2' may be used uninitialized in this function [-Wmaybe-uninitialized]
17 | int x1,y1,x2,y2;
| ^~
robots.cpp:17:12: warning: 'y1' may be used uninitialized in this function [-Wmaybe-uninitialized]
17 | int x1,y1,x2,y2;
| ^~
robots.cpp:17:9: warning: 'x1' may be used uninitialized in this function [-Wmaybe-uninitialized]
17 | int x1,y1,x2,y2;
| ^~