I am trying to find the minimum number when the user enters any 5 numbers

I am not sure why this code is not working, every time I run this function I always get 0. Can someone please tell me what is wrong!

```
int i;
int num1 = 5;
int min;
min = arraySize[0];
arraySize[num1];
cout<<"Enter values (press enter after inputting every number): "<<endl;
for (i=0; i<5; i++)
{
cin >> arraySize[i];
}
for(i=1; i<5; i++)
{
if(min > arraySize[i])
{
min = arraySize[i];
}
}
cout << "Your mininum number is " << min << endl;
```