0_0_36864378_12799.cpp:5:5: error: 'maxn' was not declared in this scope
} q[maxn];
^
0_0_36864378_12799.cpp:11:6: error: 'vector' in namespace 'std' does not name a template type
std::vector<pii> v[2], now;
^
0_0_36864378_12799.cpp: In function 'void solve()':
0_0_36864378_12799.cpp:15:9: error: 'read' was not declared in this scope
n = read;
^
0_0_36864378_12799.cpp:20:9: error: 'q' was not declared in this scope
q[i].x = read;
^
0_0_36864378_12799.cpp:23:10: error: 'q' was not declared in this scope
sort(q + 1, q + 1 + k, cmp);
^
0_0_36864378_12799.cpp:23:31: error: 'sort' was not declared in this scope
sort(q + 1, q + 1 + k, cmp);
^
0_0_36864378_12799.cpp:27:5: error: 'll' was not declared in this scope
ll ans = 0;
^
0_0_36864378_12799.cpp:28:5: error: 'v' was not declared in this scope
v[flag].clear();
^
0_0_36864378_12799.cpp:34:9: error: 'now' was not declared in this scope
now.clear();
^
0_0_36864378_12799.cpp:61:49: error: 'max' was not declared in this scope
int l = max(v[flag][tmp].x, now[i].x);
^
0_0_36864378_12799.cpp:62:50: error: 'min' was not declared in this scope
int r1 = min(v[flag][tmp].y, now[i].y);
^
0_0_36864378_12799.cpp:67:17: error: 'ans' was not declared in this scope
ans += (r - l + 1);
^
0_0_36864378_12799.cpp:74:5: error: 'cout' was not declared in this scope
cout << ans << endl;
^
0_0_36864378_12799.cpp:74:13: error: 'ans' was not declared in this scope
cout << ans << endl;
^
0_0_36864378_12799.cpp:74:20: error: 'endl' was not declared in this scope
cout << ans << endl;
^
|