/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void add(int, ll)':
/in/foo.cc:38:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
     if(x=top[x])up[f[x]]+=p*(size[f[x]]-size[x]),x=f[x];
                ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:49:3: error: 'cout' was not declared in this scope
   cout.precision(6);
   ^~~~
/in/foo.cc:57:13: error: 'fixed' was not declared in this scope
       cout<<fixed<<(double)(up[x]+ask(loc[x],0)*c[x]+ask(loc[x],1)*down[x])/down[x]*2<<"\n";;
             ^~~~~

信息

递交者
类型
递交
题目
P1887 Falsita(Disillusioning & Shinrein)
语言
C++
递交时间
2018-05-02 01:32:57
评测时间
2018-05-02 01:32:57
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes