![](https://static.us.edusercontent.com/files/PAHANVL5VYIidWveOooew1lf)
On line no. 66, pair_count appears the second time with value initialized to 0. So how is that its value is further updated? Knowing pair_count value I believe help me know the number of voters through global variable pair_count. So while writing code for vote function, I can proceed with the following: if n(n-1)/2= x, then value of n will be number of voters.
![](https://static.us.edusercontent.com/files/2hQKxvpfriY5HwWshXQ2ZFnj)
https://edstem.org/us/courses/176/discussion/2652437?answer=6075604
[learn_press_profile]