prog.cpp: In function ‘int main()’:
prog.cpp:10:15: error: ‘next_permutation’ is not a member of ‘std’
} while(std::next_permutation(input.begin(), input.end()));
^~~~~~~~~~~~~~~~
prog.cpp:10:15: note: suggested alternative: ‘get_terminate’
} while(std::next_permutation(input.begin(), input.end()));
^~~~~~~~~~~~~~~~
get_terminate