match.cpp: In function 'bool inverse(int, std::vector<char>)':
match.cpp:20:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | if(j < vec.size() && vec[j] == s[i])
| ~~^~~~~~~~~~~~
match.cpp:28:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | if(j==vec.size())
| ~^~~~~~~~~~~~
match.cpp: In function 'int main()':
match.cpp:38:16: warning: array subscript has type 'char' [-Wchar-subscripts]
38 | cnt[s[i]]++;
| ~~~^
match.cpp:48:23: warning: array subscript has type 'char' [-Wchar-subscripts]
48 | if(cur[s[i]] >= cnt[s[i]]/2 || !inverse(i+1, st)){
| ~~~^
match.cpp:48:36: warning: array subscript has type 'char' [-Wchar-subscripts]
48 | if(cur[s[i]] >= cnt[s[i]]/2 || !inverse(i+1, st)){
| ~~~^
match.cpp:50:24: warning: array subscript has type 'char' [-Wchar-subscripts]
50 | cur[s[i]] -= 2;
| ~~~^
match.cpp:55:16: warning: array subscript has type 'char' [-Wchar-subscripts]
55 | cur[s[i]]++;
| ~~~^
match.cpp:35:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
35 | scanf(" %s", s);
| ~~~~~^~~~~~~~~~