0_0_16282312_16333.cpp:33:10: error: 'LL pow [35]' redeclared as different kind of symbol
LL pow[35] ;
^
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_16282312_16333.cpp:6:
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_16282312_16333.cpp: In function 'void init()':
0_0_16282312_16333.cpp:55:7: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
pow[0] = 1 ;
^
0_0_16282312_16333.cpp:56:26: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
rep ( i , 1 , 35 ) pow[i] = pow[i - 1] * 3 ;
^
0_0_16282312_16333.cpp:56:39: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
rep ( i , 1 , 35 ) pow[i] = pow[i - 1] * 3 ;
^
0_0_16282312_16333.cpp: In function 'LL match(LL, LL)':
0_0_16282312_16333.cpp:60:42: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
rep ( i , 0 , k ) res += ( 3 - x / pow[i] % 3 ) % 3 * pow[i] ;
^
0_0_16282312_16333.cpp:60:61: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
rep ( i , 0 , k ) res += ( 3 - x / pow[i] % 3 ) % 3 * pow[i] ;
^
0_0_16282312_16333.cpp: In function 'LL add(LL, LL, LL)':
0_0_16282312_16333.cpp:65:38: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
rep ( i , 0 , k ) res += ( x / pow[i] % 3 + y / pow[i] % 3 ) % 3 * pow[i] ;
^
0_0_16282312_16333.cpp:65:55: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
rep ( i , 0 , k ) res += ( x / pow[i] % 3 + y / pow[i] % 3 ) % 3 * pow[i] ;
^
0_0_16282312_16333.cpp:65:74: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
rep ( i , 0 , k ) res += ( x / pow[i] % 3 + y / pow[i] % 3 ) % 3 * pow[i] ;
^
0_0_16282312_16333.cpp: In function 'void solve()':
0_0_16282312_16333.cpp:156:29: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
val[i] += cnt % 3 * pow[j] ;
^
|