match.cpp: In function 'int main()':
match.cpp:11:21: warning: array subscript has type 'char' [-Wchar-subscripts]
for(auto c:s) cnt[c]++;
^
match.cpp:13:11: warning: array subscript has type 'char' [-Wchar-subscripts]
if(cnt[c]%2==1){
^
match.cpp:17:11: warning: array subscript has type 'char' [-Wchar-subscripts]
if(cur[c]<cnt[c]/2) b+='(';
^
match.cpp:17:18: warning: array subscript has type 'char' [-Wchar-subscripts]
if(cur[c]<cnt[c]/2) b+='(';
^
match.cpp:19:8: warning: array subscript has type 'char' [-Wchar-subscripts]
cur[c]++;
^
match.cpp:21:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<s.size() ;i++){
~^~~~~~~~~