Problem sequence_apio
User Pan
Submission Time 2023-12-26 11:58:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sequence_apio.cpp: In function ‘int main()’:
sequence_apio.cpp:72:18: error: cannot convert ‘pi’ {aka ‘std::pair<long long int, long long int>’} to ‘ll’ {aka ‘long long int’} in initialization
72 | ll ret = query(ps[j]);
| ~~~~~^~~~~~~
| |
| pi {aka std::pair<long long int, long long int>}
sequence_apio.cpp:3:11: error: request for member ‘first’ in ‘ret’, which is of non-class type ‘ll’ {aka ‘long long int’}
3 | #define f first
| ^~~~~
sequence_apio.cpp:73:19: note: in expansion of macro ‘f’
73 | dp[i][j] = ret.f;
| ^
sequence_apio.cpp:4:11: error: request for member ‘second’ in ‘ret’, which is of non-class type ‘ll’ {aka ‘long long int’}
4 | #define s second
| ^~~~~~
sequence_apio.cpp:74:19: note: in expansion of macro ‘s’
74 | bt[i][j] = ret.s;
| ^