what does Purpose(int x) do? if it takes the argument by reference, and then doubles it, that'd be a reason the loop goes 14 times instead of 7.
Purpose() is just a template function to explain the purpose of the program. it says something like, "this program takes SIZE elements into an array" blah-blah-blah. i made it so it would change if the global variable changed.