Problem rollercoaster
User JoshJuice
Submission Time 2025-06-20 19:00:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rollercoaster.cpp: In function ‘int main()’:
rollercoaster.cpp:29:16: error: ‘s’ was not declared in this scope
29 | rep(i, 0, m) s.insert(a[i]);
| ^
rollercoaster.cpp:31:14: error: ‘s’ was not declared in this scope
31 | cout << *s.rbegin()-*s.begin() << ' ';
| ^