/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'void dfs(int)':
/in/foo.cc:27:30: warning: array subscript has type 'char' [-Wchar-subscripts]
             if(num[s[1][i][0]]!=-1&&num[s[1][j][0]]!=-1)
                              ^
/in/foo.cc:27:51: warning: array subscript has type 'char' [-Wchar-subscripts]
             if(num[s[1][i][0]]!=-1&&num[s[1][j][0]]!=-1)
                                                   ^
/in/foo.cc:35:32: warning: array subscript has type 'char' [-Wchar-subscripts]
                     if(num[t[1]]==-1)    know++;
                                ^
/in/foo.cc:37:32: warning: array subscript has type 'char' [-Wchar-subscripts]
                     if(num[t[1]]!=num[s[1][i][0]]+num[s[1][j][0]]-(n-1))
                                ^
/in/foo.cc:37:49: warning: array subscript has type 'char' [-Wchar-subscripts]
                     if(num[t[1]]!=num[s[1][i][0]]+num[s[1][j][0]]-(n-1))
                                                 ^
/in/foo.cc:37:65: warning: array subscript has type 'char' [-Wchar-subscripts]
                     if(num[t[1]]!=num[s[1][i][0]]+num[s[1][j][0]]-(n-1))
                                                                 ^
/in/foo.cc:42:29: warning: array subscript has type 'char' [-Wchar-subscripts]
                     num[t[1]]=num[s[1][i][0]]+num[s[1][j][0]]-(n-1);
                             ^
/in/foo.cc:42:45: warning: array subscript has type 'char' [-Wchar-subscripts]
                     num[t[1]]=num[s[1][i][0]]+num[s[1][j][0]]-(n-1);
                                             ^
/in/foo.cc:42:61: warning: array subscript has type 'char' [-Wchar-subscripts]
                     num[t[1]]=num[s[1][i][0]]+num[s[1][j][0]]-(n-1);
                                                             ^
/in/foo.cc:47:32: warning: array subscript has type 'char' [-Wchar-subscripts]
                     if(num[t[0]]==-1)    know++;
                                ^
/in/foo.cc:49:32: warning: array subscript has type 'char' [-Wchar-subscripts]
                     if(num[t[0]]!=num[s[1][i][0]]+num[s[1][j][0]])
                                ^
/in/foo.cc:49:49: warning: array subscript has type 'char' [-Wchar-subscripts]
                     if(num[t[0]]!=num[s[1][i][0]]+num[s[1][j][0]])
                                                 ^
/in/foo.cc:49:65: warning: array subscript has type 'char' [-Wchar-subscripts]
                     if(num[t[0]]!=num[s[1][i][0]]+num[s[1][j][0]])
                                                                 ^
/in/foo.cc:55:29: warning: array subscript has type 'char' [-Wchar-subscripts]
                     num[t[0]]=num[s[1][i][0]]+num[s[1][j][0]];
                             ^
/in/foo.cc:55:45: warning: array subscript has type 'char' [-Wchar-subscripts]
                     num[t[0]]=num[s[1][i][0]]+num[s[1][j][0]];
                                             ^
/in/foo.cc:55:61: warning: array subscript has type 'char' [-Wchar-subscripts]
                     num[t[0]]=num[s[1][i][0]]+num[s[1][j][0]];
                                                             ^
/in/foo.cc:59:10: warning: unused variable 'c' [-Wunused-variable]
     char c=getchar();
          ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:71:63: warning: array subscript has type 'char' [-Wchar-subscripts]
             if(s[i][j].length()==2&&know==0)    num[s[i][j][0]]=1,know=1;
                                                               ^
/in/foo.cc:80:60: warning: array subscript has type 'char' [-Wchar-subscripts]
     For(i,2,n)    printf("%c=%d ",s[1][i][0],num[s[1][i][0]]);
                                                            ^
/in/foo.cc:64:28: warning: iteration 1000 invokes undefined behavior [-Waggressive-loop-optimizations]
     For(i,1,1001)    num[i]=-1;
                      ~~~~~~^~~
/in/foo.cc:13:33: note: within this loop
 #define For(i,j,k) for(int i=j;i<=k;i++)
                                  
/in/foo.cc:64:9:
     For(i,1,1001)    num[i]=-1;
         ~~~~~                    
/in/foo.cc:64:5: note: in expansion of macro 'For'
     For(i,1,1001)    num[i]=-1;
     ^~~
# 状态 耗时 内存占用
#1 Accepted 2ms 528.0 KiB
#2 Wrong Answer 4ms 444.0 KiB
#3 Wrong Answer 3ms 468.0 KiB
#4 Runtime Error 3ms 368.0 KiB
#5 Wrong Answer 2ms 448.0 KiB
#6 Accepted 3ms 640.0 KiB
#7 Runtime Error 3ms 256.0 KiB
#8 Runtime Error 3ms 324.0 KiB
#9 Runtime Error 1ms 368.0 KiB
#10 Runtime Error 3ms 356.0 KiB

信息

递交者
类型
递交
题目
P1596 加法表
语言
C++
递交时间
2017-05-27 16:10:17
评测时间
2017-05-27 16:10:17
评测机
分数
20
总耗时
29ms
峰值内存
640.0 KiB