| Problem | carrots |
|---|---|
| User | PerihelionfromAphelion |
| Submission Time | 2026-08-20 10:28:49 |
| 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:14:7: error: ‘i’ was not declared in this scope
14 | for (i = 0; i < n; i++) {
| ^
carrots.cpp:20:7: error: ‘i’ was not declared in this scope
20 | for (i = 0; i < n; i++) {
| ^
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 incl