Problem | ballot |
---|---|
User | blob |
Submission Time | 2023-11-14 09:43:15 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ballot.cpp: In function ‘int main()’:
ballot.cpp:12:23: error: cannot convert ‘std::set<int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<int>’} to ‘int’ in initialization
12 | for (int it = s.begin(); it != s.end(); it++){
| ~~~~~~~^~
| |
| std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}
ballot.cpp:12:30: error: no match for ‘operator!=’ (operand types are ‘int’ and ‘std::set<int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<int>’})
12 | for (int it = s.begin(); it != s.end(); it++){
| ~~ ^~ ~~~~~~~
| | |
| int std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc+