记录详情

Runtime Error

foo.cc:8:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
 #pragma warning(disable:4996)
 
foo.cc: In function 'int main()':
foo.cc:21:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int j = 0; j < s.length(); j++)
                   ~~^~~~~~~~~~~~
foo.cc:29:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int k = j; k < s.length(); k++)
                     ~~^~~~~~~~~~~~
foo.cc:44:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      if (k == s.length()-1)
          ~~^~~~~~~~~~~~~~~
foo.cc:108:7: warning: unused variable 'u' [-Wunused-variable]
   int u = 1;
       ^
foo.cc:12:7: warning: unused variable 'c' [-Wunused-variable]
  char c[29];
       ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Accepted 1ms 384.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 1ms 384.0 KiB
#5 Accepted 2ms 376.0 KiB
#6 Runtime Error Aborted 2ms 384.0 KiB
#7 Runtime Error Aborted 2ms 384.0 KiB
#8 Runtime Error Aborted 2ms 416.0 KiB
#9 Accepted 1ms 384.0 KiB
#10 Runtime Error Segmentation fault 1ms 428.0 KiB

信息

递交者
类型
递交
题目
P1258 括号匹配
语言
C++
递交时间
2021-10-12 20:59:50
评测时间
2021-10-12 20:59:50
评测机
分数
60
总耗时
19ms
峰值内存
428.0 KiB