snake_escaping.cpp: In function 'int main()':
snake_escaping.cpp:54:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
54 | freopen("d.in","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~
snake_escaping.cpp:55:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
55 | freopen("d.out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~
snake_escaping.cpp:56:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
56 | scanf("%d %d",&L,&Q);
| ~~~~~^~~~~~~~~~~~~~~
snake_escaping.cpp:57:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
57 | scanf("%s",S);
| ~~~~~^~~~~~~~
snake_escaping.cpp:66:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
66 | scanf("%s",T);
| ~~~~~^~~~~~~~