So, i seem to have problems with one of my codes for stacks. Apparently, it does not recognize top as one of the parameters of the stack. Please, i do need a lot of help.

```
#include <iostream>
using namespace std;
int n;
typedef struct {
    int content[100];
    int top;
} stack;
stack mystack;
int pushstack(stack *somestack, int somevalue) {
    if(top+1>=100)
        return 1;
    (*somestack).top++;
    (*somestack).content[(somestack).top]=somevalue;
    return 0;
}

```