/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'bool pd1()':
foo.cpp:18:38: warning: array subscript has type 'char' [-Wchar-subscripts]
     for (llg i=n;i;--i) if (a[b[i][1]]!=-1 && a[b[i][2]]!=-1 && a[b[i][3]]!=-1 && (a[b[i][1]] + a[b[i][2]]) % n != a[b[i][3]] && (a[b[i][1]]+a[b[i][2]]+1) % n!=a[b[i][3]]) return 0;
                                      ^
foo.cpp:18:56: warning: array subscript has type 'char' [-Wchar-subscripts]
     for (llg i=n;i;--i) if (a[b[i][1]]!=-1 && a[b[i][2]]!=-1 && a[b[i][3]]!=-1 && (a[b[i][1]] + a[b[i][2]]) % n != a[b[i][3]] && (a[b[i][1]]+a[b[i][2]]+1) % n!=a[b[i][3]]) return 0;
                                                        ^
foo.cpp:18:74: warning: array subscript has type 'char' [-Wchar-subscripts]
     for (llg i=n;i;--i) if (a[b[i][1]]!=-1 && a[b[i][2]]!=-1 && a[b[i][3]]!=-1 && (a[b[i][1]] + a[b[i][2]]) % n != a[b[i][3]] && (a[b[i][1]]+a[b[i][2]]+1) % n!=a[b[i][3]]) return 0;
                                                                          ^
foo.cpp:18:93: warning: array subscript has type 'char' [-Wchar-subscripts]
     for (llg i=n;i;--i) if (a[b[i][1]]!=-1 && a[b[i][2]]!=-1 && a[b[i][3]]!=-1 && (a[b[i][1]] + a[b[i][2]]) % n != a[b[i][3]] && (a[b[i][1]]+a[b[i][2]]+1) % n!=a[b[i][3]]) return 0;
                                                                                             ^
foo.cpp:18:106: warning: array subscript has type 'char' [-Wchar-subscripts]
     for (llg i=n;i;--i) if (a[b[i][1]]!=-1 && a[b[i][2]]!=-1 && a[b[i][3]]!=-1 && (a[b[i][1]] + a[b[i][2]]) % n != a[b[i][3]] && (a[b[i][1]]+a[b[i][2]]+1) % n!=a[b[i][3]]) return 0;
                                                                                                          ^
foo.cpp:18:125: warning: array subscript has type 'char' [-Wchar-subscripts]
     for (llg i=n;i;--i) if (a[b[i][1]]!=-1 && a[b[i][2]]!=-1 && a[b[i][3]]!=-1 && (a[b[i][1]] + a[b[i][2]]) % n != a[b[i][3]] && (a[b[i][1]]+a[b[i][2]]+1) % n!=a[b[i][3]]) return 0;
                                                                                                                             ^
foo.cpp:18:140: warning: array subscript has type 'char' [-Wchar-subscripts]
     for (llg i=n;i;--i) if (a[b[i][1]]!=-1 && a[b[i][2]]!=-1 && a[b[i][3]]!=-1 && (a[b[i][1]] + a[b[i][2]]) % n != a[b[i][3]] && (a[b[i][1]]+a[b[i][2]]+1) % n!=a[b[i][3]]) return 0;
                                                                                                                                            ^
foo.cpp:18:151: warning: array subscript has type 'char' [-Wchar-subscripts]
     for (llg i=n;i;--i) if (a[b[i][1]]!=-1 && a[b[i][2]]!=-1 && a[b[i][3]]!=-1 && (a[b[i][1]] + a[b[i][2]]) % n != a[b[i][3]] && (a[b[i][1]]+a[b[i][2]]+1) % n!=a[b[i][3]]) return 0;
                                                                                                                                                       ^
foo.cpp:18:170: warning: array subscript has type 'char' [-Wchar-subscripts]
     for (llg i=n;i;--i) if (a[b[i][1]]!=-1 && a[b[i][2]]!=-1 && a[b[i][3]]!=-1 && (a[b[i][1]] + a[b[i][2]]) % n != a[b[i][3]] && (a[b[i][1]]+a[b[i][2]]+1) % n!=a[b[i][3]]) return 0;
                                                                                                                                                                          ^
foo.cpp: In function 'bool pd2()':
foo.cpp:25:20: warning: array subscript has type 'char' [-Wchar-subscripts]
         k=a[b[i][1]]+a[b[i][2]]+k;
                    ^
foo.cpp:25:31: warning: array subscript has type 'char' [-Wchar-subscripts]
         k=a[b[i][1]]+a[b[i][2]]+k;
                               ^
foo.cpp:26:22: warning: array subscript has type 'char' [-Wchar-subscripts]
         if (a[b[i][3]] != k%n) return 0;
                      ^
foo.cpp: In function 'void dfs(long long int)':
foo.cpp:34:18: warning: array subscript has type 'char' [-Wchar-subscripts]
     if (a[b[1][1]]+a[b[1][2]] >= n) return ;
                  ^
foo.cpp:34:29: warning: array subscript has type 'char' [-Wchar-su

信息

递交者
类型
递交
题目
P1099 虫食算
语言
C++
递交时间
2016-09-19 11:43:17
评测时间
2016-09-19 11:43:18
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes