tuna.cpp: In function 'int main()':
tuna.cpp:12:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &x);
~~~~~^~~~~~~~~~~~~~~~~
tuna.cpp:15:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int p1, p2; scanf("%d %d", &p1, &p2);
~~~~~^~~~~~~~~~~~~~~~~~~
tuna.cpp:18:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int p3; scanf("%d", &p3);
~~~~~^~~~~~~~~~~