foo.c: In function 'Match':
foo.c:27:28: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
27 | if(a[i]=')')
| ^
foo.c:37:28: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
37 | if(b[i]='(')
| ^
foo.c:48:28: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
48 | if(a[i]='(')
| ^
foo.c:58:28: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
58 | if(c[i]=')')
| ^
foo.c: In function 'main':
foo.c:72:9: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int (*)[1000]' [-Wformat=]
72 | scanf("%s",&a);
| ~^ ~~
| | |
| | int (*)[1000]
| char *
foo.c: In function 'Match':
foo.c:53:34: warning: 'j' may be used uninitialized [-Wmaybe-uninitialized]
53 | c[j]=0;
| ^
foo.c:22:11: warning: 'right' may be used uninitialized in this function [-Wmaybe-uninitialized]
22 | if(left>right)
| ^
foo.c:22:11: warning: 'left' may be used uninitialized in this function [-Wmaybe-uninitialized]
[Hydro](https://hydro.ac)提供评测服务