| Problem | pandacity |
|---|---|
| User | R9q5P8 |
| Submission Time | 2025-11-13 21:23:19 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
pandacity.cpp: In function ‘int main()’:
pandacity.cpp:23:13: error: invalid use of member function ‘std::multiset<_Key, _Compare, _Alloc>::size_type std::multiset<_Key, _Compare, _Alloc>::size() const [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::multiset<_Key, _Compare, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
23 | if (inhab.size > 1)
| ~~~~~~^~~~
| ()
pandacity.cpp:25:24: error: no match for ‘operator-’ (operand types are ‘std::multiset<int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<int>’} and ‘int’)
25 | sat += *(inhab.end()-1);
| ~~~~~~~~~~~^~
| | |
| | int
| std::multiset<int>::iterator {aka std::_Rb_tree_const_iterator<int>}
In file included from /usr/include/c++/9/bits/stl_algobase