FastOlympicCoding
FastOlympicCoding copied to clipboard
use -std=c++17 and #include<bits/stdc++.h>
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.
- use
-std=c++17and#include<bits/stdc++.h>with FastOlympicCoding---errors, - use
-std=c++14 or 11and#include<bits/stdc++.h>with FastOlympicCoding---No error, - use
-std=c++17and#include<iostream>with FastOlympicCoding---No error, - use
-std=c++17and#include<bits/stdc++.h>without FastOlympicCoding---No error.
please help me, thanks!
It seemed to be a problem with my compiler, when I installed mingw64, the problem was solved.
It seemed to be a problem with my compiler, when I installed mingw64, the problem was solved.
我安装的也是mingw64,从官网上刚下的最新版,但是就是有问题...orz