Code:
    average1 = cat01();
You're calling the function without the 1052352 parameters you declared.

By the way, your input stuff won't work the way you intend it to. It looks like you wrote the code so that you can use arrays, but then didn't, and in a very weird way, too. And making the user enter the amount of categories three (correction: three + the third value he enters) times is ridiculous - just copy the value! (You know how to assign one variable to the other, do you?)

There are various other problems with the code, but I doubt you still have time to fix them.


Edit: Looking at it more closely, this code is so horribly broken, it's not even funny. What happens to all the parameters you pass to cat01? What's that name supposed to mean, anyway?
Where to begin ...?