want to summarize all the test[0][x] and test[1][x]
i have to use "for" or "while" but i thought that for would be easier.
unfortunately i got stuck. the test[0][5] and test[1][5] are for the result.
for (i = 0; i < NUM - 1; i++);
test[0][5] += test[0][i];
The ";" at the end of line 1 means that what follows is not part of the for loop. I compiled this as a C++ program, so if the "+=" does not work for you go back to what you started with.
The "#define"s work, but you should consider const int SUB = 2;. It does the same thing, but here you are sure that the variable is an "int".