/ LZOJ /

记录详情

Compile Error

/in/foo.cc: In function 'Polynomial quick_mul(Polynomial, Polynomial, int&)':
/in/foo.cc:84:13: error: request for member 'a' in 'ans_array', which is of non-class type 'll [800007] {aka long long int [800007]}'
   ans_array.a[i] = a.a[i] * b.a[i] % mod;
             ^
/in/foo.cc:86:6: error: 'struct Polynomial' has no member named 'ans'
  ans.ans = ans_array;
      ^~~
/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:49:28
评测时间
2020-06-06 19:49:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes