spy.cpp: In function 'int main()':
spy.cpp:19:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n,&m);
~~~~~^~~~~~~~~~~~~~~~
spy.cpp:21:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &p[i], &p1[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
spy.cpp:24:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &q, &w);
~~~~~^~~~~~~~~~~~~~~~~