Problem | ballgame |
---|---|
User | JoshJuice |
Submission Time | 2025-10-18 21:06:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ballgame.cpp: In function ‘int32_t ballgame(int32_t, int32_t, int32_t, int32_t*, int32_t*)’:
ballgame.cpp:56:13: error: ‘n’ was not declared in this scope
56 | rep(i, 0, n) c[i] = C[i];
| ^
ballgame.cpp:6:38: note: in definition of macro ‘rep’
6 | #define rep(x, a, b) for(auto x=a;(a<b?x<b:x>b);(a<b?x++:x--))
| ^
ballgame.cpp:57:13: error: ‘n’ was not declared in this scope
57 | rep(i, 0, n) h[i] = {H[i], i};
| ^
ballgame.cpp:6:38: note: in definition of macro ‘rep’
6 | #define rep(x, a, b) for(auto x=a;(a<b?x<b:x>b);(a<b?x++:x--))
| ^
ballgame.cpp:60:13: error: ‘n’ was not declared in this scope
60 | rep(i, 0, n) {
| ^
ballgame.cpp:6:38: note: in definition of macro ‘rep’
6 | #define rep(x, a, b) for(auto x=a;(a<b?x<b:x>b);(a<b?x++:x--