#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int maxsize= 100 ;
static char arr[ 100 ] ;
int top=- 1 ;
char queue[ 100 ] ;
int front=- 1 ;
int rear=- 1 ;
char enqueue( char data) {
if ( rear+ 1 >= 100 ) {
return 0 ; }
else {
queue[ rear+ 1 ] = data;
rear++;
return 1 ;
} }
char dequeue( ) {
if ( front== rear) {
return 0 ; }
else {
char data= queue[ front+ 1 ] ;
front++;
return ( data) ;
} }
int push( char new) {
top++;
arr[ top] = new;
return 0 ;
}
char pop( ) {
char tmp;
top--;
return ( arr[ top+ 1 ] ) ;
}
int main( ) {
int t= 1 ;
int f= 0 ;
int k;
char stack[ 10 ] ;
char queue[ 10 ] ;
char aa[ 100 ] ;
int i;
int counter= 0 ;
int n;
for ( k= a0; k < counter; k++ ) {
i= 0 ;
while ( i< stringsize) {
push( aa[ i] ) ;
enqueue( aa[ i] ) ;
i++; }
n= 0 ;
while ( n< stringsize) {
stack[ n] = pop( ) ;
queue[ n] = dequeue( ) ;
if ( stack[ n] == queue[ n] ) {
n++; }
else
{
}
}
if ( stack== queue) {
}
}
return 0 ;
}
I2luY2x1ZGU8c3RkaW8uaD4KICNpbmNsdWRlPHN0ZGxpYi5oPgogI2luY2x1ZGU8c3RyaW5nLmg+CiBpbnQgbWF4c2l6ZT0xMDA7CiBzdGF0aWMgY2hhciBhcnJbMTAwXTsKIGludCB0b3A9LTE7CiBjaGFyIHF1ZXVlWzEwMF07CiBpbnQgZnJvbnQ9LTE7CiBpbnQgcmVhcj0tMTsKIGNoYXIgZW5xdWV1ZShjaGFyIGRhdGEpewogaWYocmVhcisxPj0xMDApewogcmV0dXJuIDA7fQogZWxzZXsKIHF1ZXVlW3JlYXIrMV09ZGF0YTsKIHJlYXIrKzsKIHJldHVybiAxOwogfX0KIGNoYXIgZGVxdWV1ZSgpewogaWYoZnJvbnQ9PXJlYXIpewogcmV0dXJuIDA7fQogZWxzZXsKIGNoYXIgZGF0YT1xdWV1ZVtmcm9udCsxXTsKIGZyb250Kys7CiByZXR1cm4oZGF0YSk7CiB9fQoKaW50IHB1c2goY2hhciBuZXcpewogCiB0b3ArKzsKIGFyclt0b3BdPW5ldzsKcmV0dXJuIDA7IAogfQogY2hhciBwb3AoKXsKCiBjaGFyIHRtcDsKIAogdG9wLS07CiByZXR1cm4gKGFyclt0b3ArMV0pOwogfQogaW50IG1haW4oKXsKIGludCB0PTE7CiBpbnQgZj0wOwogaW50IGs7CiBjaGFyIHN0YWNrWzEwXTsKIGNoYXIgcXVldWVbMTBdOwoKIGNoYXIgYWFbMTAwXTsKIGludCBzdHJpbmdzaXplPXN0cmxlbihhYSk7CgogaW50IGk7CiBpbnQgY291bnRlcj0wOwogaW50IG47CiBzY2FuZigiJWRcbiIsJmNvdW50ZXIpOwogZm9yKGs9YTA7ayA8IGNvdW50ZXI7aysrKXsKaT0wOyAKIHNjYW5mKCIlY1xuIixhYSk7CiB3aGlsZShpPHN0cmluZ3NpemUpewoKCiBwdXNoKGFhW2ldKTsKIGVucXVldWUoYWFbaV0pOwogaSsrO30KIG49MDsKIHdoaWxlKG48c3RyaW5nc2l6ZSl7CiBzdGFja1tuXT1wb3AoKTsKIHF1ZXVlW25dPWRlcXVldWUoKTsKIGlmKHN0YWNrW25dPT1xdWV1ZVtuXSl7CgoKIG4rKzt9CiBlbHNlCiB7CiBwcmludGYoIiVkXG4iLGYpOwoKIH0KIH0KIGlmKHN0YWNrPT1xdWV1ZSl7CiBwcmludGYoIiVkXG4iLHQpOwogfQogfQogcmV0dXJuIDA7CgogfQoKCgoKCgo=
compilation info
cc1: warnings being treated as errors
prog.c: In function ‘pop’:
prog.c:35: error: unused variable ‘tmp’
prog.c: In function ‘main’:
prog.c:54: error: ‘a0’ undeclared (first use in this function)
prog.c:54: error: (Each undeclared identifier is reported only once
prog.c:54: error: for each function it appears in.)
stdout