int i=0;
for(int j=0; j<voter_count; j++){
for(int k=0;k<candidate_count;k++){
if(preferences[j][i]==k){
candidates[k].votes++;
printf("votes :%i",candidates
[k
].votes
); break;
}
}
}
i++;
return;
aW50IGk9MDsKICAgICAgICBmb3IoaW50IGo9MDsgajx2b3Rlcl9jb3VudDsgaisrKXsKICAgICAgICAgICAgZm9yKGludCBrPTA7azxjYW5kaWRhdGVfY291bnQ7aysrKXsKICAgICAgICAgICAgICAgIGlmKHByZWZlcmVuY2VzW2pdW2ldPT1rKXsKICAgICAgICAgICAgICAgICAgICBjYW5kaWRhdGVzW2tdLnZvdGVzKys7CiAgICAgICAgICAgICAgICAgICAgcHJpbnRmKCJ2b3RlcyA6JWkiLGNhbmRpZGF0ZXNba10udm90ZXMpOwogICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBpKys7CiAgICAgICAgcmV0dXJuOw==