bosses.cpp: In function 'long long int solve(long long int)':
bosses.cpp:15:35: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
15 | #define forto(name, var) for (int (var) = 0; (var) < (name); (var)++)
| ^
bosses.cpp:42:5: note: in expansion of macro 'forto'
42 | forto(n, i) if (!visited[i]) return 1e18;
| ^~~~~
bosses.cpp:15:35: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
15 | #define forto(name, var) for (int (var) = 0; (var) < (name); (var)++)
| ^
bosses.cpp:43:5: note: in expansion of macro 'forto'
43 | forto(n, i) ans += dist[i];
| ^~~~~
bosses.cpp: In function 'int main()':
bosses.cpp:10:23: warning: unnecessary parentheses in declaration of 'n' [-Wparentheses]
10 | #define get(name) int (name); cin >> (name)
| ^
bosses.cpp:52:9: note: in expansion of macro 'get'
52 | get(n);
| ^~~
bosses.cpp:15:35: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
15 | #define forto(name, var) for (int (var) = 0; (var) < (name); (var)++)
| ^
bosses.cpp:54:9: note: in expansion of macro 'forto'
54 | forto(n, i) {
| ^~~~~
bosses.cpp:10:23: warning: unnecessary parentheses in declaration of 'cnt' [-Wparentheses]
10 | #define get(name) int (name); cin >> (name)
| ^
bosses.cpp:55:13: note: in expansion of macro 'get'
55 | get(cnt);
| ^~~
bosses.cpp:15:35: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
15 | #define forto(name, var) for (int (var) = 0; (var) < (name); (var)++)
| ^
bosses.cpp:56:13: note: in expansion of macro 'forto'
56 | forto(cnt, j) {
| ^~~~~
bosses.cpp:10:23: warning: unnecessary parentheses in declaration of 'v' [-Wparentheses]
10 | #define get(name) int (name); cin >> (name)
| ^
bosses.cpp:57:17: note: in expansion of macro 'get'
57 | get(v);
| ^~~
bosses.cpp:15:35: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
15 | #define forto(name, var) for (int (var) = 0; (var) < (name); (var)++)
| ^
bosses.cpp:63:9: note: in expansion of macro 'forto'
63 | forto(n, i) {
| ^~~~~