Main.cpp: In function 'void sol()':
Main.cpp:6:9: warning: unused variable 'p' [-Wunused-variable]
6 | int p=n-m-1;
| ^
Main.cpp: In function 'int main()':
Main.cpp:21:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
21 | freopen("c.INP","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~
Main.cpp:22:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
22 | freopen("c.OUT","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~