Skip to content

Commit

Permalink
Update online-election.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kamyu104 authored Sep 23, 2018
1 parent 317a1e3 commit 9b5b029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion C++/online-election.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TopVotedCandidate {
}

int q(int t) {
return prev(upper_bound(lookup_.begin(), lookup_.end(),
return prev(upper_bound(lookup_.cbegin(), lookup_.cend(),
make_pair(t, numeric_limits<int>::max())))->second;
}

Expand Down

0 comments on commit 9b5b029

Please sign in to comment.