0_0_15062587_30503.cpp:11:9: error: 'll pow [100027]' redeclared as different kind of symbol
ll pow[N], a[N], b[N], vis[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:44:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38,
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_15062587_30503.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:151:18: note: previous declaration 'double pow(double, double)'
double __cdecl pow(double _X,double _Y);
^
0_0_15062587_30503.cpp: In function 'void pow_init()':
0_0_15062587_30503.cpp:14:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
pow[0] = 1LL;
^
0_0_15062587_30503.cpp:15:37: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
for(int i = 1; i < N; ++i) pow[i] = (pow[i-1] + pow[i-1]) % M;
^
0_0_15062587_30503.cpp:15:49: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
for(int i = 1; i < N; ++i) pow[i] = (pow[i-1] + pow[i-1]) % M;
^
0_0_15062587_30503.cpp:15:60: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
for(int i = 1; i < N; ++i) pow[i] = (pow[i-1] + pow[i-1]) % M;
^
0_0_15062587_30503.cpp: In function 'int main()':
0_0_15062587_30503.cpp:35:41: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
ans = (ans + (a[i] * pow[n-1]) % M) % M;
^
0_0_15062587_30503.cpp:37:46: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
ans = (ans - ((((vis[x] * pow[n-i]) % M) * a[i]) % M) + M) % M;
^
0_0_15062587_30503.cpp:38:39: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
vis[x] = (vis[x] + pow[i-1]) % M;
^
|