/in/foo.cc: In function 'void solve(int, int)':
/in/foo.cc:29:35: error: 'struct point' has no member named 'r'
p[l].y=f[l]/(p[l].b+p[l].a*p[l].r);
^
/in/foo.cc:30:22: error: 'struct point' has no member named 'r'
p[l].x=p[l].y*p[l].r;
^
/in/foo.cc:41:22: error: 'sta' was not declared in this scope
while(top>1&&slope(sta[top-1],sta[top])<slope(sta[top-1],i)) top--;
^~~
/in/foo.cc:41:41: error: 'slope' was not declared in this scope
while(top>1&&slope(sta[top-1],sta[top])<slope(sta[top-1],i)) top--;
^
/in/foo.cc:42:3: error: 'sta' was not declared in this scope
sta[++top]=i;
^~~
/in/foo.cc:44:2: error: 'sta' was not declared in this scope
sta[++top]=0;
^~~
/in/foo.cc:46:37: error: 'slope' was not declared in this scope
while(j<top&&slope(sta[j],sta[j+1])>p[i].k) j++;
^
/in/foo.cc:47:58: error: 'update' was not declared in this scope
update(f[p[i].id],p[sta[j]].x*p[i].a+p[sta[j]].y*p[i].b);
^