I'm taking an intro to C Programming course and I've never taken any other programming course before this class. Currently we're up to arrays, and haven't gotten any further than that. The assignment can be found http://scifisamurai.tripod.com/lamara_-_prog05.rtf

I can't seem to figure out how to print the array in the gcc compiler. So far here's my code:
-----------------------------------------------------------
#include <stdio.h>

int main(void)
{
int i, k;
int a1, b1, c1, d1, a2, b2, c2, d2, a3, b3, c3, d3, a4, b4, c4, d4, a5, b5, c5,$
int votes[5][5]; /*={{1, a1, b1, c1, d1}, {2, a2, b2, c2, d2}, {3, a3, b3, c3, $
b4, c4, d4}, {5, a5, b5, c5, d5}};
*/

votes[0][0]=1;
votes[0][1]=a1;
votes[0][2]=b1;
votes[0][3]=c1;
votes[0][4]=d1;
votes[1][0]=2;
votes[1][1]=a2;
votes[1][2]=b2;
votes[1][3]=c2;
votes[1][4]=d2;
votes[2][0]=3;
votes[2][1]=a3;
votes[2][2]=b3;
votes[2][3]=c3;
votes[2][4]=d3;
votes[3][0]=4;
votes[3][1]=a4;
votes[3][2]=b4;
votes[3][3]=c4;
votes[3][4]=d4;
votes[4][0]=5;
votes[4][1]=a5;
votes[4][2]=b5;
votes[4][3]=c5;
votes[4][4]=d5;

scanf("%d%d%d%d%d", &votes[0][1], &votes[1][1], &votes[2][1], &votes[3][1], &votes[4][1]);
scanf("%d%d%d%d%d", &votes[0][2], &votes[1][2], &votes[2][2], &votes[3][2], &votes[4][2]);
scanf("%d%d%d%d%d", &votes[0][3], &votes[1][3], &votes[2][3], &votes[3][3], &votes[4][3]);
scanf("%d%d%d%d%d", &votes[0][4], &votes[1][4], &votes[2][4], &votes[3][4], &votes[4][4]);
printf("Precinct\tCandidate A\tCandidate B\tCandidate C\tCandidate D\n");
for (i = 0; i < 5; i++)
for (k = 0; k < 5; i++)
printf("%d\t", votes[i][k]);
}

--------------------------------------------------------

I used a data file with just 20 random numbers for the 20 variables (a1, b1, etc...) and typed a.out < votes.txt (the name of the data file) and the compiler will print out only Precinct, Candidate A etc... but won't print out the rest instead after printing out the Precinct, etc... it says "Segmentation Fault". I looked up what that meant on google and I guess there's something wrong with my array assignments or the bus on the compiler (what is that?).

Any help on this would be MUCH appreciated! I still have the rest of the program to do and I just can't figure this part out. Thanks in advance!