adriatic.cpp: In function 'int main()':
adriatic.cpp:28:50: error: 'struct node' has no member named 'i'
way[p[i].id].push_back(p[pos[y]].i);
^
adriatic.cpp:20:16: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
adriatic.cpp:21:66: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=1;i<=n;i++) scanf("%d%d",&p[i].x,&p[i].y), p[i].id = i;
^