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

Compile Error

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){
| ^~~~