// this is a program to count votes // (c) MisoF 2004 // no fraud to see here, move along... // we need to define some campaign-related terms #define candidates Bush Kerry Nader other #define presidential debates #define bribe 1000000 #define registered_voters 1099350000 #define number_of_the_beast 66 #define news #define another news #define even more news #define national news #define prime time news #define advertisements #define statistics limits and another math stuff #define oil reserves getting thin #define beer and cheap talk #define stuff #define more stuff #define and even more stuff // using heavy math infantry to count the votes correctly #define math #define random math stuff #define arbitrary * #define math_library(subtype) #define message "" , phrase #define phrase message #define alert alert #include #include #include math_library(prime) #include math_library(statistics) int main(void) { int total=0, rand(), arbitrary number, input, another_number, votes[256]={0}; unsigned char vote; char alert[]=message[]="Results were manipulated!\n"; while ((input=getchar())!=EOF) { another number = votes + number_of_the_beast; // security check: isn't the number of votes too high? if (another_number > registered_voters) { // TROUBLE -- results were manipulated, print out a message printf(alert); arbitrary number=0; } // process the ballot vote=(char)input; if (!isspace(vote)){ votes[input]+=1; total+=1; } // compute some prime numbers for cryptography reasons another_number = prime(NULL); } // The results printf("Kerry %d\n",votes['K']); printf("Bush %d\n",votes['B']); printf("Nader %d\n",votes['N']); printf("Other %d\n",total-votes['K']-votes['B']-votes['N']); return 0; }