Problem cake3
User PlayVoltz
Submission Time 2023-12-28 23:53:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cake3.cpp: In function ‘long long int f(long long int, long long int)’:
cake3.cpp:46:38: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type’ {aka ‘std::pair<long long int, long long int>’} to ‘long long int’
46 | while (L>l)update(disc[--L], vect[L]), update2(disc[L], 1);
| ^
| |
| __gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type {aka std::pair<long long int, long long int>}
cake3.cpp:21:28: note: initializing argument 2 of ‘void update(long long int, long long int)’
21 | void update(int index, int val){
| ^
cake3.cpp:47:38: error: ca