| Problem | minstack | 
|---|---|
| User | yc | 
| Submission Time | 2025-05-29 06:31:33 | 
| Score | 0 | 
| Max Time | N/A | 
| Max Memory | N/A | 
Owl Get a Life
 minstack.cpp: In function ‘void push(int)’:
minstack.cpp:9:9: error: ‘x’ was not declared in this scope
    9 |  a.push(x)
      |         ^
minstack.cpp: At global scope:
minstack.cpp:24:19: error: invalid conversion from ‘void (*)(int)’ to ‘void (*)()’ [-fpermissive]
   24 | void (*m[2])() = {push,pop}
      |                   ^~~~
      |                   |
      |                   void (*)(int)
minstack.cpp:25:1: error: expected ‘,’ or ‘;’ before ‘int’
   25 | int (*n[2])(int) = {top,getMin}
      | ^~~
minstack.cpp:26:1: error: ‘cin’ does not name a type; did you mean ‘sin’?
   26 | cin>>Q;
      | ^~~
      | sin
minstack.cpp:27:1: error: expected unqualified-id before ‘for’
   27 | for (int i = 0;i<Q;i++){
      | ^~~
minstack.cpp:27:16: error: ‘i’ does not name a type
   27 | for (int i = 0;i<Q;i++){
      |                ^
minstack.cpp:27:20: error: ‘i’ does not name a type
   27 | for (int