toll.cpp:11:14: error: 'll' was not declared in this scope
11 | using vi = V<ll>;
| ^~
toll.cpp:11:16: error: template argument 1 is invalid
11 | using vi = V<ll>;
| ^
toll.cpp:12:17: error: 'll' was not declared in this scope
12 | using pi = pair<ll,ll>;
| ^~
toll.cpp:12:20: error: 'll' was not declared in this scope
12 | using pi = pair<ll,ll>;
| ^~
toll.cpp:12:22: error: template argument 1 is invalid
12 | using pi = pair<ll,ll>;
| ^
toll.cpp:12:22: error: template argument 2 is invalid
toll.cpp:13:1: error: 'll' does not name a type
13 | ll k, n, m, o;
| ^~
toll.cpp:18:5: error: 'vi' was not declared in this scope
18 | V<V<vi>> base;
| ^~
toll.cpp:18:5: error: template argument 1 is invalid
toll.cpp:18:7: error: template argument 1 is invalid
18 | V<V<vi>> base;
| ^~
toll.cpp:20:3: error: 'vi' was not declared in this scope
20 | V<vi> combine(V<vi> a, V<vi> b) {
| ^~
toll.cpp:20:5: error: template argument 1 is invalid
20 | V<vi> combine(V<vi> a, V<vi> b) {
| ^
toll.cpp:20:17: error: 'vi' was not declared in this scope
20 | V<vi> combine(V<vi> a, V<vi> b) {
| ^~
toll.cpp:20:19: error: template argument 1 is invalid
20 | V<vi> combine(V<vi> a, V<vi> b) {
| ^
toll.cpp:20:26: error: 'vi' was not declared in this scope
20 | V<vi> combine(V<vi> a, V<vi> b) {
| ^~
toll.cpp:20:28: error: template argument 1 is invalid
20 | V<vi> combine(V<vi> a, V<vi> b) {
| ^
toll.cpp: In function 'int combine(int, int)':
toll.cpp:21:7: error: 'vi' was not declared in this scope
21 | V<vi> c(k, vi(k, INF));
| ^~
toll.cpp:21:9: error: template argument 1 is invalid
21 | V<vi> c(k, vi(k, INF));
| ^
toll.cpp:21:13: error: 'k' was not declared in this scope
21 | V<vi> c(k, vi(k, INF));
| ^
toll.cpp:21:26: error: expression list treated as compound expression in initializer [-fpermissive]
21 | V<vi> c(k, vi(k, INF));
| ^
toll.cpp:25:18: error: invalid types 'int[ll {aka long long int}]' for array subscript
25 | c[i][l] = min(c[i][l], a[i][j] + b[j][l]);
| ^
toll.cpp:25:32: error: invalid types 'int[ll {aka long long int}]' for array subscript
25 | c[i][l] = min(c[i][l], a[i][j] + b[j][l]);
| ^
toll.cpp:25:41: error: invalid types 'int[ll {aka long long int}]' for array subscript
25 | c[i][l] = min(c[i][l], a[i][j] + b[j][l]);
| ^
toll.cpp:25:51: error: invalid types 'int[ll {aka long long int}]' for array subscript
25 | c[i][l] = min(c[i][l], a[i][j] + b[j][l]);
| ^
toll.cpp: At global scope:
toll.cpp:36:7: error: 'vi' was not declared in this scope
36 | V<vi> to;
| ^~
toll.cpp:36:9: error: template argument 1 is invalid
36 | V<vi> to;
| ^
toll.cpp:48:7: error: 'vi' was not declared in this scope
48 | V<vi> q(ll a, ll b) {
| ^~
toll.cpp:48:9: error: template argument 1 is invalid
48 | V<vi> q(ll a, ll b) {
| ^
toll.cpp: In constructor 'Seg::Seg(ll, ll)':
toll.cpp:44:22: error: invalid types 'int[ll {aka long long int}]' for array subscript
44 | to = base[l];
| ^
toll.cpp: In member function 'int Seg::q(ll, ll)':
toll.cpp:56:16: error: request for member 'empty' in 'r1', which is of non-class type 'int'
56 | if (r1.empty()) return r2;
| ^~~~~
toll.cpp:57:16: error: request for member 'empty' in 'r2', which is of non-class type 'int'
57 | if (r2.empty()) return r1;
| ^~~~~
toll.cpp: In function 'int main()':
toll.cpp:64:12: error: 'k' was not declared in this scope
64 | cin >> k >> n >> m >> o;
| ^
toll.cpp:64:17: error: 'n' was not declared in this scope; did you mean 'yn'?
64 | cin >> k >> n >> m >> o;
| ^
| yn
toll.cpp:64:22: error: 'm' was not declared in this scope; did you mean 'tm'?
64 | cin >> k >> n >> m >> o;
| ^
| tm
toll.cpp:64:27: error: 'o' was not declared in this scope
64 | cin >> k >> n >> m >> o;
| ^
toll.cpp:65:10: error: request for member 'resize' in 'base', which is of non-class type 'int'
65 | base.resize((n + 1) / k, V<vi>(k, vi(k, INF)));
| ^~~~~~
toll.cpp:65:32: error: 'vi' was not declared in this scope
65 | base.resize((n + 1) / k, V<vi>(k, vi(k, INF)));
| ^~
toll.cpp:65:34: error: template argument 1 is invalid
65 | base.resize((n + 1) / k, V<vi>(k, vi(k, INF)));
| ^