Problem | cake3 |
---|---|
User | chenweilian |
Submission Time | 2025-03-17 16:22:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cake3.cpp: In member function ‘pll node::query(int)’:
cake3.cpp:93:11: error: could not convert ‘0’ from ‘int’ to ‘pll’ {aka ‘std::pair<long long int, long long int>’}
93 | return 0;
| ^
| |
| int
cake3.cpp:104:8: error: no match for ‘operator+=’ (operand types are ‘pll’ {aka ‘std::pair<long long int, long long int>’} and ‘pll’ {aka ‘std::pair<long long int, long long int>’})
104 | ans += left->query(t - ans.sec);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
cake3.cpp: In function ‘ll cost(int, int)’:
cake3.cpp:116:26: error: no match for ‘operator-’ (operand types are ‘pll’ {aka ‘std::pair<long long int, long long int>’} and ‘long long int’)
116 | ll res = root->query(m) - 2 * (cake[r].fir - cake[l].fir);
| ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | long long