| Problem | duckhunt5 |
|---|---|
| User | R9q5P8 |
| Submission Time | 2026-02-06 14:24:47 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
duckhunt5.cpp: In function ‘int main()’:
duckhunt5.cpp:22:29: error: ‘std::_Rb_tree_iterator<std::pair<const int, int> >::_Self’ {aka ‘struct std::_Rb_tree_iterator<std::pair<const int, int> >’} has no member named ‘second’
22 | if (param > *(a.end()--).second;
| ^~~~~~
duckhunt5.cpp:23:15: error: expected ‘)’ before ‘;’ token
23 | cout << -1;
| ^
| )
duckhunt5.cpp:22:7: note: to match this ‘(’
22 | if (param > *(a.end()--).second;
| ^
duckhunt5.cpp:26:43: error: ‘std::_Rb_tree_iterator<std::pair<const int, int> >::_Self’ {aka ‘struct std::_Rb_tree_iterator<std::pair<const int, int> >’} has no member named ‘second’
26 | for (int i = param; i <= *(a.end()--).second; ++i)
| ^~~~~~
duckhunt5.cpp:31:2: error: expected ‘}’ at end