Main.cc: In function ‘int main()’: Main.cc:32:21: error: ‘n’ was not declared in this scope sort ( a + 1 , a + n + 1 , cmp ) ; ^