koala.cpp: In function 'int maxValue(int, int)':
koala.cpp:16:9: error: 'vll' was not declared in this scope
16 | vll v;
| ^~~
koala.cpp:17:29: error: 'v' was not declared in this scope
17 | for(int i=0;i<N;i++)v.pb(i);
| ^
koala.cpp:18:15: error: 'v' was not declared in this scope
18 | while(v.size() > 1){
| ^
koala.cpp:19:17: error: 'll' was not declared in this scope
19 | ll x = (W / v.size());
| ^~
koala.cpp:20:17: error: 'fill' was not declared in this scope
20 | fill(B, B+N, 0);
| ^~~~
koala.cpp:21:39: error: 'x' was not declared in this scope
21 | for(auto i : v)B[i] = x;
| ^
koala.cpp:25:35: error: 'x' was not declared in this scope
25 | if(R[i] > x)v.pb(i);
| ^
koala.cpp:27:16: error: 'v' was not declared in this scope
27 | return v[0];
| ^
koala.cpp: In function 'int greaterValue(int, int)':
koala.cpp:31:9: error: 'll' was not declared in this scope
31 | ll l = 1, r = 9;
| ^~
koala.cpp:32:9: error: 'fill' was not declared in this scope
32 | fill(B, B+N, 0);
| ^~~~
koala.cpp:33:15: error: 'l' was not declared in this scope
33 | while(l!=r){
| ^
koala.cpp:33:18: error: 'r' was not declared in this scope
33 | while(l!=r){
| ^
koala.cpp:34:19: error: expected ';' before 'm'
34 | ll m=(l+r)>>1;
| ^~
| ;
koala.cpp:35:31: error: 'm' was not declared in this scope
35 | B[i] = B[j] = m;
| ^
koala.cpp:41:23: error: 'l' was not declared in this scope
41 | B[i] = B[j] = l;
| ^
koala.cpp: In function 'bool better(int, int, int, int)':
koala.cpp:47:9: error: 'fill' was not declared in this scope
47 | fill(B, B+N, 0);
| ^~~~
koala.cpp: At global scope:
koala.cpp:56:1: error: 'vll' does not name a type
56 | vll dac(vll v, int N, int W, bool ww = 0){
| ^~~
koala.cpp:76:6: error: variable or field 'split' declared void
76 | void split(vll v,ll N,ll W, int *P, ll l,ll r){
| ^~~~~
koala.cpp:76:12: error: 'vll' was not declared in this scope
76 | void split(vll v,ll N,ll W, int *P, ll l,ll r){
| ^~~
koala.cpp:76:18: error: 'll' was not declared in this scope
76 | void split(vll v,ll N,ll W, int *P, ll l,ll r){
| ^~
koala.cpp:76:23: error: 'll' was not declared in this scope
76 | void split(vll v,ll N,ll W, int *P, ll l,ll r){
| ^~
koala.cpp:76:29: error: expected primary-expression before 'int'
76 | void split(vll v,ll N,ll W, int *P, ll l,ll r){
| ^~~
koala.cpp:76:37: error: 'll' was not declared in this scope
76 | void split(vll v,ll N,ll W, int *P, ll l,ll r){
| ^~
koala.cpp:76:42: error: 'll' was not declared in this scope
76 | void split(vll v,ll N,ll W, int *P, ll l,ll r){
| ^~
koala.cpp: In function 'void allValues(int, int, int*)':
koala.cpp:96:17: error: 'vll' was not declared in this scope
96 | vll v;
| ^~~
koala.cpp:97:37: error: 'v' was not declared in this scope
97 | for(int i=0;i<N;i++)v.pb(i);
| ^
koala.cpp:98:17: error: 'v' was not declared in this scope
98 | v = dac(v, N, W);
| ^
koala.cpp:98:21: error: 'dac' was not declared in this scope
98 | v = dac(v, N, W);
| ^~~
koala.cpp:101:17: error: 'vll' was not declared in this scope
101 | vll v;
| ^~~
koala.cpp:102:37: error: 'v' was not declared in this scope
102 | for(int i=0;i<N;i++)v.pb(i);
| ^
koala.cpp:103:23: error: 'v' was not declared in this scope
103 | split(v, N, W, P, 1, N);
| ^
koala.cpp:103:17: error: 'split' was not declared in this scope
103 | split(v, N, W, P, 1, N);
| ^~~~~