art.cpp: In function 'int main()':
art.cpp:10:23: warning: unnecessary parentheses in declaration of 'n' [-Wparentheses]
10 | #define get(name) int (name); cin >> (name)
| ^
art.cpp:22:5: note: in expansion of macro 'get'
22 | get(n);
| ^~~
art.cpp:15:35: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
15 | #define forto(name, var) for (int (var) = 0; (var) < (name); (var)++)
| ^
art.cpp:24:5: note: in expansion of macro 'forto'
24 | forto(n, i) {
| ^~~~~
art.cpp:10:23: warning: unnecessary parentheses in declaration of 'a' [-Wparentheses]
10 | #define get(name) int (name); cin >> (name)
| ^
art.cpp:25:9: note: in expansion of macro 'get'
25 | get(a);
| ^~~
art.cpp:10:23: warning: unnecessary parentheses in declaration of 'b' [-Wparentheses]
10 | #define get(name) int (name); cin >> (name)
| ^
art.cpp:26:9: note: in expansion of macro 'get'
26 | get(b);
| ^~~
art.cpp:15:35: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
15 | #define forto(name, var) for (int (var) = 0; (var) < (name); (var)++)
| ^
art.cpp:31:5: note: in expansion of macro 'forto'
31 | forto(n, i) values.push_back(art[i].first + art[i].second - (i == n - 1? 0: art[i + 1].first));
| ^~~~~