foo.cc: In function 'bool judge()':
foo.cc:15:26: warning: array subscript has type 'char' [-Wchar-subscripts]
if(sum[calc[1][i]]>=0&&sum[calc[2][i]]>=0&&sum[calc[3][i]]>=0)
^
foo.cc:15:46: warning: array subscript has type 'char' [-Wchar-subscripts]
if(sum[calc[1][i]]>=0&&sum[calc[2][i]]>=0&&sum[calc[3][i]]>=0)
^
foo.cc:15:66: warning: array subscript has type 'char' [-Wchar-subscripts]
if(sum[calc[1][i]]>=0&&sum[calc[2][i]]>=0&&sum[calc[3][i]]>=0)
^
foo.cc:17:36: warning: array subscript has type 'char' [-Wchar-subscripts]
int temp=sum[calc[1][i]]+sum[calc[2][i]];
^
foo.cc:17:52: warning: array subscript has type 'char' [-Wchar-subscripts]
int temp=sum[calc[1][i]]+sum[calc[2][i]];
^
foo.cc:18:38: warning: array subscript has type 'char' [-Wchar-subscripts]
if(temp%n!=sum[calc[3][i]]&&(temp+1)%n!=sum[calc[3][i]])return false;
^
foo.cc:18:67: warning: array subscript has type 'char' [-Wchar-subscripts]
if(temp%n!=sum[calc[3][i]]&&(temp+1)%n!=sum[calc[3][i]])return false;
^
foo.cc: In function 'void search_3(int)':
foo.cc:26:28: warning: array subscript has type 'char' [-Wchar-subscripts]
int temp=sum[calc[1][p]]+sum[calc[2][p]]+up[p+1];
^
foo.cc:26:44: warning: array subscript has type 'char' [-Wchar-subscripts]
int temp=sum[calc[1][p]]+sum[calc[2][p]]+up[p+1];
^
foo.cc:27:22: warning: array subscript has type 'char' [-Wchar-subscripts]
if(sum[calc[3][p]]>=0)
^
foo.cc:29:32: warning: array subscript has type 'char' [-Wchar-subscripts]
if(temp==sum[calc[3][p]])search_1(p-1);
^
foo.cc:30:39: warning: array subscript has type 'char' [-Wchar-subscripts]
else if(temp-n==sum[calc[3][p]])
^
foo.cc:47:27: warning: array subscript has type 'char' [-Wchar-subscripts]
sum[calc[3][p]]=temp;
^
foo.cc:50:27: warning: array subscript has type 'char' [-Wchar-subscripts]
sum[calc[3][p]]=-1;
^
foo.cc: In function 'void search_2(int)':
foo.cc:59:22: warning: array subscript has type 'char' [-Wchar-subscripts]
if(sum[calc[2][p]]>=0)search_3(p);
^
foo.cc:67:31: warning: array subscript has type 'char' [-Wchar-subscripts]
sum[calc[2][p]]=i;
^
foo.cc:70:31: warning: array subscript has type 'char' [-Wchar-subscripts]
sum[calc[2][p]]=-1;
^
foo.cc: In function 'void search_1(int)':
foo.cc:84:22: warning: array subscript has type 'char' [-Wchar-subscripts]
if(sum[calc[1][p]]>=0)search_2(p);
^
foo.cc:92:31: warning: array subscript has type 'char' [-Wchar-subscripts]
sum[calc[1][p]]=i;
^
foo.cc:95:31: warning: array subscript has type 'char' [-Wchar-subscripts]
sum[calc[1][p]]=-1;
^
自豪的采用jd5进行评测(github.com/masnn/jd5)