Problem candymountain_ex
User chickengoat
Submission Time 2025-12-03 14:55:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candymountain_ex.cpp: In function ‘int main()’:
candymountain_ex.cpp:35:14: error: invalid use of member function ‘std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::begin() const [with _Key = long long int; _Compare = std::less<long long int>; _Alloc = std::allocator<long long int>; std::multiset<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<long long int>]’ (did you forget the ‘()’ ?)
35 | dp[k-1]=(*s.begin,candies[k-1]);
| ~~^~~~~
| ()