In my compiler a warning is being generated when I execute the above code that is
warning: ‘auto’ type specifier is a C++11 extension [-Wc++11-extensions]
In my compiler a warning is being generated when I execute the above code that is
warning: ‘auto’ type specifier is a C++11 extension [-Wc++11-extensions]
are you using code blocks ?? If yes then go to settings -> compiler ->compiler setting ->compiler flag then mark tick on c++ 11 or higher
In case of any doubt feel free to ask
If you got the answer then mark your doubt as resolved
I am using VS code, how to change the mentioned setting in VS code
let me see you have to check which version of gcc is used for compiling , it has to be >=c++11
which operating system are you working on??
macOS is the OS I am using
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.