snake_escaping.cpp: In function 'void calc()':
snake_escaping.cpp:15:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | for(int j=0;j<bits.size();j++)if(bits[j]==2)lst[i]=j;
| ~^~~~~~~~~~~~
snake_escaping.cpp: In function 'void BruteForce()':
snake_escaping.cpp:30:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
30 | scanf("%s",qs);
| ~~~~~^~~~~~~~~
snake_escaping.cpp: In function 'int main()':
snake_escaping.cpp:37:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
37 | scanf("%i%i",&l,&q);
| ~~~~~^~~~~~~~~~~~~~
snake_escaping.cpp:38:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | scanf("%s",s);
| ~~~~~^~~~~~~~