Lines 8, 10, 25-27: wrong quotes. You want " not ”
As pointed out earlier, line 10 makes no sense. The for loop will execute exactly once, then terminate. You want:
for(int i=0; i<n; i++)
Line 15: This is an out of bounds reference. There is no element 20 in your array. Arrays are indexed from 0. Legal references are a[0] to a[19].
Not sure what this line is even trying to do. What is m? A more meaningful name would be helpful.
Line 16: Your for loop is faulty.
for(int i=1; i<+n; i++)
Indexes start from 0, not 1. What is +n supposed to mean?
Line 18:
if
should not be capitalized.
Line 22: This if statement is faulty. Check the operator in the second conditional term.
PLEASE USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post.
http://www.cplusplus.com/articles/jEywvCM9/