F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_17545620_26859.cpp:15:40: error: 'int pow [1000005][2]' redeclared as different kind of symbol
 int n, m, t, p, q, Case, pow[1000005][2], Hash_Sky[N][N][2], Hash_res[N][N][2], Hash_star[2];
                                        ^
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_17545620_26859.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_17545620_26859.cpp: In function 'int Get(int, int, int, int, int)':
0_0_17545620_26859.cpp:21:89: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
  return (Hash_Sky[x][y_1][id] + Mod - ((LL) Hash_Sky[x][y_0 - 1][id] * pow[y_1 - y_0 + 1][id]) % Mod) % Mod;
                                                                                         ^
0_0_17545620_26859.cpp: In function 'int main()':
0_0_17545620_26859.cpp:26:7: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
  pow[0][0] = pow[0][1] = 1;
       ^
0_0_17545620_26859.cpp:26:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
  pow[0][0] = pow[0][1] = 1;
                   ^
0_0_17545620_26859.cpp:29:8: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   pow[i][0] = pow[i - 1][0] * Base % Mod0;
        ^
0_0_17545620_26859.cpp:29:24: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   pow[i][0] = pow[i - 1][0] * Base % Mod0;
                        ^
0_0_17545620_26859.cpp:30:8: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   pow[i][1] = pow[i - 1][1] * Base % Mod1;
        ^
0_0_17545620_26859.cpp:30:24: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   pow[i][1] = pow[i - 1][1] * Base % Mod1;
                        ^
0_0_17545620_26859.cpp:50:57: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
      Hash_res[i][j][0] = ((LL) Hash_res[i][j][0] * pow[p][0] + Get(0, _i, j, j + q - 1, Mod0)) % Mod0;
                                                         ^
0_0_17545620_26859.cpp:51:57: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
      Hash_res[i][j][1] = ((LL) Hash_res[i][j][1] * pow[p][1] + Get(1, _i, j, j + q - 1, Mod1)) % Mod1;
                                                         ^
0_0_17545620_26859.cpp:55:121: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
      Hash_res[i][j][0] = ((LL) (Hash_res[i - 1][j][0] + Mod0 - ((LL) Get(0, i - 1, j, j + q - 1, Mod0) * pow[p * (q - 1)][0]) % Mod0) * pow[p][0] + Get(0, i + p - 1, j, j + q - 1, Mod0)) % Mod0;
                                                                                                                         ^
0_0_17545620_26859.cpp:55:142: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
      Hash_res[i][j][0] = ((LL) (Hash_res[i - 1][j][0] + Mod0 - ((LL) Get(0, i - 1, j, j + q - 1, Mod0) * pow[p * (q - 1)][0]) % Mod0) * pow[p][0] + Get(0, i + p - 1, j, j + q - 1, Mod0)) % Mod0;
                                                                                                                                              ^
0_0_17545620_26859.cpp:56:121: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
      Hash_res[i][j][1] = ((LL) (Hash_res[i - 1][j][1] + Mod1 - ((LL) Get(1, i - 1, j, j + q - 1, Mod1) * pow[p * (q - 1)][1]) % Mod1) * pow[p][1] + Get(1, i + p - 1, j, j + q - 1, Mod1)) % Mod1;
                                                                                                                         ^
0_0_17545620_26859.cpp:56:142: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
      Hash_res[i][j][1] = ((LL) (Hash_res[i - 1][j][1] + Mod1 - ((LL) Get(1, i - 1, j, j + q - 1, Mod1) * pow[p * (q - 1)][1]) % Mod1) * pow[p][1] + Get(1, i + p - 1, j, j + q - 1, Mod1)) % Mod1;
                                                                                                                                              ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-23 07:12:32, Gzip enabled