Problem secret
User maximushartanto
Submission Time 2025-12-19 17:03:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

secret.cpp: In constructor ‘node::node(int, int)’:
secret.cpp:21:18: error: ‘Secret’ was not declared in this scope
21 | pref[m - 2] = Secret(v[m - 2], v[m - 1]);
| ^~~~~~
secret.cpp:27:18: error: ‘Secret’ was not declared in this scope
27 | suff[m + 1] = Secret(v[m], v[m + 1]);
| ^~~~~~
secret.cpp: In member function ‘int node::query(int, int)’:
secret.cpp:45:11: error: ‘Secret’ was not declared in this scope
45 | return Secret(pref[ll], v[m]);
| ^~~~~~
secret.cpp:50:10: error: ‘Secret’ was not declared in this scope
50 | return Secret(pref[ll], suff[rr]);
| ^~~~~~