Not able to use C++11 or higher
prince-baweja-tivo opened this issue · 3 comments
prince-baweja-tivo commented
Errors while compiling: B_Pleasant_Pairs.cpp:7:5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto x = 5;
If possible, then how can i run my program in c++11 or higher.
prince-baweja-tivo commented
Solution is here to use c++ 11 or higher in this extension.
Found the solution -
Steps to resolve this issue
- Go to settings in VS code.
- Go to Extensions.
3, Choose Competitive programming helper extension. - Search this — Cph › Language › Cpp: Args , or got 5. Paste this (-std=c++17) in the box
And boom, This solution worked for me.
Screenshot for reference — https://drive.google.com/file/d/1P3_2vlEylzVik30e-2-8sGyy3YAI0nji/view?usp=sharing
mfornet commented
From the configuration you are using it looks like you are confusing this extension with https://github.com/agrawal-d/cph
prince-baweja-tivo commented
Yeah correct, that's my bad. Thanks for pointing out.
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: Marcelo Fornet ***@***.***>
Sent: Wednesday, June 30, 2021 2:23:15 AM
To: mfornet/acmx ***@***.***>
Cc: prince-baweja-tivo ***@***.***>; Author ***@***.***>
Subject: Re: [mfornet/acmx] Not able to use C++11 or higher (#130)
From the configuration you are using it looks like you are confusing this extension with https://github.com/agrawal-d/cph
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#130 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AQ6IIMVKOZHBA46F2VNT6LTTVIXDXANCNFSM47QWFAXQ>.