Problem swap
User Xiaoyang
Submission Time 2023-02-12 14:46:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swap.cpp: In function ‘void dfs2(long long int)’:
swap.cpp:43:11: error: too few arguments to function ‘void dfs(long long int, long long int)’
43 | dfs(x.fi);
| ^
swap.cpp:27:6: note: declared here
27 | void dfs(ll u,ll p){
| ^~~
swap.cpp: In function ‘void init(int, int, std::vector<int>, std::vector<int>, std::vector<int>)’:
swap.cpp:51:10: error: ‘n’ was not declared in this scope
51 | rep(i,0,n){
| ^
swap.cpp:12:36: note: in definition of macro ‘rep’
12 | #define rep(i,a,b) for (int i=a;i<(b);i++)
| ^
swap.cpp: In function ‘int getMinimumFuelCapacity(int, int)’:
swap.cpp:58:12: error: too many arguments to function ‘void dfs2(long long int)’
58 | dfs2(0,-1);
| ^
swap.cpp:38:6: note: declared here
38 | void dfs2(ll u){
| ^~~~