Problem ancestor
User trandk
Submission Time 2025-11-30 22:08:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ancestor.cpp:212:13: error: ‘__lg’ is not a type
212 | matint par(__lg(MAXN) + 1, arint(MAXN, 0));
| ^~~~
ancestor.cpp:212:18: error: expected ‘)’ before numeric constant
212 | matint par(__lg(MAXN) + 1, arint(MAXN, 0));
| ~^
| )
ancestor.cpp:212:18: error: expected ‘)’ before numeric constant
212 | matint par(__lg(MAXN) + 1, arint(MAXN, 0));
| ~ ^
| )
ancestor.cpp:212:17: error: expected ‘;’ at end of member declaration
212 | matint par(__lg(MAXN) + 1, arint(MAXN, 0));
| ^
| ;
ancestor.cpp:30:14: error: expected unqualified-id before numeric constant
30 | #define MAXN 100005
| ^~~~~~
ancestor.cpp:212:18: note: in expansion of macro ‘MAXN’
212 | matint par(__lg(MAXN) + 1, arint(MAXN, 0));
| ^~~~
ancestor.cpp: In mem