Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use -std=c++17 and #include<bits/stdc++.h> #64

Open
CarpeDiemly opened this issue Apr 27, 2022 · 2 comments
Open

use -std=c++17 and #include<bits/stdc++.h> #64

CarpeDiemly opened this issue Apr 27, 2022 · 2 comments

Comments

@CarpeDiemly
Copy link

my OS: Windows,
and I modified the setting file of FastOlympicCoding, like this:
`
{
"name": "C++",
"extensions": ["cpp"],
"compile_cmd": "g++ "{source_file}" -std=c++17 -o "{file_name}"",
"run_cmd": ""{source_file_dir}\{file_name}.exe" {args} -debug",

"lint_compile_cmd": "g++ -std=c++17 \"{source_file}\" -I \"{source_file_dir}\""

},
Mainly to modify the compiler to C++17, but if I use#include<bits/stdc++.h>` in Cpp file, there will be errors when I build.

  1. use -std=c++17 and #include<bits/stdc++.h> with FastOlympicCoding---errors,
  2. use -std=c++14 or 11 and #include<bits/stdc++.h> with FastOlympicCoding---No error,
  3. use -std=c++17 and #include<iostream> with FastOlympicCoding---No error,
  4. use -std=c++17 and #include<bits/stdc++.h> without FastOlympicCoding---No error.

please help me, thanks!

@CarpeDiemly CarpeDiemly changed the title use C++17 and #include<bits/stdc++.h> use -std=c++17 and #include<bits/stdc++.h> Apr 27, 2022
@lihaoze123
Copy link

It seemed to be a problem with my compiler, when I installed mingw64, the problem was solved.

@CarpeDiemly
Copy link
Author

It seemed to be a problem with my compiler, when I installed mingw64, the problem was solved.

我安装的也是mingw64,从官网上刚下的最新版,但是就是有问题...orz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants