You didn't ask a question so I guessing here.
First the size of an array should be defined at compile time: int Num[x];, here x should be known. That is should be const.
The above code won't compile. If you want the above code can be implemented without storing the values. (i.e. use the values as being read to calculate the sum). If on the other hand need an array of undefined length in compile time (you need to find out in run time) use a different strategy like getting and array on heap.
But anyway you should probably just use vector<int> instead of array and be done with it.
My code was compiling, but when I ran it, after enterng all the array values, it wasn't printing any result.
I have also tried this code using Num[6], and faced the same problem there.