记录详情

Compile Error

foo.c:4:6: error: variably modified 'ch' at file scope
 char ch[N], len, st[N], top = 0;
      ^~
foo.c:4:18: error: variably modified 'st' at file scope
 char ch[N], len, st[N], top = 0;
                  ^~
foo.c: In function 'main':
foo.c:10:6: warning: array subscript has type 'char' [-Wchar-subscripts]
    st[ ++ top] = ch[i];
      ^
foo.c:13:17: warning: array subscript has type 'char' [-Wchar-subscripts]
    char tmp = st[top];
                 ^
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%s", ch);
  ^~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1024 括号匹配
语言
C
递交时间
2021-11-22 22:29:51
评测时间
2021-11-22 22:29:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes