Problem | rollercoaster |
---|---|
User | JoshJuice |
Submission Time | 2025-06-20 19:00:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
rollercoaster.cpp: In function ‘int main()’:
rollercoaster.cpp:29:13: error: ‘m’ was not declared in this scope
29 | rep(i, 0, m) s.insert(a[i]);
| ^
rollercoaster.cpp:18:38: note: in definition of macro ‘rep’
18 | #define rep(x, a, b) for(auto x=a;(a<b?x<b:x>b);(a<b?x++:x--))
| ^
rollercoaster.cpp:29:16: error: ‘s’ was not declared in this scope
29 | rep(i, 0, m) s.insert(a[i]);
| ^
rollercoaster.cpp:30:10: error: ‘m’ was not declared in this scope
30 | rep(i, m-1, n) {
| ^
rollercoaster.cpp:18:33: note: in definition of macro ‘rep’
18 | #define rep(x, a, b) for(auto x=a;(a<b?x<b:x>b);(a<b?x++:x--))
| ^
rollercoaster.cpp:31:14: error: ‘s’ was not declared in this scope; did you mean ‘ms’?
31 | cout << *s.rbegin()-*s.begin() << ' ';