No title (C)

Plaintext - Copy this

1
2
3
4
5
6
7
for (int i = 0; i < n; ++i)
{
    for (int j = i; j < n; ++j)
    {
        cost[i][j] = cost[j][i] = f(location[i]);
    }
}