Please format your code before posting and use code tags (Go Advanced, select code, click '#').

In addition to post #2, you will also have problems with


printf("\nRow totals: %d", row);...