Main.cc: In function ‘int main()’: Main.cc:96:10: error: ‘A’ was not declared in this scope cin>>A[i].x>>A[i].y,p[i]=i; ^