| Problem | candies |
|---|---|
| User | shawn |
| Submission Time | 2025-12-07 10:24:58 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
candies.cpp: In function ‘void eat(long long int)’:
candies.cpp:19:18: error: cannot convert ‘std::_Rb_tree_iterator<std::pair<const long long int, long long int> >’ to ‘long long int’ in initialization
19 | int curr = prev(it);
| ~~~~^~~~
| |
| std::_Rb_tree_iterator<std::pair<const long long int, long long int> >
candies.cpp:20:15: error: base operand of ‘->’ is not a pointer
20 | int s = curr->first;
| ^~
candies.cpp:21:15: error: base operand of ‘->’ is not a pointer
21 | int e = curr->second;
| ^~