Problem whalemewing
User shadowblade2718
Submission Time 2026-05-13 16:29:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

whalemewing.cpp: In function ‘int main()’:
whalemewing.cpp:20:14: error: no match for ‘operator[]’ (operand types are ‘std::_Rb_tree_iterator<std::pair<const std::__cxx11::basic_string<char>, int> >’ and ‘int’)
20 | if(*i[1] > highest){
| ^
whalemewing.cpp:21:25: error: no match for ‘operator[]’ (operand types are ‘std::_Rb_tree_iterator<std::pair<const std::__cxx11::basic_string<char>, int> >’ and ‘int’)
21 | highest = *i[1];
| ^
whalemewing.cpp:22:24: error: no match for ‘operator[]’ (operand types are ‘std::_Rb_tree_iterator<std::pair<const std::__cxx11::basic_string<char>, int> >’ and ‘int’)
22 | winner = *i[0];
| ^