/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:32:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(x=y&&op==2) {ans++;continue;}
                ^
/in/foo.cc:36:29: error: expected ')' before '{' token
    if(getf(x)==getf(y+2*n)  {ans++;continue;}
                             ^
/in/foo.cc:39:15: error: expected ')' before ';' token
    merge(x+2*n;y+2*n);
               ^
/in/foo.cc:39:21: error: expected ';' before ')' token
    merge(x+2*n;y+2*n);
                     ^
/in/foo.cc:39:17: warning: statement has no effect [-Wunused-value]
    merge(x+2*n;y+2*n);
                ~^~~~
/in/foo.cc:44:29: error: expected ')' before '{' token
    if(getf(x)==getf(y+2*n)  {ans++;continue;}
                             ^

信息

递交者
类型
递交
题目
P1531 食物链
语言
C++
递交时间
2019-02-15 20:42:26
评测时间
2019-02-15 20:42:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes