Why is there a compilation error?
This is for the next permutation challenge
next_permutation returns a boolean value and not an integer value, you are assigning a boolean value to a vector of integers a, use do while loop for it and then print the element at first index of the vector