Implement push/pop on a static array.
Build a static stack with capacity 16:
```c
#define CAP 16
static int data[CAP];
static int top = 0;
int push(int v); // 0 on success, -1 if full
int pop(int *out); // 0 on success, -1 if empty
```
Implement both functions.
Sign in to save your code and track progress across devices.