/in/foo.cc: In function 'int main()':
/in/foo.cc:16:39: error: invalid types 'int[int]' for array subscript
if(dpw[j]>dpw[j-t[i]]+c[i])dpc[i][j]=dpc[i-1][j];
^
/in/foo.cc:16:51: error: invalid types 'int[int]' for array subscript
if(dpw[j]>dpw[j-t[i]]+c[i])dpc[i][j]=dpc[i-1][j];
^
/in/foo.cc:17:39: error: invalid types 'int[int]' for array subscript
if(dpw[j]<dpw[j-t[i]]+c[i])dpc[i][j]=dpc[i-1][j-t[i]];
^
/in/foo.cc:17:56: error: invalid types 'int[int]' for array subscript
if(dpw[j]<dpw[j-t[i]]+c[i])dpc[i][j]=dpc[i-1][j-t[i]];
^
/in/foo.cc:18:40: error: invalid types 'int[int]' for array subscript
if(dpw[j]==dpw[j-t[i]]+c[i])dpc[i][j]=dpc[i-1][j]+dpc[i-1][j-t[i]];
^
/in/foo.cc:18:52: error: invalid types 'int[int]' for array subscript
if(dpw[j]==dpw[j-t[i]]+c[i])dpc[i][j]=dpc[i-1][j]+dpc[i-1][j-t[i]];
^
/in/foo.cc:18:69: error: invalid types 'int[int]' for array subscript
if(dpw[j]==dpw[j-t[i]]+c[i])dpc[i][j]=dpc[i-1][j]+dpc[i-1][j-t[i]];
^