secret.cpp: In function 'void Init(int, int*)':
secret.cpp:31:19: error: 'N' is not a constant expression
31 | offlineDQ<int, N> odq;
| ^
secret.cpp:31:19: note: in template argument for type 'int'
secret.cpp:32:7: error: request for member 'a' in 'odq', which is of non-class type 'int'
32 | odq.a.resize(N);
| ^
secret.cpp:33:34: error: request for member 'a' in 'odq', which is of non-class type 'int'
33 | for(int i = 0; i < N; i++) odq.a[i] = A[i];
| ^
secret.cpp:34:7: error: request for member 'init' in 'odq', which is of non-class type 'int'
34 | odq.init();
| ^~~~
secret.cpp: In function 'int Query(int, int)':
secret.cpp:38:10: error: 'odq' was not declared in this scope
38 | return odq.query(--L, --R);
| ^~~