brperm.cpp: In function 'int query(int, int)':
brperm.cpp:18:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | if ((j+ind>=S.length()) || (i>=S.length())) exit(1);
| ~~~~~^~~~~~~~~~~~
brperm.cpp:18:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | if ((j+ind>=S.length()) || (i>=S.length())) exit(1);
| ~^~~~~~~~~~~~