It is Throwing Me Random Errors For This. It is Expecting a Constructor at 2nd Line

vector v{1, 2, 3};

next_permutation(v.begin(), v.end());

for (int x : v) {

cout << x;

}

hello @JaveedYara
please share ur complete code using cb ide

i think u have shared wrong link, it does not contain anything like this->

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.