The type of the expression must be an array type but it resolved to int

void tisknuti(){
  for(int df=0;df<indexX+1;df++){
  poziceXStr[df]=str(poziceX[df]);
  }