0_0_22634630_25668.cpp:46:53: error: 'int pow [9]' redeclared as different kind of symbol
int f[SN][SM], a[SN], all, flag[SN], ans[SN], pow[SN], 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_22634630_25668.cpp:3:
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_22634630_25668.cpp: In function 'int main()':
0_0_22634630_25668.cpp:73:11: error: assignment of function 'double pow(double, double)'
pow[0] = 1, x = n - sz + 1, f[0][0] = 1;
^
0_0_22634630_25668.cpp:73:11: error: cannot convert 'int' to 'double(double, double)' in assignment
0_0_22634630_25668.cpp:74:39: error: invalid operands of types 'double(double, double)' and 'int' to binary 'operator*'
FOR(i, 1, x) pow[i] = pow[i - 1] * sz;
^
0_0_22634630_25668.cpp:81:23: error: invalid conversion from 'double (*)(double, double)' to 'int' [-fpermissive]
REP(lst, 0, pow[x]) if(f[column - 1][lst]) {
^
0_0_22634630_25668.cpp:8:50: note: in definition of macro 'REP'
#define REP(i, l, r) for(int i = (l), i##_end = (r); i < i##_end; ++i)
^
0_0_22634630_25668.cpp:84:25: error: invalid operands of types 'int' and 'double(double, double)' to binary 'operator/'
y = lst / pow[row] % sz;
^
0_0_22634630_25668.cpp:88:24: error: invalid operands of types 'int' and 'double(double, double)' to binary 'operator*'
z += y * pow[row];
^
0_0_22634630_25668.cpp:95:21: error: invalid conversion from 'double (*)(double, double)' to 'int' [-fpermissive]
REP(sta, 0, pow[x]) ans[sz] = F(ans[sz] + f[n][sta]);
^
0_0_22634630_25668.cpp:8:50: note: in definition of macro 'REP'
#define REP(i, l, r) for(int i = (l), i##_end = (r); i < i##_end; ++i)
^
|