Problem eta
User Potato3218
Submission Time 2023-12-16 11:12:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eta.cpp: In function ‘int main()’:
eta.cpp:55:33: error: cannot convert ‘std::unordered_map<int, std::vector<int> >::mapped_type’ {aka ‘std::vector<int>’} to ‘int’ in initialization
55 | #define cur_arr depths[t];
| ^
eta.cpp:56:17: note: in expansion of macro ‘cur_arr’
56 | int l = cur_arr.size() - (lower_bound(cur_arr.begin(), cur_arr.end(), pre[c]) - cur_arr.begin()) + 1;
| ^~~~~~~
eta.cpp:56:24: error: expected primary-expression before ‘.’ token
56 | int l = cur_arr.size() - (lower_bound(cur_arr.begin(), cur_arr.end(), pre[c]) - cur_arr.begin()) + 1;
| ^
eta.cpp:55:34: error: expected ‘)’ before ‘;’ token
55 | #define cur_arr depths[t];
| ^
eta.cpp:56:47: note: in expansion of macro ‘cur_arr’
56 | int l = cur_arr.size() - (lower_bound(cur_arr