#include <stdio.h>
#define MAX 5
void print_stack_ary(char *s, int top);
int main()
{
char s[MAX];
int top = 5;
s[0] = 'a';
s[1] = 'b';
s[2] = 'c';
s[3] = 'd';
s[4] = 'e';
print_stack_ary(s,top);
return 0;
}
void print_stack_ary(char *s, int top)
{
printf("スタックの中身が[a,b,c,d,e]トップ%d\n", top
);
for(top = 5 - 1; top >= 0; top--) {
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNkZWZpbmUgTUFYIDUKCnZvaWQgcHJpbnRfc3RhY2tfYXJ5KGNoYXIgKnMsIGludCB0b3ApOwoKaW50IG1haW4oKQp7CgljaGFyIHNbTUFYXTsKCWludCB0b3AgPSA1OwoKCXNbMF0gPSAnYSc7CglzWzFdID0gJ2InOwoJc1syXSA9ICdjJzsKCXNbM10gPSAnZCc7CglzWzRdID0gJ2UnOwoKCXByaW50X3N0YWNrX2FyeShzLHRvcCk7CgoJcmV0dXJuIDA7Cn0KCnZvaWQgcHJpbnRfc3RhY2tfYXJ5KGNoYXIgKnMsIGludCB0b3ApCnsKCXByaW50Zigi44K544K/44OD44Kv44Gu5Lit6Lqr44GMW2EsYixjLGQsZV3jg4jjg4Pjg5clZFxuIiwgdG9wKTsKCglmb3IodG9wID0gNSAtIDE7IHRvcCA+PSAwOyB0b3AtLSkgewoJCXByaW50ZigiJWNcbiIsc1t0b3BdKTsKCX0KfQ==