Problem rollercoaster
User thatgreyCat7777
Submission Time 2025-08-30 19:55:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rollercoaster.cpp: In function ‘int main()’:
rollercoaster.cpp:31:20: error: no match for ‘operator[]’ (operand types are ‘std::multiset<long int>’ and ‘long int’)
31 | cout << arr[i+arrCount-1]-arrCount[i] << ' ';
| ^
rollercoaster.cpp:31:45: error: invalid types ‘long int[long int]’ for array subscript
31 | cout << arr[i+arrCount-1]-arrCount[i] << ' ';
| ^