Problem | iqtest3 |
---|---|
User | bribritt |
Submission Time | 2023-04-08 12:35:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
iqtest3.cpp:7:21: error: macro "MODN" requires 2 arguments, but only 1 given
7 | cout << MODN(2 * i) << " " << MODN(2 * i + 1) << "\n";
| ^
iqtest3.cpp:3: note: macro "MODN" defined here
3 | #define MODN(x,n) ((x + n - 1) % n + 1)
|
iqtest3.cpp:7:47: error: macro "MODN" requires 2 arguments, but only 1 given
7 | cout << MODN(2 * i) << " " << MODN(2 * i + 1) << "\n";
| ^
iqtest3.cpp:3: note: macro "MODN" defined here
3 | #define MODN(x,n) ((x + n - 1) % n + 1)
|
iqtest3.cpp: In function ‘int main()’:
iqtest3.cpp:7:11: error: ‘MODN’ was not declared in this scope
7 | cout << MODN(2 * i) << " " << MODN(2 * i + 1) << "\n";
| ^~~~