secret.cpp: In function 'void build(int, int)':
secret.cpp:13:19: error: 'Secret' was not declared in this scope
13 | pre[i][m]=Secret(a[i],pre[i+1][m]);
| ^~~~~~
secret.cpp:15:21: error: 'Secret' was not declared in this scope
15 | pre[m+1][i]=Secret(pre[m+1][i-1],a[i]);
| ^~~~~~
secret.cpp: In function 'void Init(int, int*)':
secret.cpp:25:16: error: too many arguments to function 'void build(int, int)'
25 | build(0,1,n);
| ^
secret.cpp:5:6: note: declared here
5 | void build(int l, int r)
| ^~~~~
secret.cpp: In function 'int Query(int, int)':
secret.cpp:31:16: error: 'Secret' was not declared in this scope
31 | return Secret(a[l],a[r]);
| ^~~~~~
secret.cpp:37:20: error: 'Secret' was not declared in this scope
37 | return Secret(pre[l][m],pre[m+1][r]);
| ^~~~~~