match.cpp: In function 'int main()':
match.cpp:15:35: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
15 | #define forto(name, var) for (int (var) = 0; (var) < (name); (var)++)
| ^
match.cpp:27:5: note: in expansion of macro 'forto'
27 | forto(n, i) chars[s[i]].push_back(i);
| ^~~~~
match.cpp:15:35: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
15 | #define forto(name, var) for (int (var) = 0; (var) < (name); (var)++)
| ^
match.cpp:35:9: note: in expansion of macro 'forto'
35 | forto(ind.size(), i) {
| ^~~~~
match.cpp:15:52: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | #define forto(name, var) for (int (var) = 0; (var) < (name); (var)++)
| ~~~~~~^~~~~~~~
match.cpp:35:9: note: in expansion of macro 'forto'
35 | forto(ind.size(), i) {
| ^~~~~
match.cpp:36:19: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | if (i < ind.size() / 2) res[ind[i]] = '(';
| ~~^~~~~~~~~~~~~~~~
match.cpp:15:35: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
15 | #define forto(name, var) for (int (var) = 0; (var) < (name); (var)++)
| ^
match.cpp:42:9: note: in expansion of macro 'forto'
42 | forto(n, i) {
| ^~~~~
match.cpp:15:35: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
15 | #define forto(name, var) for (int (var) = 0; (var) < (name); (var)++)
| ^
match.cpp:52:9: note: in expansion of macro 'forto'
52 | forto(n, i) {
| ^~~~~
match.cpp:15:35: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
15 | #define forto(name, var) for (int (var) = 0; (var) < (name); (var)++)
| ^
match.cpp:61:9: note: in expansion of macro 'forto'
61 | forto(n, i) {
| ^~~~~
match.cpp:15:35: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
15 | #define forto(name, var) for (int (var) = 0; (var) < (name); (var)++)
| ^
match.cpp:72:9: note: in expansion of macro 'forto'
72 | forto(n, i) {
| ^~~~~