Unpacking Arrays


It says my variable x is undefined please help

Hi please include the below line after your #include <iostream> and try

#include <array>

Check your compiler version.

Structured binding

Hi, i do have #include library it still says error

What version it should be?

C++17 or higher. The course is based on C++20.

1 Like

Okay i see that my Visual studio 2022 uses C++14 and i dont know change it but thank you for your help

Nvm i found it, Thank you all for your help.