Your #1 problem is you need to adopt a conventional coding style -- one with indents. Something like this:
#include<stdio.h>
#include<stdlib.h>

struct stack
{
int data;
...