fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. string input;
  7. cin >> input;
  8. do {
  9. cout << input;
  10. } while(std::next_permutation(input.begin(), input.end()));
  11. return 0;
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
1133
compilation info
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
stdout
Standard output is empty