Problem | ballot |
---|---|
User | Henries |
Submission Time | 2024-10-28 22:01:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ballot.cpp: In function ‘int main()’:
ballot.cpp:17:23: error: cannot convert ‘const std::pair<long long int, long long int>’ to ‘long long int’ in initialization
17 | long long current = *it;
| ^~~
| |
| const std::pair<long long int, long long int>
ballot.cpp:19:20: error: cannot convert ‘const std::pair<long long int, long long int>’ to ‘long long int’ in initialization
19 | long long next = *(it--);
| ^~~~~~~
| |
| const std::pair<long long int, long long int>
ballot.cpp:22:15: error: no match for ‘operator+’ (operand types are ‘std::_Rb_tree_const_iterator<std::pair<long long int, long long int> >’ and ‘int’)
22 | cout << it + 1<<' ';
| ~~ ^ ~
| | |
| | int