mfornet / acmx

Competitive programming made simple. VSCode extension.
MIT License
148 stars 9 forks source link

Not able to use C++11 or higher #130

Closed prince-baweja-tivo closed 3 years ago

prince-baweja-tivo commented 3 years ago

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 3 years ago

Solution is here to use c++ 11 or higher in this extension.

Found the solution -
Steps to resolve this issue

  1. Go to settings in VS code.
  2. Go to Extensions. 3, Choose Competitive programming helper extension.
  3. 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 3 years ago

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 3 years ago

Yeah correct, that's my bad. Thanks for pointing out.

Get Outlook for Androidhttps://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 GitHubhttps://github.com/mfornet/acmx/issues/130#issuecomment-870909241, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQ6IIMVKOZHBA46F2VNT6LTTVIXDXANCNFSM47QWFAXQ.