/ LZOJ /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:99:4: error: no match for 'operator[]' (operand types are 'Polynomial' and 'int')
   a[i] = (i & 1 == 1) ? mod - inv[i] : inv[i];
    ^
/in/foo.cc:99:17: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   a[i] = (i & 1 == 1) ? mod - inv[i] : inv[i];
               ~~^~~~
/in/foo.cc:100:4: error: no match for 'operator[]' (operand types are 'Polynomial' and 'int')
   b[i] = quick_pow(i, n, mod) * inv[i] % mod;
    ^
/in/foo.cc:102:8: error: cannot convert 'Polynomial' to 'll* {aka long long int*}' in assignment
  a.a = a;
        ^
/in/foo.cc:103:8: error: cannot convert 'Polynomial' to 'll* {aka long long int*}' in assignment
  b.a = b;
        ^

信息

递交者
类型
递交
题目
P1171 Leasier的珠子
语言
C++
递交时间
2020-06-06 19:50:35
评测时间
2020-06-06 19:50:35
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes