首先附上模板:
#include<bits/stdc.h>
#define IOS ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define endl \nusing namespace std;typedef pair<int, int> PII;
typedef long long ll;const int N 100010;int n;
int a[N], q[N];int main()…
cppcheck简介
Cppcheck is an analysis tool for C/C code. It provides unique code analysis to detect bugs and focuses on detecting undefined behaviour and dangerous coding constructs. The goal is to detect only real errors in the code, and generate as few f…