prog.cpp:7:33: error: size of array 'storage' is too large
unsigned long long storage[SIZE];
^
prog.cpp: In member function 'void stack::push(int)':
prog.cpp:10:3: error: 'storage' was not declared in this scope
storage[cursor] = n;
^
prog.cpp: In member function 'int stack::pop()':
prog.cpp:14:10: error: 'storage' was not declared in this scope
return storage[--cursor];
^
prog.cpp: In member function 'int stack::back()':
prog.cpp:17:10: error: 'storage' was not declared in this scope
return storage[cursor-1];
^
prog.cpp: In function 'int main()':
prog.cpp:30:28: error: expected primary-expression before ')' token
for(int i = 0; i < Q; i++)) {
^