0_0_37846445_26126.cpp:1:1: error: stray '\327' in program
作者:严格鸽
^
0_0_37846445_26126.cpp:1:1: error: stray '\367' in program
0_0_37846445_26126.cpp:1:1: error: stray '\325' in program
0_0_37846445_26126.cpp:1:1: error: stray '\337' in program
0_0_37846445_26126.cpp:1:1: error: stray '\243' in program
0_0_37846445_26126.cpp:1:1: error: stray '\272' in program
0_0_37846445_26126.cpp:1:1: error: stray '\321' in program
0_0_37846445_26126.cpp:1:1: error: stray '\317' in program
0_0_37846445_26126.cpp:1:1: error: stray '\270' in program
0_0_37846445_26126.cpp:1:1: error: stray '\361' in program
0_0_37846445_26126.cpp:1:1: error: stray '\270' in program
0_0_37846445_26126.cpp:1:1: error: stray '\353' in program
0_0_37846445_26126.cpp:2:1: error: stray '\301' in program
链接:https://zhuanlan.zhihu.com/p/552586905
^
0_0_37846445_26126.cpp:2:1: error: stray '\264' in program
0_0_37846445_26126.cpp:2:1: error: stray '\275' in program
0_0_37846445_26126.cpp:2:1: error: stray '\323' in program
0_0_37846445_26126.cpp:2:1: error: stray '\243' in program
0_0_37846445_26126.cpp:2:1: error: stray '\272' in program
0_0_37846445_26126.cpp:3:1: error: stray '\300' in program
来源:知乎
^
0_0_37846445_26126.cpp:3:1: error: stray '\264' in program
0_0_37846445_26126.cpp:3:1: error: stray '\324' in program
0_0_37846445_26126.cpp:3:1: error: stray '\264' in program
0_0_37846445_26126.cpp:3:1: error: stray '\243' in program
0_0_37846445_26126.cpp:3:1: error: stray '\272' in program
0_0_37846445_26126.cpp:3:1: error: stray '\326' in program
0_0_37846445_26126.cpp:3:1: error: stray '\252' in program
0_0_37846445_26126.cpp:3:1: error: stray '\272' in program
0_0_37846445_26126.cpp:3:1: error: stray '\365' in program
0_0_37846445_26126.cpp:4:1: error: stray '\326' in program
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
^
0_0_37846445_26126.cpp:4:1: error: stray '\370' in program
0_0_37846445_26126.cpp:4:1: error: stray '\327' in program
0_0_37846445_26126.cpp:4:1: error: stray '\367' in program
0_0_37846445_26126.cpp:4:1: error: stray '\310' in program
0_0_37846445_26126.cpp:4:1: error: stray '\250' in program
0_0_37846445_26126.cpp:4:1: error: stray '\271' in program
0_0_37846445_26126.cpp:4:1: error: stray '\351' in program
0_0_37846445_26126.cpp:4:1: error: stray '\327' in program
0_0_37846445_26126.cpp:4:1: error: stray '\367' in program
0_0_37846445_26126.cpp:4:1: error: stray '\325' in program
0_0_37846445_26126.cpp:4:1: error: stray '\337' in program
0_0_37846445_26126.cpp:4:1: error: stray '\313' in program
0_0_37846445_26126.cpp:4:1: error: stray '\371' in program
0_0_37846445_26126.cpp:4:1: error: stray '\323' in program
0_0_37846445_26126.cpp:4:1: error: stray '\320' in program
0_0_37846445_26126.cpp:4:1: error: stray '\241' in program
0_0_37846445_26126.cpp:4:1: error: stray '\243' in program
0_0_37846445_26126.cpp:4:1: error: stray '\311' in program
0_0_37846445_26126.cpp:4:1: error: stray '\314' in program
0_0_37846445_26126.cpp:4:1: error: stray '\322' in program
0_0_37846445_26126.cpp:4:1: error: stray '\265' in program
0_0_37846445_26126.cpp:4:1: error: stray '\327' in program
0_0_37846445_26126.cpp:4:1: error: stray '\252' in program
0_0_37846445_26126.cpp:4:1: error: stray '\324' in program
0_0_37846445_26126.cpp:4:1: error: stray '\330' in program
0_0_37846445_26126.cpp:4:1: error: stray '\307' in program
0_0_37846445_26126.cpp:4:1: error: stray '\353' in program
0_0_37846445_26126.cpp:4:1: error: stray '\301' in program
0_0_37846445_26126.cpp:4:1: error: stray '\252' in program
0_0_37846445_26126.cpp:4:1: error: stray '\317' in program
0_0_37846445_26126.cpp:4:1: error: stray '\265' in program
0_0_37846445_26126.cpp:4:1: error: stray '\327' in program
0_0_37846445_26126.cpp:4:1: error: stray '\367' in program
0_0_37846445_26126.cpp:4:1: error: stray '\325' in program
0_0_37846445_26126.cpp:4:1: error: stray '\337' in program
0_0_37846445_26126.cpp:4:1: error: stray '\273' in program
0_0_37846445_26126.cpp:4:1: error: stray '\361' in program
0_0_37846445_26126.cpp:4:1: error: stray '\265' in program
0_0_37846445_26126.cpp:4:1: error: stray '\303' in program
0_0_37846445_26126.cpp:4:1: error: stray '\312' in program
0_0_37846445_26126.cpp:4:1: error: stray '\332' in program
0_0_37846445_26126.cpp:4:1: error: stray '\310' in program
0_0_37846445_26126.cpp:4:1: error: stray '\250' in program
0_0_37846445_26126.cpp:4:1: error: stray '\243' in program
0_0_37846445_26126.cpp:4:1: error: stray '\254' in program
0_0_37846445_26126.cpp:4:1: error: stray '\267' in program
0_0_37846445_26126.cpp:4:1: error: stray '\307' in program
0_0_37846445_26126.cpp:4:1: error: stray '\311' in program
0_0_37846445_26126.cpp:4:1: error: stray '\314' in program
0_0_37846445_26126.cpp:4:1: error: stray '\322' in program
0_0_37846445_26126.cpp:4:1: error: stray '\265' in program
0_0_37846445_26126.cpp:4:1: error: stray '\327' in program
0_0_37846445_26126.cpp:4:1: error: stray '\252' in program
0_0_37846445_26126.cpp:4:1: error: stray '\324' in program
0_0_37846445_26126.cpp:4:1: error: stray '\330' in program
0_0_37846445_26126.cpp:4:1: error: stray '\307' in program
0_0_37846445_26126.cpp:4:1: error: stray '\353' in program
0_0_37846445_26126.cpp:4:1: error: stray '\327' in program
0_0_37846445_26126.cpp:4:1: error: stray '\242' in program
0_0_37846445_26126.cpp:4:1: error: stray '\303' in program
0_0_37846445_26126.cpp:4:1: error: stray '\367' in program
0_0_37846445_26126.cpp:4:1: error: stray '\263' in program
0_0_37846445_26126.cpp:4:1: error: stray '\366' in program
0_0_37846445_26126.cpp:4:1: error: stray '\264' in program
0_0_37846445_26126.cpp:4:1: error: stray '\246' in program
0_0_37846445_26126.cpp:4:1: error: stray '\241' in program
0_0_37846445_26126.cpp:4:1: error: stray '\243' in program
0_0_37846445_26126.cpp:2:7: error: 'https' does not name a type
链接:https://zhuanlan.zhihu.com/p/552586905
^
0_0_37846445_26126.cpp:36:7: error: 'MAXN' was not declared in this scope
int p[MAXN], pos[MAXN];
^
0_0_37846445_26126.cpp:36:18: error: 'MAXN' was not declared in this scope
int p[MAXN], pos[MAXN];
^
0_0_37846445_26126.cpp: In function 'void slove()':
0_0_37846445_26126.cpp:38:5: error: 'cin' was not declared in this scope
cin >> n;
^
0_0_37846445_26126.cpp:39:5: error: 'UF' has not been declared
UF::init(n);
^
0_0_37846445_26126.cpp:40:40: error: 'p' was not declared in this scope
for (int i = 1; i <= n; i++)cin >> p[i], pos[p[i]] = i;
^
0_0_37846445_26126.cpp:40:46: error: 'pos' was not declared in this scope
for (int i = 1; i <= n; i++)cin >> p[i], pos[p[i]] = i;
^
0_0_37846445_26126.cpp:41:5: error: 'vector' was not declared in this scope
vector<vector<pair<int, int>>>e(n);
^
0_0_37846445_26126.cpp:41:19: error: 'pair' was not declared in this scope
vector<vector<pair<int, int>>>e(n);
^
0_0_37846445_26126.cpp:41:24: error: expected primary-expression before 'int'
vector<vector<pair<int, int>>>e(n);
^
0_0_37846445_26126.cpp:43:21: error: 'p' was not declared in this scope
int w = abs(p[i] - p[i - 1]);
^
0_0_37846445_26126.cpp:43:36: error: 'abs' was not declared in this scope
int w = abs(p[i] - p[i - 1]);
^
0_0_37846445_26126.cpp:44:9: error: 'e' was not declared in this scope
e[w].push_back({ i - 1,i });
^
0_0_37846445_26126.cpp:46:20: error: 'sqrt' was not declared in this scope
int sq = sqrt(n);
^
0_0_37846445_26126.cpp:49:30: error: 'abs' was not declared in this scope
int w = abs(i - j) * abs(p[i] - p[j]);
^
0_0_37846445_26126.cpp:49:38: error: 'p' was not declared in this scope
int w = abs(i - j) * abs(p[i] - p[j]);
^
0_0_37846445_26126.cpp:50:23: error: 'e' was not declared in this scope
if (w < n)e[w].push_back({ i, j });
^
0_0_37846445_26126.cpp:55:30: error: 'abs' was not declared in this scope
int w = abs(i - j) * abs(pos[i] - pos[j]);
^
0_0_37846445_26126.cpp:55:38: error: 'pos' was not declared in this scope
int w = abs(i - j) * abs(pos[i] - pos[j]);
^
0_0_37846445_26126.cpp:56:23: error: 'e' was not declared in this scope
if (w < n)e[w].push_back({ pos[i], pos[j] });
^
0_0_37846445_26126.cpp:59:5: error: 'll' was not declared in this scope
ll ans = 0;
^
0_0_37846445_26126.cpp:62:23: error: 'e' was not declared in this scope
for (auto p : e[w]) {
^
0_0_37846445_26126.cpp:64:17: error: 'UF' has not been declared
if (UF::same(u, v))continue;
^
0_0_37846445_26126.cpp:64:29: error: 'v' was not declared in this scope
if (UF::same(u, v)
|