| Problem | carrots |
|---|---|
| User | PerihelionfromAphelion |
| Submission Time | 2026-08-20 10:31:40 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
cc1plus: error: ‘::main’ must return ‘int’
carrots.cpp: In function ‘int main()’:
carrots.cpp:24:26: error: no match for ‘operator*’ (operand types are ‘std::multiset<long long int>::reverse_iterator’ {aka ‘std::reverse_iterator<std::_Rb_tree_const_iterator<long long int> >’} and ‘std::multiset<long long int>::reverse_iterator’ {aka ‘std::reverse_iterator<std::_Rb_tree_const_iterator<long long int> >’})
24 | carrots -= ms.rbegin() * ms.rbegin();
| ~~~~~~~~~~~ ^ ~~~~~~~~~~~
| | |
| | reverse_iterator<[...]>
| reverse_iterator<[...]>
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h