Problem collectmushrooms6
User ngano4na
Submission Time 2023-02-08 20:17:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms6.cpp: In function ‘void sol()’:
collectmushrooms6.cpp:5:11: error: ‘first’ was not declared in this scope
5 | #define f first
| ^~~~~
collectmushrooms6.cpp:29:33: note: in expansion of macro ‘f’
29 | int dis = max(abs(e[f]-g[f]),abs(e[s]-g[s]));
| ^
collectmushrooms6.cpp:6:11: error: ‘second’ was not declared in this scope
6 | #define s second
| ^~~~~~
collectmushrooms6.cpp:29:48: note: in expansion of macro ‘s’
29 | int dis = max(abs(e[f]-g[f]),abs(e[s]-g[s]));
| ^