Problem | skyline |
---|---|
User | samvar0907 |
Submission Time | 2024-01-23 01:32:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
skyline.cpp: In function ‘std::vector<int> findOriginalHeights(int, const std::vector<int>&, const std::vector<int>&)’:
skyline.cpp:15:17: error: assignment of read-only location ‘(& left)->std::vector<int>::operator[](((std::vector<int>::size_type)i))’
15 | left[i] = leftStack.empty() ? -1 : leftStack.top();
skyline.cpp:25:18: error: assignment of read-only location ‘(& right)->std::vector<int>::operator[](((std::vector<int>::size_type)i))’
25 | right[i] = rightStack.empty() ? -1 : rightStack.top();