Problem beareatrabbit
User wzhci11
Submission Time 2024-05-23 13:06:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

beareatrabbit.cpp: In function β€˜int maxd(int, std::vector<long long int>&)’:
beareatrabbit.cpp:6:43: error: invalid types β€˜<unresolved overloaded function type>[__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type {aka long long int}]’ for array subscript
6 | else if (n == 1) return max[a[0], a[1]];
| ^