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_13689948_21100.cpp:24:14: error: 'int fmax [50005]' redeclared as different kind of symbol
 int fmax[maxn], fidx[maxn], smax[maxn], sidx[maxn];
              ^
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_13689948_21100.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:963:25: note: previous declaration 'double fmax(double, double)'
   extern double __cdecl fmax  (double, double);
                         ^
0_0_13689948_21100.cpp: In function 'void maintain(int, int, int)':
0_0_13689948_21100.cpp:32:25: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     if (smax[u] > fmax[u]) {
                         ^
0_0_13689948_21100.cpp:33:29: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
         swap(smax[u], fmax[u]);
                             ^
0_0_13689948_21100.cpp: In function 'void dfs(int, int)':
0_0_13689948_21100.cpp:39:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     fmax[u] = fidx[u] = smax[u] = sidx[u] = 0;
           ^
0_0_13689948_21100.cpp:45:27: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
         maintain(u, fmax[v] + ed[i].w, v);
                           ^
0_0_13689948_21100.cpp: In function 'void dfs(int, int, int)':
0_0_13689948_21100.cpp:55:51: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
         dfs(v, u, (v == fidx[u] ? smax[u] : fmax[u]) + ed[i].w);
                                                   ^
0_0_13689948_21100.cpp: In function 'void rmq_init()':
0_0_13689948_21100.cpp:61:43: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
         dpMax[i][0] = dpMin[i][0] = fmax[i];
                                           ^


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-25 20:43:27, Gzip enabled