Problem distribution
User PlayVoltz
Submission Time 2024-07-04 00:05:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

distribution.cpp:34:1: error: expected initializer before ‘vector’
34 | vector<long long> temp[2];
| ^~~~~~
distribution.cpp: In function ‘void dfs(int, int, long long int, bool, bool)’:
distribution.cpp:38:11: error: ‘temp’ was not declared in this scope; did you mean ‘mktemp’?
38 | if (can)temp[t].pb(sum);
| ^~~~
| mktemp
distribution.cpp: In function ‘bool backtrack(int, int, long long int, bool, bool)’:
distribution.cpp:51:44: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
51 | if (backtrack(i+1, n, sum+vect[i], 1, t)){ans[t].pb(i+1);return 1;}
| ^~~
| abs
distribution.cpp:52:44: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
52 | if (backtrack(i+1, n, sum-vect[i], 1, t)){ans[!t].pb(i+1);return 1;}
|