Two things:
1) We can't tell you, as we have no idea what it was supposed to do! So we have no idea what
exactly it "working" should be like!
2) There are two stages to "getting code working": the first is getting rid of compiler errors; the second is getting rid of runtime errors.
For the first, you need to look closely at what the output from your compiler is telling you - it normally gives you the line (or at least the line number) and a message. In this case, it is probably complaining about array subscripts and invalid types, and that's because
numbers
is not an array, and you can't use an array subscript on a "standard integer". You can fix this by allocating a number of integers to numbers. For example:
int n, number[10];
will allocate 10 integers, so you can then use the array syntax:
cin >> numbers[n]
Will work a little better. It still won't compile cleanly, because you forgot to add the terminating semicolon to the line:
cin >> numbers[n];
will do better. But allocating just ten integers probably isn't going to be a good idea...
Now you are down to runtime errors: for that, you need a clean compile and to use the debugger - a quick google will find you loads of tutorials in using the Visual Studio debugger so check a few of them, and give it a try!