Jatana / FastOlympicCoding

Tools for competitive programming for Sublime Text 3 & 4
390 stars 48 forks source link

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

Open CarpeDiemly opened 2 years ago

CarpeDiemly commented 2 years ago

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!

lihaoze123 commented 2 years ago

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

CarpeDiemly commented 2 years ago

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

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