Main.cc: In function ‘int main()’:
Main.cc:11:2: error: ‘sort’ was not declared in this scope
sort(a + 1,a + n + 1);
^~~~
Main.cc:11:2: note: suggested alternative: ‘qsort’
sort(a + 1,a + n + 1);
^~~~
qsort
Main.cc:12:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(int i = 1;i <= n;i++)
^~~
Main.cc:14:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
cout << a[i] << endl;
^~~~
Main.cc:14:13: error: ‘i’ was not declared in this scope
cout << a[i] << endl;
^
Main.cc: At global scope:
Main.cc:16:2: error: expected unqualified-id before ‘return’
return 0;
^~~~~~
Main.cc:17:1: error: expected declaration before ‘}’ token
}
^