#include #include #include #include int compare_names(const void *a, const void *b){ return strcasecmp((const char*)a, (const char*)b); } int compare_int(const void* a, const void* b) { return (*(int*)b - *(int*)a); } int main() { char buffer[999]; int voting[99]; char names[99][50]; int count = 0; while(fgets(buffer, sizeof(buffer), stdin) != NULL) { int current_votes = 0; char current_name[50] = ""; sscanf(buffer, "%d %[^\n]", ¤t_votes, current_name); int is_contained = 0; for (int i=0; i