Problem removalcosts
User Xiaoyang
Submission Time 2022-12-28 14:53:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

removalcosts.cpp: In function ‘void solve2()’:
removalcosts.cpp:19:18: error: request for member ‘begin’ in ‘alist’, which is of non-class type ‘long long int [n]’
19 | #define ALL(x) x.begin(),x.end()
| ^~~~~
removalcosts.cpp:50:29: note: in expansion of macro ‘ALL’
50 | }while(next_permutation(ALL(alist)));
| ^~~
removalcosts.cpp:19:28: error: request for member ‘end’ in ‘alist’, which is of non-class type ‘long long int [n]’
19 | #define ALL(x) x.begin(),x.end()
| ^~~
removalcosts.cpp:50:29: note: in expansion of macro ‘ALL’
50 | }while(next_permutation(ALL(alist)));
| ^~~