Whats wrong i keep getting segfault
for(int o = 0; o < n - 1; o++)
{
if(candidates[o].votes > high0)
{
high0 = candidates[o].votes;
name1 = candidates[o].name;
}
else if(candidates[p].votes == high0)
{
candidates[o].votes = high1;
name2 = candidates[o].name;
}
}
printf("%s\n", name1);
printf("%s\n", name2);