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_14112657_13715.cpp:11:15: error: 'int fmax [100005][20]' redeclared as different kind of symbol
 int fmax[N][20], fmin[N][20], LOG[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_14112657_13715.cpp:2:
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_14112657_13715.cpp:11:28: error: 'int fmin [100005][20]' redeclared as different kind of symbol
 int fmax[N][20], fmin[N][20], LOG[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_14112657_13715.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:968:25: note: previous declaration 'double fmin(double, double)'
   extern double __cdecl fmin (double, double);
                         ^
0_0_14112657_13715.cpp: In function 'int qmax(int, int)':
0_0_14112657_13715.cpp:15:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
  return max(fmax[l][t], fmax[r - (1 << t) + 1][t]);
                   ^
0_0_14112657_13715.cpp:15:46: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
  return max(fmax[l][t], fmax[r - (1 << t) + 1][t]);
                                              ^
0_0_14112657_13715.cpp: In function 'int qmin(int, int)':
0_0_14112657_13715.cpp:20:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
  return min(fmin[l][t], fmin[r - (1 << t) + 1][t]);
                   ^
0_0_14112657_13715.cpp:20:46: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
  return min(fmin[l][t], fmin[r - (1 << t) + 1][t]);
                                              ^
0_0_14112657_13715.cpp: In function 'int main()':
0_0_14112657_13715.cpp:35:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    fmax[i][0] = fmin[i][0] = x;
          ^
0_0_14112657_13715.cpp:35:23: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    fmax[i][0] = fmin[i][0] = x;
                       ^
0_0_14112657_13715.cpp:40:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     fmax[i][j] = max(fmax[i][j - 1], fmax[p][j - 1]);
           ^
0_0_14112657_13715.cpp:40:28: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     fmax[i][j] = max(fmax[i][j - 1], fmax[p][j - 1]);
                            ^
0_0_14112657_13715.cpp:40:44: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     fmax[i][j] = max(fmax[i][j - 1], fmax[p][j - 1]);
                                            ^
0_0_14112657_13715.cpp:41:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     fmin[i][j] = min(fmin[i][j - 1], fmin[p][j - 1]);
           ^
0_0_14112657_13715.cpp:41:28: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     fmin[i][j] = min(fmin[i][j - 1], fmin[p][j - 1]);
                            ^
0_0_14112657_13715.cpp:41:44: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     fmin[i][j] = min(fmin[i][j - 1], fmin[p][j - 1]);
                                            ^


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-06-29 14:26:28, Gzip enabled