stove.cpp: In function 'int main()':
stove.cpp:10:23: warning: unnecessary parentheses in declaration of 'n' [-Wparentheses]
10 | #define get(name) int (name); cin >> (name)
| ^
stove.cpp:22:5: note: in expansion of macro 'get'
22 | get(n);
| ^~~
stove.cpp:10:23: warning: unnecessary parentheses in declaration of 'k' [-Wparentheses]
10 | #define get(name) int (name); cin >> (name)
| ^
stove.cpp:23:5: note: in expansion of macro 'get'
23 | get(k);
| ^~~
stove.cpp:12:40: warning: unnecessary parentheses in declaration of 'times' [-Wparentheses]
12 | #define getList(cnt, name) vector<int> (name); for (int _=0;_<(cnt);_++) { get(a); (name).push_back(a); }
| ^
stove.cpp:25:5: note: in expansion of macro 'getList'
25 | getList(n, times);
| ^~~~~~~
stove.cpp:10:23: warning: unnecessary parentheses in declaration of 'a' [-Wparentheses]
10 | #define get(name) int (name); cin >> (name)
| ^
stove.cpp:12:76: note: in expansion of macro 'get'
12 | #define getList(cnt, name) vector<int> (name); for (int _=0;_<(cnt);_++) { get(a); (name).push_back(a); }
| ^~~
stove.cpp:25:5: note: in expansion of macro 'getList'
25 | getList(n, times);
| ^~~~~~~
stove.cpp:15:35: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
15 | #define forto(name, var) for (int (var) = 0; (var) < (name); (var)++)
| ^
stove.cpp:28:5: note: in expansion of macro 'forto'
28 | forto(n - 1, i) delta.push_back(times[i + 1] - times[i] - 1);
| ^~~~~
stove.cpp:15:35: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
15 | #define forto(name, var) for (int (var) = 0; (var) < (name); (var)++)
| ^
stove.cpp:31:5: note: in expansion of macro 'forto'
31 | forto(min(k, n - 1), i) ans -= delta[i];
| ^~~~~