/ Vijos /

记录详情

Compile Error

/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);
                                                          ^

信息

递交者
类型
递交
题目
P1508 货币兑换
语言
C++
递交时间
2017-06-29 19:36:23
评测时间
2017-06-29 19:36:23
评测机
分数
0
总耗时
283ms
峰值内存
36.391 MiB