match.cpp: In function 'int main()':
match.cpp:9:17: warning: array subscript has type 'char' [-Wchar-subscripts]
++ cnt[v];
^
match.cpp:18:32: warning: array subscript has type 'char' [-Wchar-subscripts]
res.push_back((++cnt2[v] <= cnt[v]/2 ? '(' : ')'));
^
match.cpp:18:42: warning: array subscript has type 'char' [-Wchar-subscripts]
res.push_back((++cnt2[v] <= cnt[v]/2 ? '(' : ')'));
^
match.cpp:22:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<res.size();i++){
^