/in/foo.cc:40:23: error: 'K1' was not declared in this scope; did you mean 'y1'?
40 | int n, N, ans, S, L = K1 = 0, K, arr[maxN], f[maxM] = { 0 }, T[maxN] = { 0 }, tot[maxM << 1] = { 0 };
| ^~
| y1
/in/foo.cc: In function 'int main()':
/in/foo.cc:47:9: error: 'arr' was not declared in this scope
47 | arr[i] = read();
| ^~~
/in/foo.cc:55:29: error: 'arr' was not declared in this scope
55 | for (int j = L; j > arr[i]; j--)
| ^~~
/in/foo.cc:56:13: error: 'f' was not declared in this scope
56 | f[j] = max(f[j], f[j - arr[i]]);
| ^
/in/foo.cc:58:9: error: 'f' was not declared in this scope
58 | f[arr[i]] = max(f[arr[i]], i);
| ^
/in/foo.cc:58:11: error: 'arr' was not declared in this scope
58 | f[arr[i]] = max(f[arr[i]], i);
| ^~~
/in/foo.cc:70:5: error: 'K' was not declared in this scope
70 | K = L - arr[ans];
| ^
/in/foo.cc:70:13: error: 'arr' was not declared in this scope
70 | K = L - arr[ans];
| ^~~
/in/foo.cc:74:13: error: 'K1' was not declared in this scope; did you mean 'y1'?
74 | K1 += arr[i];
| ^~
| y1