记录详情

Accepted

foo.cc: In member function 'bool kuo_hao::place()':
foo.cc:29:8: warning: statement has no effect [-Wunused-value]
   29 |   for (i1; a[i1] != '('; i1++);
      |        ^~
foo.cc:30:8: warning: statement has no effect [-Wunused-value]
   30 |   for (i2; a[i2] != ')'; i2++);
      |        ^~
foo.cc:31:8: warning: statement has no effect [-Wunused-value]
   31 |   for (l1; a[l1] != '['; l1++);
      |        ^~
foo.cc:32:8: warning: statement has no effect [-Wunused-value]
   32 |   for (l2; a[l2] != ']'; l2++);
      |        ^~
foo.cc: In function 'int main()':
foo.cc:51:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   51 |  for (int i = 0; i < a.length(); i++)
      |                  ~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 384.0 KiB

信息

递交者
类型
自测
题目
P1361 5A 括号序列
语言
C++
递交时间
2022-04-27 14:25:45
评测时间
2022-04-27 14:25:45
评测机
分数
10
总耗时
4ms
峰值内存
384.0 KiB