Problem | numbergame |
---|---|
User | reporter |
Submission Time | 2023-01-26 17:17:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
numbergame.cpp:8:32: error: ISO C++ forbids declaration of ‘SparseTable’ with no type [-fpermissive]
8 | SparseTable(int _N, int a[]): N(_N) {
| ^
numbergame.cpp: In member function ‘int SparseTableMin::SparseTable(int, int*)’:
numbergame.cpp:8:35: error: only constructors take member initializers
8 | SparseTable(int _N, int a[]): N(_N) {
| ^
numbergame.cpp: At global scope:
numbergame.cpp:31:32: error: ISO C++ forbids declaration of ‘SparseTable’ with no type [-fpermissive]
31 | SparseTable(int _N, int a[]): N(_N) {
| ^
numbergame.cpp: In member function ‘int SparseTableMax::SparseTable(int, int*)’:
numbergame.cpp:31:35: error: only constructors take member initializers
31 | SparseTable(int _N, int a[]): N(_N) {
| ^
numbergame.cpp: In function ‘int main()’: