记录详情

Wrong Answer

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:71:9: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int (*)[1000]' [-Wformat=]
   71 | 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)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Standard answer longer than user output. 2ms 256.0 KiB

信息

递交者
类型
自测
题目
DS2-1 括号的匹配
语言
C
递交时间
2022-10-02 21:48:43
评测时间
2022-10-02 21:48:43
评测机
分数
0
总耗时
2ms
峰值内存
256.0 KiB