Problem feast
User ARock
Submission Time 2023-11-10 16:01:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

feast.cpp: In function ‘int32_t main()’:
feast.cpp:78:24: error: cannot convert ‘pipii’ {aka ‘std::pair<long long int, std::pair<long long int, long long int> >’} to ‘long long int’ in assignment
78 | p1 = parent(right.second.second+1);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
| |
| pipii {aka std::pair<long long int, std::pair<long long int, long long int> >}
feast.cpp:86:24: error: cannot convert ‘pipii’ {aka ‘std::pair<long long int, std::pair<long long int, long long int> >’} to ‘long long int’ in assignment
86 | p2 = parent(left.second.first-1);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~
| |
| pipii {aka std::pair<long long int, std::pair<long long int, long long int> >}