Skip to content

Instantly share code, notes, and snippets.

@KeKsBoTer
Last active April 17, 2018 10:25
Show Gist options
  • Save KeKsBoTer/fd7b4bfc6ba8cdd8c562976c435be5c9 to your computer and use it in GitHub Desktop.
Save KeKsBoTer/fd7b4bfc6ba8cdd8c562976c435be5c9 to your computer and use it in GitHub Desktop.
Code
void S(){
SCANNER(x);
if(x!=id)
error();
SCANNER(x);
P();
}
void P(){
SCANNER(x);
if(x!=obr)
error();
do{
SCANNER(x);
if(x == id){
SCANNER(x);
if(x == obr)
P();
else if(x == plus || x == minus)
A();
}
else if(x == num){
SCANNER(x);
if(x == plus || x == minus)
A();
}else{
error();
}
}while(x == com);
if(x!=cbr){
error();
}
}
void A(){
if(x != plus && x != minus)
error();
do{
SCANNER(x);
if(x!=id && id!=num)
error();
SCANNER(x);
}while(x == plus && x == minus)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment