pin.cpp: In function 'int solve()':
pin.cpp:22:18: warning: unused variable 'p' [-Wunused-variable]
int i, j, k, p, q;
^
pin.cpp:22:21: warning: unused variable 'q' [-Wunused-variable]
int i, j, k, p, q;
^
pin.cpp:46:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
pin.cpp: In function 'int main()':
pin.cpp:50:12: warning: unused variable 'j' [-Wunused-variable]
int i, j;
^
pin.cpp:52:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &N, &D);
~~~~~^~~~~~~~~~~~~~~~
pin.cpp:56:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", s);
~~~~~^~~~~~~~~