/in/foo.cc: In function 'int main()':
/in/foo.cc:25:37: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int (*)[1005]' [-Wformat=]
For(i,1,n) scanf("%d",&t[i]);
^
/in/foo.cc:32:21: error: invalid operands of types 'int' and 'int [1005]' to binary 'operator%'
if(i%t[j]!=0) f[i][j]|=f[i-1][j-1],f[i][j]|=f[i-1][j];
~^~~~~
/in/foo.cc:33:29: error: invalid operands of types 'int' and 'int [1005]' to binary 'operator%'
if(j>1) if(i%t[j-1]!=0) f[i][j-1]|=f[i-1][j];
~^~~~~~~