Problem eeniemeenie
User blob
Submission Time 2023-11-24 11:39:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eeniemeenie.cpp: In function ‘int main()’:
eeniemeenie.cpp:13:12: error: ‘k’ was not declared in this scope
13 | if (j != k and it == m.end()){
| ^
eeniemeenie.cpp:14:11: error: no match for ‘operator=’ (operand types are ‘std::_Rb_tree_iterator<std::pair<const std::__cxx11::basic_string<char>, int> >’ and ‘<unresolved overloaded function type>’)
14 | it = m.begin;
| ^~~~~
In file included from /usr/include/c++/9/map:60,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from eeniemeenie.cpp:1:
/usr/include/c++/9/bits/stl_tree.h:256:12: note: candidate: ‘constexpr std::_Rb_tree_iterator<std::pair<const std::__cxx11::basic_string<char>, int> >& std::_Rb_tree_iterator<std::pair<const std::__cxx11::basic_string<char>, int> >::operator=(const std::_Rb_tree_iterator<std::pair<const std::__cxx11::basic_string<