Problem | ballot |
---|---|
User | Ski3r3n |
Submission Time | 2023-11-14 10:23:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ballot.cpp: In function ‘int main()’:
ballot.cpp:20:17: error: cannot convert ‘std::map<long long int, long long int>::iterator’ {aka ‘std::_Rb_tree_iterator<std::pair<const long long int, long long int> >’} to ‘long long int’ in initialization
20 | ll k = nm.find(j);
| ~~~~~~~^~~
| |
| std::map<long long int, long long int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long long int, long long int> >}
ballot.cpp:21:9: error: no match for ‘operator!=’ (operand types are ‘long long int’ and ‘std::map<long long int, long long int>::iterator’ {aka ‘std::_Rb_tree_iterator<std::pair<const long long int, long long int> >’})
21 | if (k != nm.end()){
| ~ ^~ ~~~~~~~~
| | |
| | std::map<long long int, long long int>::iterator {aka std::_Rb_tree_iterator<std::pair<const lon