secret.cpp: In function 'void Init(int, int*)':
secret.cpp:26:32: error: expected primary-expression before ']' token
26 | function<void(ll,ll)> build [&](ll l,ll r){
| ^
secret.cpp:27:3: error: expected primary-expression before 'if'
27 | if(l>=r)return ;
| ^~
secret.cpp:27:3: error: expected '}' before 'if'
secret.cpp:26:44: note: to match this '{'
26 | function<void(ll,ll)> build [&](ll l,ll r){
| ^
secret.cpp:28:11: error: 'l' was not declared in this scope
28 | ll mid=(l+r)/2;
| ^
secret.cpp:28:13: error: 'r' was not declared in this scope
28 | ll mid=(l+r)/2;
| ^
secret.cpp:29:3: error: 'build' was not declared in this scope
29 | build(l,mid);build(mid+1,r);
| ^~~~~
secret.cpp:32:40: error: 'Secret' was not declared in this scope
32 | for(int i=mid+2;i<=r;i++)pre[mid][i]=Secret(pre[mid][i-1],a[i-1]);
| ^~~~~~
secret.cpp:33:37: error: 'Secret' was not declared in this scope
33 | for(int i=mid;i>l;i--)suf[mid][i]=Secret(suf[mid][i+1],a[i-1]);
| ^~~~~~
secret.cpp: At global scope:
secret.cpp:35:7: error: expected constructor, destructor, or type conversion before '(' token
35 | build(0,n);
| ^
secret.cpp:36:1: error: expected declaration before '}' token
36 | }
| ^
secret.cpp: In function 'll q(ll, ll, ll, ll)':
secret.cpp:43:10: error: 'Secret' was not declared in this scope
43 | return Secret(pre[mid][qr],suf[mid][ql]);
| ^~~~~~
secret.cpp: In function 'int Query(int, int)':
secret.cpp:54:13: error: 'n' was not declared in this scope
54 | return q(0,n,L,R+1);
| ^