| Problem | minstack | 
|---|---|
| User | yc | 
| Submission Time | 2025-05-29 06:31:07 | 
| Score | 0 | 
| Max Time | N/A | 
| Max Memory | N/A | 
Owl Get a Life
 minstack.cpp:4:1: error: ‘int’ is not a template
    4 | int <stack> a = {};
      | ^~~
minstack.cpp: In function ‘void push(int)’:
minstack.cpp:9:4: error: request for member ‘push’ in ‘a’, which is of non-class type ‘int’
    9 |  a.push(x)
      |    ^~~~
minstack.cpp:9:9: error: ‘x’ was not declared in this scope
    9 |  a.push(x)
      |         ^
minstack.cpp: In function ‘void pop()’:
minstack.cpp:14:4: error: request for member ‘pop’ in ‘a’, which is of non-class type ‘int’
   14 |  a.pop();
      |    ^~~
minstack.cpp: In function ‘int top()’:
minstack.cpp:18:11: error: request for member ‘top’ in ‘a’, which is of non-class type ‘int’
   18 |  return a.top();
      |           ^~~
minstack.cpp: At global scope:
minstack.cpp:24:19: error: invalid conversion from ‘void (*)(int)’ to ‘void (*)()’ [-fpermissive]
   24 | void (*m[2])() = {push,pop}
      |                   ^~~~
      |                   |