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