So I've got a code where the player inputs the amount of numbers for the list then will have to input the numbers for list they decided it to be. However, i manage to get the sum to add the total. It's just finding the lowest number to the largest number And I can't find anything about it.

@SPQR Yeah, But the user can input the amount of numbers for the list then enter the numbers for each number in the list then I've done the total. Just need to get it to do the highest and lowest number in the list.

So I've got a code where the player inputs the amount of numbers for the list then will have to input the numbers for list they decided it to be. However, i manage to get the sum to add the total. It's just finding the lowest number to the largest number And I can't find anything about it.

You can't have an array of variable length. Try using

`<vector>`

.@SPQR Why?

@Wo1ves1n0 because you can resize vectors. Arrays have to be declared at a constant size, otherwise you'll get an error.

@SPQR Yeah, But the user can input the amount of numbers for the list then enter the numbers for each number in the list then I've done the total. Just need to get it to do the highest and lowest number in the list.