match.cpp: In function 'int main()':
match.cpp:10:16: warning: array subscript has type 'char' [-Wchar-subscripts]
10 | cnt[s[i]]++;
| ~~~^
match.cpp:19:19: warning: array subscript has type 'char' [-Wchar-subscripts]
19 | if(cur[s[i]] < cnt[s[i]]/2){
| ~~~^
match.cpp:19:31: warning: array subscript has type 'char' [-Wchar-subscripts]
19 | if(cur[s[i]] < cnt[s[i]]/2){
| ~~~^
match.cpp:31:16: warning: array subscript has type 'char' [-Wchar-subscripts]
31 | cur[s[i]]++;
| ~~~^
match.cpp:7:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
7 | scanf(" %s", s);
| ~~~~~^~~~~~~~~~