Optimization objective in k-means

here in this slide x[i] refers to the training example and it is said if it is x[10] then check for c[10] .
Here c is the index of cluster.
How can we say x[10] is assigned to c[10]. it might be assigned to c[9] also .
Can anyone explain.

This might be referring to the starting point when some assignments have to be made which can of course change as the algorithm progresses on.

And I also think that the i in the c(i) here is from 1…K (number of clusters) but the i in the x(i) is the number of examples, they are not the same i’s.

In K-means, each training example is typically assigned to any single cluster’s centroid only.