worm.cpp: In function 'int main()':
worm.cpp:6:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
6 | scanf("%d %d %d %d", &n, &m, &k, &q);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
worm.cpp:11:52: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | printf("? %d 1 1\n", x1); fflush(stdout); scanf("%d", &v1);
| ~~~~~^~~~~~~~~~~
worm.cpp:12:52: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | printf("? %d 1 1\n", x2); fflush(stdout); scanf("%d", &v2);
| ~~~~~^~~~~~~~~~~
worm.cpp:20:82: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
20 | g ? (x1 == x2 ? x2++ : 0, printf("? %d 1 1\n", x2), fflush(stdout), scanf("%d", &v2)) : (x1 == x2 ? x1-- : 0, printf("? %d 1 1\n", x1), fflush(stdout), scanf("%d", &v1));
| ~~~~~^~~~~~~~~~~
worm.cpp:20:166: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
20 | g ? (x1 == x2 ? x2++ : 0, printf("? %d 1 1\n", x2), fflush(stdout), scanf("%d", &v2)) : (x1 == x2 ? x1-- : 0, printf("? %d 1 1\n", x1), fflush(stdout), scanf("%d", &v1));
| ~~~~~^~~~~~~~~~~