0_0_37824368_32233.cpp: In member function 'Poly& Poly::cls(int, int)':
0_0_37824368_32233.cpp:104:20: error: invalid use of array with unspecified bounds
memset(a.get() + l, 0, (len) * 4);
^
0_0_37824368_32233.cpp: In member function 'Poly& Poly::NTT(int, int)':
0_0_37824368_32233.cpp:118:36: error: no match for 'operator[]' (operand types are 'intptr {aka std::shared_ptr<int []>}' and 'int')
memset(a.get(), 0, (n) * sizeof a[0]);
^
0_0_37824368_32233.cpp:120:5: error: no match for 'operator[]' (operand types are 'intptr {aka std::shared_ptr<int []>}' and 'int')
a[i] = this->a[rev[n + i]];
^
0_0_37824368_32233.cpp:120:18: error: no match for 'operator[]' (operand types are 'intptr {aka std::shared_ptr<int []>}' and 'int')
a[i] = this->a[rev[n + i]];
^
0_0_37824368_32233.cpp:128:15: error: no match for 'operator[]' (operand types are 'intptr {aka std::shared_ptr<int []>}' and 'int')
int x = a[j + k] % mod;
^
0_0_37824368_32233.cpp:129:27: error: no match for 'operator[]' (operand types are 'intptr {aka std::shared_ptr<int []>}' and 'int')
int y = ((ll)w[k] * a[i + j + k]) % mod;
^
0_0_37824368_32233.cpp:130:7: error: no match for 'operator[]' (operand types are 'intptr {aka std::shared_ptr<int []>}' and 'int')
a[j + k] = (x + y) % mod;
^
0_0_37824368_32233.cpp:131:7: error: no match for 'operator[]' (operand types are 'intptr {aka std::shared_ptr<int []>}' and 'int')
a[i + j + k] = (x - y + mod) % mod;
^
0_0_37824368_32233.cpp: In member function 'Poly& Poly::operator*=(ll)':
0_0_37824368_32233.cpp:151:33: error: no match for 'operator[]' (operand types are 'intptr {aka std::shared_ptr<int []>}' and 'int')
for (int i = 0; i < len; i++)a[i] = (a[i] * x) % mod;
^
0_0_37824368_32233.cpp:151:41: error: no match for 'operator[]' (operand types are 'intptr {aka std::shared_ptr<int []>}' and 'int')
for (int i = 0; i < len; i++)a[i] = (a[i] * x) % mod;
^
0_0_37824368_32233.cpp: In member function 'Poly& Poly::vmul(const Poly&)':
0_0_37824368_32233.cpp:156:33: error: no match for 'operator[]' (operand types are 'intptr {aka std::shared_ptr<int []>}' and 'int')
for (int i = 0; i < len; i++)a[i] = (ll)a[i] * b.a[i] % mod;
^
0_0_37824368_32233.cpp:156:44: error: no match for 'operator[]' (operand types are 'intptr {aka std::shared_ptr<int []>}' and 'int')
for (int i = 0; i < len; i++)a[i] = (ll)a[i] * b.a[i] % mod;
^
0_0_37824368_32233.cpp:156:53: error: no match for 'operator[]' (operand types are 'const intptr {aka const std::shared_ptr<int []>}' and 'int')
for (int i = 0; i < len; i++)a[i] = (ll)a[i] * b.a[i] % mod;
^
0_0_37824368_32233.cpp: In member function 'void Poly::operator^=(int&)':
0_0_37824368_32233.cpp:165:5: error: no match for 'operator[]' (operand types are 'intptr {aka std::shared_ptr<int []>}' and 'int')
a[j] = qpow(a[j], y);
^
0_0_37824368_32233.cpp:165:17: error: no match for 'operator[]' (operand types are 'intptr {aka std::shared_ptr<int []>}' and 'int')
a[j] = qpow(a[j], y);
^
0_0_37824368_32233.cpp: In function 'const Poly& cal(int, int)':
0_0_37824368_32233.cpp:185:38: error: no match for 'operator[]' (operand types are 'intptr {aka std::shared_ptr<int []>}' and 'int')
memset(a.get(), 0, (len) * sizeof a[0]);
^
0_0_37824368_32233.cpp:189:5: error: no match for 'operator[]' (operand types are 'intptr {aka std::shared_ptr<int []>}' and 'int')
a[j] = (qiu(h[l], j));
^
0_0_37824368_32233.cpp: In function 'void solve()':
0_0_37824368_32233.cpp:233:16: error: no match for 'operator[]' (operand types are 'intptr {aka std::shared_ptr<int []>}' and 'int')
cout << ans.a[k] << endl;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:67:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:80,
from 0_0_37824368_32233.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/aligned_buffer.h: In instantiation of 'struct __gnu_cxx::__aligned_buffer<int []>':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/shared_ptr_base.h:505:35: required from 'class std::_Sp_counted_ptr_inplace<int [], std::allocator<int []>, (__gnu_cxx::_Lock_policy)2u>::_Impl'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/shared_ptr_base.h:552:13: required from 'class std::_Sp_counted_ptr_inplace<int [], std::allocator<int []>, (__gnu_cxx::_Lock_policy)2u>'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/shared_ptr_base.h:621:14: required from 'std::__shared_count<_Lp>::__shared_count(std::_Sp_make_shared_tag, _Tp*, const _Alloc&, _Args&& ...) [with _Tp = int []; _Alloc = std::allocator<int []>; _Args = {int}; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/shared_ptr_base.h:1090:35: required from 'std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<int []>; _Args = {int}; _Tp = int []; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/shared_ptr.h:316:64: required from 'std::shared_ptr<_Tp>::shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<int []>; _Args = {int}; _Tp = int []]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/shared_ptr.h:588:39: required from 'std::shared_ptr<_Tp1> std::allocate_shared(const _Alloc&, _Args&& ...) [with _Tp = int []; _Alloc = std::allocator<int []>; _Args = {int}]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/shared_ptr.h:604:42: required from 'std::shared_ptr<_Tp1> std::make_shared(_Args&& ...) [with _Tp = int []; _Args = {int}]'
0_0_37824368_32233.cpp:117:81: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/aligned_buffer.h:44:34: error: invalid application of 'sizeof' to incomplete type 'int []'
: std::aligned_storage<sizeof(_Tp), std::alignment_of<_Tp>::value>
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/aligned_buffer.h:44:34: error: invalid application of 'sizeof' to incomplete type 'int []'
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/aligned_buffer.h: In instantiation of 'void* __gnu_cxx::__aligned_buffer<_Tp>::_M_addr() [with _Tp = int []]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/aligned_buffer.h:64:42: required from '_Tp* __gnu_cxx::__aligned_buffer<_Tp>::_M_ptr() [with _Tp = int []]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/shared_ptr_base.h:550:65: required from '_Tp* std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_M_ptr() [with _Tp = int []; _Alloc = std::allocator<int []>; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/shared_ptr_base.h:515:52: required from 'std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_Sp_counted_ptr_inplace(_Alloc, _Args&& ...) [with _Args = {int}; _Tp = int []; _Alloc = std::allocator<int []>; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/new_allocator.h:120:4: required from 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::_Sp_counted_ptr_inplace<int [], std::allocator<int []>, (__gnu_cxx::_Lock_policy)2u>; _Args = {const std::allocator<int []>, int}; _Tp = std::_Sp_counted_ptr_inplace<int [], std::allocator<int []>, (__gnu_cxx::_Lock_policy)2u>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/alloc_traits.h:253:4: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/shared_ptr_base.h:620:37: required from 'std::__shared_count<_Lp>::__shared_count(std::_Sp_make_shared_tag, _Tp*, const _Alloc&, _Args&& ...) [with _Tp = int []; _Alloc = std::allocator<int []>; _Args = {int}; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/shared_ptr_base.h:1090:35: required from 'std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<int []>; _Args = {int}; _Tp = int []; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/shared_ptr.h:316:64: required from 'std::shared_ptr<_Tp>::shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<int []>; _Args = {int}; _Tp = int []]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/shared_ptr.h:588:39: required from 'std::shared_ptr<_Tp1> std::allocate_shared(const _Alloc&, _Args&& ...) [with _Tp = int []; _Alloc = std::allocator<int []>; _Args = {int}]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/shared_ptr.h:604:42: required from 'std::shared_ptr<_Tp1> std::make_shared(_Args&& ...) [with _Tp = int []; _Args = {int}]'
0_0_37824368_32233.cpp:117:81: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/aligned_buffer.h:53:35: error: using invalid field '__gnu_cxx::__aligned_buffer<_Tp>::_M_storage'
return static_cast<void*>(&_M_storage);
|