0_0_39465446_25200.cpp: In function 'int main()':
0_0_39465446_25200.cpp:8:5: error: 'ios' has not been declared
8 | ios::sync_with_stdio(false);
| ^~~
0_0_39465446_25200.cpp:9:5: error: 'cin' was not declared in this scope
9 | cin.tie(nullptr);
| ^~~
0_0_39465446_25200.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <utility>
+++ |+#include <iostream>
2 |
0_0_39465446_25200.cpp:11:5: error: 'vector' was not declared in this scope
11 | vector a(n, vector<int>(3));
| ^~~~~~
0_0_39465446_25200.cpp:2:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
1 | #include <utility>
+++ |+#include <vector>
2 |
0_0_39465446_25200.cpp:13:9: error: 'a' was not declared in this scope
13 | a[i][0] = i;
| ^
0_0_39465446_25200.cpp:16:20: error: 'a' was not declared in this scope
16 | cin >> a[j][i];
| ^
0_0_39465446_25200.cpp:18:5: error: 'FT' was not declared in this scope
18 | FT t(n);
| ^~
0_0_39465446_25200.cpp:19:12: error: expected primary-expression before 'int'
19 | vector<int> in(n), out(n);
| ^~~
0_0_39465446_25200.cpp:20:5: error: 'function' was not declared in this scope
20 | function<void(int, int)> cdq = [&](int l, int r) {
| ^~~~~~~~
0_0_39465446_25200.cpp:2:1: note: 'std::function' is defined in header '<functional>'; did you forget to '#include <functional>'?
1 | #include <utility>
+++ |+#include <functional>
2 |
0_0_39465446_25200.cpp:20:27: error: expression list treated as compound expression in functional cast [-fpermissive]
20 | function<void(int, int)> cdq = [&](int l, int r) {
| ^
0_0_39465446_25200.cpp:20:14: error: expected primary-expression before 'void'
20 | function<void(int, int)> cdq = [&](int l, int r) {
| ^~~~
0_0_39465446_25200.cpp:41:5: error: 'cdq' was not declared in this scope
41 | cdq(0, n);
| ^~~
0_0_39465446_25200.cpp:49:23: error: 'in' was not declared in this scope; did you mean 'i'?
49 | ans -= 1ll * (in[i] + n - i - 1 - out[i]) * (in[i] + n - i - 2 - out[i]) / 2;
| ^~
| i
0_0_39465446_25200.cpp:49:43: error: 'out' was not declared in this scope
49 | ans -= 1ll * (in[i] + n - i - 1 - out[i]) * (in[i] + n - i - 2 - out[i]) / 2;
| ^~~
0_0_39465446_25200.cpp:50:5: error: 'cout' was not declared in this scope
50 | cout << ans;
| ^~~~
0_0_39465446_25200.cpp:50:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
|