Problem candymountain_ex
User shenshiqi
Submission Time 2025-11-21 14:31:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candymountain_ex.cpp: In function ‘int main()’:
candymountain_ex.cpp:34:12: error: no match for ‘operator[]’ (operand types are ‘main()::<lambda(long long int)>’ and ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’})
34 | if (check[a[i]]){
| ^