Unique Pointers

I’m trying to output a simple unique point using the unique_ptr class and keep getting this error shown in the screen shot below. Any idea why?

I ran your code. It works perfectly fine on my IDE.

operator<< for unique_ptr was overloaded in C++20 language standard. So change your language standard as shown here.

Change "cppStandard": "c++17" to "cppStandard": "c++20".

You can explore libraries and classes updates with standards on C++ reference. Though it is sometimes hard to see through the error, as many tutorials use older versions of C++ and we assume existence of a feature or function that has not yet been implemented (or was removed).