0_0_29887507_2783.cpp: In function 'int main()': 0_0_29887507_2783.cpp:17:42: error: 'next_permutation' was not declared in this scope }while(next_permutation(a+1,a+n+1)); ^