match.cpp: In function 'bool valid(std::string)':
match.cpp:16:21: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
16 | for(int i = 0;i < q.size() - 1;i++)
| ~~^~~~~~~~~~~~~~
match.cpp:32:21: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | for(int i = 0;i < q.size();i++){
| ~~^~~~~~~~~~
match.cpp:35:16: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | return cnt == q.size();
| ~~~~^~~~~~~~~~~
match.cpp: In function 'bool ok(std::string, std::string)':
match.cpp:41:21: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | for(int i = 0;i < q.size() - 1;i++)
| ~~^~~~~~~~~~~~~~
match.cpp:66:21: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
66 | for(int i = 0;i < q.size();i++){
| ~~^~~~~~~~~~
match.cpp:69:16: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
69 | return cnt == q.size();
| ~~~~^~~~~~~~~~~