Language: C

main(){charb[110],s[110]={0},*q,*p;while(scanf("%[^n]%*c",b),*b-'.'){q=s+1;for(p=b;*p-'.';p++){if(*p=='('||*p=='[')*q++=*p;if(*p==')'||*p==']'){q--;if(!((*q=='('&&*p==')')||(*q=='['&&*p==']'))){puts("no");break;}}}if(*p=='.')puts(q-s-1?"no":"yes");}return 0;}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){charb[110],s[110]={0},*q,*p;while(scanf("%[^n]%*c",b),*b-'.'){q=s+1;for(p=b;*p-'.';p++){if(*p=='('||*p=='[')*q++=*p;if(*p==')'||*p==']'){q--;if(!((*q=='('&&*p==')')||(*q=='['&&*p==']'))){puts("no");break;}}}if(*p=='.')puts(q-s-1?"no":"yes");}return 0;}
      | ^~~~
main.c: In function 'main':
main.c:1:8: error: 'charb' undeclared (first use in this function); did you mean 'char'?
    1 | main(){charb[110],s[110]={0},*q,*p;while(scanf("%[^n]%*c",b),*b-'.'){q=s+1;for(p=b;*p-'.';p++){if(*p=='('||*p=='[')*q++=*p;if(*p==')'||*p==']'){q--;if(!((*q=='('&&*p==')')||(*q=='['&&*p==']'))){puts("no");break;}}}if(*p=='.')puts(q-s-1?"no":"yes");}return 0;}
      |        ^~~~~
      |        char
main.c:1:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:19: error: 's' undeclared (first use in this function)
    1 | main(){charb[110],s[110]={0},*q,*p;while(scanf("%[^n]%*c",b),*b-'.'){q=s+1;for(p=b;*p-'.';p++){if(*p=='('||*p=='[')*q++=*p;if(*p==')'||*p==']'){q--;if(!((*q=='('&&*p==')')||(*q=='['&&*p==']'))){puts("no");break;}}}if(*p=='.')puts(q-s-1?"no":"yes");}return 0;}
      |                   ^
main.c:1:26: error: expected expression before '{' token
    1 | main(){charb[110],s[110]={0},*q,*p;while(scanf("%[^n]%*c",b),*b-'.'){q=s+1;for(p=b;*p-'.';p++){if(*p=='('||*p=='[')*q++=*p;if(*p==')'||*p==']'){q--;if(!((*q=='('&&*p==')')||(*q=='['&&*p==']'))){puts("no");break;}}}if(*p=='.')puts(q-s-1?"no":"yes");}return 0;}
      |                          ^
main.c:1:42: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(){charb[110],s[110]={0},*q,*p;while(scanf("%[^n]%*c",b),*b-'.'){q=s+1;for(p=b;*p-'.';p++){if(*p=='('||*p=='[')*q++=*p;if(*p==')'||*p==']'){q--;if(!((*q=='('&&*p==')')||(*q=='['&&*p==']'))){puts("no");break;}}}if(*p=='.')puts(q-s-1?"no":"yes");}return 0;}
      |                                          ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(){charb[110],s[110]={0},*q,*p;while(scanf("%[^n]%*c",b),*b-'.'){q=s+1;for(p=b;*p-'.';p++){if(*p=='('||*p=='[')*q++=*p;if(*p==')'||*p==']'){q--;if(!((*q=='('&&*p==')')||(*q=='['&&*p==']'))){puts("no");break;}}}if(*p=='.')puts(q-s-1?"no":"yes");}return 0;}
main.c:1:42: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(){charb[110],s[110]={0},*q,*p;while(scanf("%[^n]%*c",b),*b-'.'){q=s+1;for(p=b;*p-'.';p++){if(*p=='('||*p=='[')*q++=*p;if(*p==')'||*p==']'){q--;if(!((*q=='('&&*p==')')||(*q=='['&&*p==']'))){puts("no");break;}}}if(*p=='.')puts(q-s-1?"no":"yes");}return 0;}
      |                                          ^~~~~
main.c:1:42: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:59: error: 'b' undeclared (first use in this function)
    1 | main(){charb[110],s[110]={0},*q,*p;while(scanf("%[^n]%*c",b),*b-'.'){q=s+1;for(p=b;*p-'.';p++){if(*p=='('||*p=='[')*q++=*p;if(*p==')'||*p==']'){q--;if(!((*q=='('&&*p==')')||(*q=='['&&*p==']'))){puts("no");break;}}}if(*p=='.')puts(q-s-1?"no":"yes");}return 0;}
      |                                                           ^
main.c:1:70: error: 'q' undeclared (first use in this function)
    1 | main(){charb[110],s[110]={0},*q,*p;while(scanf("%[^n]%*c",b),*b-'.'){q=s+1;for(p=b;*p-'.';p++){if(*p=='('||*p=='[')*q++=*p;if(*p==')'||*p==']'){q--;if(!((*q=='('&&*p==')')||(*q=='['&&*p==']'))){puts("no");break;}}}if(*p=='.')puts(q-s-1?"no":"yes");}return 0;}
      |                                                                      ^
main.c:1:80: error: 'p' undeclared (first use in this function)
    1 | main(){charb[110],s[110]={0},*q,*p;while(scanf("%[^n]%*c",b),*b-'.'){q=s+1;for(p=b;*p-'.';p++){if(*p=='('||*p=='[')*q++=*p;if(*p==')'||*p==']'){q--;if(!((*q=='('&&*p==')')||(*q=='['&&*p==']'))){puts("no");break;}}}if(*p=='.')puts(q-s-1?"no":"yes");}return 0;}
      |                                                                                ^
main.c:1:195: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | main(){charb[110],s[110]={0},*q,*p;while(scanf("%[^n]%*c",b),*b-'.'){q=s+1;for(p=b;*p-'.';p++){if(*p=='('||*p=='[')*q++=*p;if(*p==')'||*p==']'){q--;if(!((*q=='('&&*p==')')||(*q=='['&&*p==']'))){puts("no");break;}}}if(*p=='.')puts(q-s-1?"no":"yes");}return 0;}
      |                                                                                                                                                                                                   ^~~~
main.c:1:195: note: include '<stdio.h>' or provide a declaration of 'puts'