building4.cpp:4: warning: "FOR" redefined
4 | #define FOR(i, b) for(int i = 0; i < (b); i++)
|
building4.cpp:3: note: this is the location of the previous definition
3 | #define FOR(i, a, b) for(int i = (a); i < (b); i++)
|
building4.cpp:6: warning: "ROF" redefined
6 | #define ROF(i, a, b) for(int i = (b) - 1; i >= (a); i--)
|
building4.cpp:5: note: this is the location of the previous definition
5 | #define ROF(i, b) for(int i = (b) - 1; i >= 0; i--)
|
building4.cpp:17:18: error: macro "FOR" passed 3 arguments, but takes just 2
17 | FOR(i, 1, 2 * N) {
| ^
building4.cpp:4: note: macro "FOR" defined here
4 | #define FOR(i, b) for(int i = 0; i < (b); i++)
|
building4.cpp: In function 'int main()':
building4.cpp:17:3: error: 'FOR' was not declared in this scope
17 | FOR(i, 1, 2 * N) {
| ^~~