secret.cpp: In function 'void DC(int, int)':
secret.cpp:6:15: error: 'A' was not declared in this scope
6 | prec[m][m] = A[m];
| ^
secret.cpp:8:47: error: 'Secret' was not declared in this scope
8 | for (int i = m - 1; i >= l;--i) prec[i][m] = Secret(prec[i + 1][m],A[i]);
| ^~~~~~
secret.cpp:9:47: error: 'Secret' was not declared in this scope
9 | for (int i = m + 2; i <= r;++i) prec[m][i] = Secret(prec[m + 1][i - 1],A[i]);
| ^~~~~~
secret.cpp: In function 'void init(int, int*)':
secret.cpp:14:6: error: declaration of 'int N' shadows a parameter
14 | int N; cin >> N;
| ^
secret.cpp:13:15: note: 'int N' previously declared here
13 | void init(int N,int A[]){
| ~~~~^
secret.cpp:14:9: error: 'cin' was not declared in this scope
14 | int N; cin >> N;
| ^~~
secret.cpp: In function 'int Query(int, int)':
secret.cpp:18:16: error: 'N' was not declared in this scope
18 | int l = 0,r = N - 1;
| ^
secret.cpp:21:30: error: 'Secret' was not declared in this scope
21 | if(L <= m && m < R) return Secret(prec[L][m],prec[m + 1],R);
| ^~~~~~
secret.cpp:24:2: error: expected '}' at end of input
24 | }
| ^
secret.cpp:17:23: note: to match this '{'
17 | int Query(int L,int R){
| ^