0_0_30409666_15625.cpp: In function 'int dist(int, int)': 0_0_30409666_15625.cpp:137:67: error: 'u' was not declared in this scope return (abs(x[p1]-x[p2])+abs(y[p1]-y[p2])+abs(z[p1]-z[p2]))*b+ z[u]>=z[v]?0:c; ^