I have never done real programming in C but let's see if I can point you in the right direction. You are probably going to end up using global static variablesstatic int *sum_10;
So declare those outside of the main method.
Then you will probably end up using mmap so something like
Then initialize each global variable somewhere in main*sum_10 = 0;
Now you you have a set of global variables that can be shared with all processes which is the real challenge in this assignment.
Hope you figure it out. Let me know if you need more help.