I cannot complier your code, there are a few of wrong code lines in it.
e.g.:
*file cs50.h isn't existed, (thank @Richard MacCutchan to tell me about this library)
*you should include <string> but <string.h> to use std::string,
*main function should be int main(int argc, char* argv[])
*you should include <cstring> to use strcmp
*get_int\get_string undefined
but, maybe the code block which caused crashed is:
for (int i = 0; 1 < candidate_count; i++)
{
if(candidates[i].votes > maxvotes)
{
maxvotes = candidates[i].votes;
}
}
your coded:
1 < candidate_count
but not
i < candidate_count
it will access an invalid address