/in/foo.cc:15:10: error: expected unqualified-id before numeric constant
int d,t;360
^~~
/in/foo.cc: In function 'bool cmp(node, node)':
/in/foo.cc:20:8: error: 'struct node' has no member named 'p'
if(as.p==bs.p)
^
/in/foo.cc:20:14: error: 'struct node' has no member named 'p'
if(as.p==bs.p)
^
/in/foo.cc:24:12: error: 'struct node' has no member named 'p'
return as.p<bs.p;
^
/in/foo.cc:24:17: error: 'struct node' has no member named 'p'
return as.p<bs.p;
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:34:8: error: 'struct node' has no member named 'p'
a[i].p=(double)a[i].t/a[i].d;
^