0_0_19879153_24989.cpp:9:11: error: 'int pow [12]' redeclared as different kind of symbol
int pow[12],n,m;
^
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_19879153_24989.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_19879153_24989.cpp: In function 'int main()':
0_0_19879153_24989.cpp:13:7: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
pow[0]=1; F(i,1,11) pow[i]=pow[i-1]*3;
^
0_0_19879153_24989.cpp:13:27: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
pow[0]=1; F(i,1,11) pow[i]=pow[i-1]*3;
^
0_0_19879153_24989.cpp:13:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
pow[0]=1; F(i,1,11) pow[i]=pow[i-1]*3;
^
0_0_19879153_24989.cpp:24:22: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
F(i,0,n-1) dp[pow[i]][i]=0;
^
0_0_19879153_24989.cpp:25:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
F(i,0,pow[n]-1)
^
0_0_19879153_24989.cpp:6:34: note: in definition of macro 'F'
#define F(i,j,k) for (int i=j;i<=k;++i)
^
0_0_19879153_24989.cpp:28:20: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if ((i%pow[k+1])/pow[k]<2)
^
0_0_19879153_24989.cpp:28:28: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if ((i%pow[k+1])/pow[k]<2)
^
0_0_19879153_24989.cpp:29:17: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
dp[i+pow[k]][k]=min(dp[i+pow[k]][k],dp[i][j]+map[j][k]);
^
0_0_19879153_24989.cpp:29:37: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
dp[i+pow[k]][k]=min(dp[i+pow[k]][k],dp[i][j]+map[j][k]);
^
0_0_19879153_24989.cpp:31:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
F(i,0,pow[n]-1)
^
0_0_19879153_24989.cpp:6:34: note: in definition of macro 'F'
#define F(i,j,k) for (int i=j;i<=k;++i)
^
0_0_19879153_24989.cpp:34:29: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
F(j,0,n-1) if ((i%pow[j+1])/pow[j]) continue;
^
0_0_19879153_24989.cpp:34:37: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
F(j,0,n-1) if ((i%pow[j+1])/pow[j]) continue;
^
|