编译选项: -std=c++14 -O2 -Wl,--stack=104857600 -Wall -Wextra -Wshadow
-Wl
开大栈空间
-Wall
显示所有警告
-Wextra
比较始终为true或始终为false,则发出警告,但不警告常量表达式。例:if (a = b) ....;
-Wshadow
当全局变量和局部变量重名时发出警告
注: ,
后无空格,-Wl
中是小写的L
\(\text{code}\)
#include <bits/stdc++.h>
#define P pair<int, int>
#define fi first
#define se second
#define pb push_back
#define all(v) v.begin(), v.end()
using namespace std;
template <typename T> inline void rd(T &x) {
x = 0; T f = 1; char ch = getchar();
while (ch < '0' || ch > '9') {if (ch == '-') f = -1; ch = getchar();}
while (ch >= '0' && ch <= '9') {x = (x << 1) + (x << 3) + (ch ^ 48); ch = getchar();}
x *= f;
}
template <typename T> inline void write(T x) {
if (x < 0) {putchar('-'); x = -x;}
if (x >= 10) write(x / 10);
putchar(x % 10 + 48);
}
template <typename T> inline T ckmax(T x, T y) {return x > y ? x : y;}
template <typename T> inline T ckmin(T x, T y) {return x < y ? x : y;}
template <typename T> inline T abv(T x) {return x < 0 ? -x : x;}
typedef long long ll;
bool be;
const int N = 1e5 + 10;
const int INF = 0x3f3f3f3f;
const int Mod = 1e9 + 7;
bool ed;
int main() {
// cerr << (&ed - &be) / 1024.0 / 1024.0 << endl;
// freopen("sample.in", "r", stdin);
// freopen("sameple.out", "w", stdout);
return 0;
}
标签:10,ch,int,Dev,考场,template,inline,模板,define
From: https://www.cnblogs.com/Ryan-juruo/p/16837109.html