0_0_16967104_17113.cpp:561:1: error: stray '\317' in program
下面是官方的题解
^
0_0_16967104_17113.cpp:561:1: error: stray '\302' in program
0_0_16967104_17113.cpp:561:1: error: stray '\303' in program
0_0_16967104_17113.cpp:561:1: error: stray '\346' in program
0_0_16967104_17113.cpp:561:1: error: stray '\312' in program
0_0_16967104_17113.cpp:561:1: error: stray '\307' in program
0_0_16967104_17113.cpp:561:1: error: stray '\271' in program
0_0_16967104_17113.cpp:561:1: error: stray '\331' in program
0_0_16967104_17113.cpp:561:1: error: stray '\267' in program
0_0_16967104_17113.cpp:561:1: error: stray '\275' in program
0_0_16967104_17113.cpp:561:1: error: stray '\265' in program
0_0_16967104_17113.cpp:561:1: error: stray '\304' in program
0_0_16967104_17113.cpp:561:1: error: stray '\314' in program
0_0_16967104_17113.cpp:561:1: error: stray '\342' in program
0_0_16967104_17113.cpp:561:1: error: stray '\275' in program
0_0_16967104_17113.cpp:561:1: error: stray '\342' in program
0_0_16967104_17113.cpp:562:1: error: stray '\323' in program
用的是两个231以内的模数分别FFT,最后用中国剩余定理合并。
^
0_0_16967104_17113.cpp:562:1: error: stray '\303' in program
0_0_16967104_17113.cpp:562:1: error: stray '\265' in program
0_0_16967104_17113.cpp:562:1: error: stray '\304' in program
0_0_16967104_17113.cpp:562:1: error: stray '\312' in program
0_0_16967104_17113.cpp:562:1: error: stray '\307' in program
0_0_16967104_17113.cpp:562:1: error: stray '\301' in program
0_0_16967104_17113.cpp:562:1: error: stray '\275' in program
0_0_16967104_17113.cpp:562:1: error: stray '\270' in program
0_0_16967104_17113.cpp:562:1: error: stray '\366' in program
0_0_16967104_17113.cpp:562:1: error: stray '\322' in program
0_0_16967104_17113.cpp:562:1: error: stray '\324' in program
0_0_16967104_17113.cpp:562:1: error: stray '\304' in program
0_0_16967104_17113.cpp:562:1: error: stray '\332' in program
0_0_16967104_17113.cpp:562:1: error: stray '\265' in program
0_0_16967104_17113.cpp:562:1: error: stray '\304' in program
0_0_16967104_17113.cpp:562:1: error: stray '\304' in program
0_0_16967104_17113.cpp:562:1: error: stray '\243' in program
0_0_16967104_17113.cpp:562:1: error: stray '\312' in program
0_0_16967104_17113.cpp:562:1: error: stray '\375' in program
0_0_16967104_17113.cpp:562:1: error: stray '\267' in program
0_0_16967104_17113.cpp:562:1: error: stray '\326' in program
0_0_16967104_17113.cpp:562:1: error: stray '\261' in program
0_0_16967104_17113.cpp:562:1: error: stray '\360' in program
0_0_16967104_17113.cpp:562:1: error: stray '\243' in program
0_0_16967104_17113.cpp:562:1: error: stray '\254' in program
0_0_16967104_17113.cpp:562:1: error: stray '\327' in program
0_0_16967104_17113.cpp:562:1: error: stray '\356' in program
0_0_16967104_17113.cpp:562:1: error: stray '\272' in program
0_0_16967104_17113.cpp:562:1: error: stray '\363' in program
0_0_16967104_17113.cpp:562:1: error: stray '\323' in program
0_0_16967104_17113.cpp:562:1: error: stray '\303' in program
0_0_16967104_17113.cpp:562:1: error: stray '\326' in program
0_0_16967104_17113.cpp:562:1: error: stray '\320' in program
0_0_16967104_17113.cpp:562:1: error: stray '\271' in program
0_0_16967104_17113.cpp:562:1: error: stray '\372' in program
0_0_16967104_17113.cpp:562:1: error: stray '\312' in program
0_0_16967104_17113.cpp:562:1: error: stray '\243' in program
0_0_16967104_17113.cpp:562:1: error: stray '\323' in program
0_0_16967104_17113.cpp:562:1: error: stray '\340' in program
0_0_16967104_17113.cpp:562:1: error: stray '\266' in program
0_0_16967104_17113.cpp:562:1: error: stray '\250' in program
0_0_16967104_17113.cpp:562:1: error: stray '\300' in program
0_0_16967104_17113.cpp:562:1: error: stray '\355' in program
0_0_16967104_17113.cpp:562:1: error: stray '\272' in program
0_0_16967104_17113.cpp:562:1: error: stray '\317' in program
0_0_16967104_17113.cpp:562:1: error: stray '\262' in program
0_0_16967104_17113.cpp:562:1: error: stray '\242' in program
0_0_16967104_17113.cpp:562:1: error: stray '\241' in program
0_0_16967104_17113.cpp:562:1: error: stray '\243' in program
0_0_16967104_17113.cpp:185:1: error: expected unqualified-id before numeric constant
1
^
0_0_16967104_17113.cpp:571:5: error: redefinition of 'int n'
int n, s[110000];
^
0_0_16967104_17113.cpp:130:5: note: 'int n' previously declared here
int n;
^
0_0_16967104_17113.cpp:572:21: error: conflicting declaration 'long long int ans [140000]'
long long ans[140000], a[140000], b[140000], c[140000], x[140000], w[140000];
^
0_0_16967104_17113.cpp:131:16: note: previous declaration as 'll ans [250050]'
ll val[MAXN*5],ans[MAXN*5];
^
0_0_16967104_17113.cpp:572:54: error: conflicting declaration 'long long int c [140000]'
long long ans[140000], a[140000], b[140000], c[140000], x[140000], w[140000];
^
0_0_16967104_17113.cpp:106:26: note: previous declaration as 'Complex c [250050]'
}las[MAXN*5],pre[MAXN*5],c[MAXN*5];
^
0_0_16967104_17113.cpp:573:20: error: conflicting declaration 'long long int pu [110000]'
long long pu[110000];
^
0_0_16967104_17113.cpp:132:4: note: previous declaration as 'll pu [250050]'
ll pu[MAXN*5];
^
0_0_16967104_17113.cpp: In function 'void doit()':
0_0_16967104_17113.cpp:615:14: error: no match for 'operator=' (operand types are 'Complex' and 'long long int')
c[i] = Mul(a[i], b[i]);
^
0_0_16967104_17113.cpp:615:14: note: candidates are:
0_0_16967104_17113.cpp:89:8: note: Complex& Complex::operator=(const Complex&)
struct Complex
^
0_0_16967104_17113.cpp:89:8: note: no known conversion for argument 1 from 'long long int' to 'const Complex&'
0_0_16967104_17113.cpp:89:8: note: Complex& Complex::operator=(Complex&&)
0_0_16967104_17113.cpp:89:8: note: no known conversion for argument 1 from 'long long int' to 'Complex&&'
0_0_16967104_17113.cpp:616:14: error: cannot convert 'Complex*' to 'long long int*' for argument '1' to 'void DFT1(long long int*, int)'
DFT1(c, n);
^
0_0_16967104_17113.cpp:618:27: error: cannot convert 'Complex' to 'long long int' for argument '1' to 'long long int Mul(long long int, long long int)'
c[i] = Mul(c[i], S);
^
0_0_16967104_17113.cpp:620:26: error: no match for 'operator+' (operand types are 'll {aka long long int}' and 'Complex')
ans[i] = (ans[i] + c[i]) % P;
^
0_0_16967104_17113.cpp:620:26: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
from 0_0_16967104_17113.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:334:5: note: template<class _Iterator> std::reverse_iterator<_Iterator> std::operator+(typename std::reverse_iterator<_Iterator>::difference_type, const std::reverse_iterator<_Iterator>&)
operator+(typename reverse_iterator<_Iterator>::difference_type __n,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:334:5: note: template argument deduction/substitution failed:
0_0_16967104_17113.cpp:620:31: note: 'Complex' is not derived from 'const std::reverse_iterator<_Iterator>'
ans[i] = (ans[i] + c[i]) % P;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
from 0_0_16967104_17113.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1135:5: note: template<class _Iterator> std::move_iterator<_Iterator> std::operator+(typename std::move_iterator<_Iterator>::difference_type, const std::move_iterator<_Iterator>&)
operator+(typename move_iterator<_Iterator>::difference_type __n,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1135:5: note: template argument deduction/substitution failed:
0_0_16967104_17113.cpp:620:31: note: 'Complex' is not derived from 'const std::move_iterator<_Iterator>'
ans[i] = (ans[i] + c[i]) % P;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_16967104_17113.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2384:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2384:5: note: template argument deduction/substitution failed:
0_0_16967104_17
|