Main.cc: In function ‘int main()’: Main.cc:17:35: error: expected ‘;’ at end of input next_permutation(a+1,a+n+1) ^ Main.cc:17:35: error: expected ‘}’ at end of input