0_0_36518880_24774.cpp: In function 'int main()': 0_0_36518880_24774.cpp:23:17: error: 'y' was not declared in this scope y[++cnt]=c[j].y; ^ 0_0_36518880_24774.cpp:25:18: error: 'y' was not declared in this scope sort(y+1,y+cnt+1); ^