记录详情

Runtime Error

foo.cc: In function 'void dfs(int, int, int)':
foo.cc:48:23: warning: array subscript has type 'char' [-Wchar-subscripts]
   48 |         if(ans[s[1][i]]>=0&&ans[s[2][i]]>=0&&ans[s[3][i]]>=0)
      |                       ^
foo.cc:48:40: warning: array subscript has type 'char' [-Wchar-subscripts]
   48 |         if(ans[s[1][i]]>=0&&ans[s[2][i]]>=0&&ans[s[3][i]]>=0)
      |                                        ^
foo.cc:48:57: warning: array subscript has type 'char' [-Wchar-subscripts]
   48 |         if(ans[s[1][i]]>=0&&ans[s[2][i]]>=0&&ans[s[3][i]]>=0)
      |                                                         ^
foo.cc:49:28: warning: array subscript has type 'char' [-Wchar-subscripts]
   49 |             if((ans[s[1][i]]+ans[s[2][i]])%n!=ans[s[3][i]]&&(ans[s[1][i]]+ans[s[2][i]]+1)%n!=ans[s[3][i]])
      |                            ^
foo.cc:49:41: warning: array subscript has type 'char' [-Wchar-subscripts]
   49 |             if((ans[s[1][i]]+ans[s[2][i]])%n!=ans[s[3][i]]&&(ans[s[1][i]]+ans[s[2][i]]+1)%n!=ans[s[3][i]])
      |                                         ^
foo.cc:49:58: warning: array subscript has type 'char' [-Wchar-subscripts]
   49 |             if((ans[s[1][i]]+ans[s[2][i]])%n!=ans[s[3][i]]&&(ans[s[1][i]]+ans[s[2][i]]+1)%n!=ans[s[3][i]])
      |                                                          ^
foo.cc:49:73: warning: array subscript has type 'char' [-Wchar-subscripts]
   49 |             if((ans[s[1][i]]+ans[s[2][i]])%n!=ans[s[3][i]]&&(ans[s[1][i]]+ans[s[2][i]]+1)%n!=ans[s[3][i]])
      |                                                                         ^
foo.cc:49:86: warning: array subscript has type 'char' [-Wchar-subscripts]
   49 |             if((ans[s[1][i]]+ans[s[2][i]])%n!=ans[s[3][i]]&&(ans[s[1][i]]+ans[s[2][i]]+1)%n!=ans[s[3][i]])
      |                                                                                      ^
foo.cc:49:105: warning: array subscript has type 'char' [-Wchar-subscripts]
   49 |             if((ans[s[1][i]]+ans[s[2][i]])%n!=ans[s[3][i]]&&(ans[s[1][i]]+ans[s[2][i]]+1)%n!=ans[s[3][i]])
      |                                                                                                         ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 3ms 384.0 KiB
#2 Runtime Error Segmentation fault 2ms 384.0 KiB
#3 Runtime Error Segmentation fault 2ms 384.0 KiB
#4 Runtime Error Segmentation fault 2ms 384.0 KiB
#5 Runtime Error Segmentation fault 4ms 384.0 KiB
#6 Runtime Error Segmentation fault 3ms 384.0 KiB
#7 Runtime Error Segmentation fault 3ms 384.0 KiB
#8 Runtime Error Segmentation fault 2ms 384.0 KiB
#9 Runtime Error Segmentation fault 2ms 384.0 KiB
#10 Runtime Error Segmentation fault 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1129 虫食算
语言
C++
递交时间
2022-03-17 14:46:36
评测时间
2022-03-17 14:46:36
评测机
分数
0
总耗时
30ms
峰值内存
384.0 KiB