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_13306283_3289.cpp: In function 'void build(int, int, int)':
0_0_13306283_3289.cpp:8:23: error: reference to 'array' is ambiguous
         segtree[node]=array[begin];
                       ^
0_0_13306283_3289.cpp:4:5: note: candidates are: int array [50005]
 int array[50005],segtree[100010];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:39:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:55,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70,
                 from 0_0_13306283_3289.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:81:12: note:                 template<class _Tp, long long unsigned int _Nm> struct std::array
     struct array
            ^
0_0_13306283_3289.cpp: In function 'int main()':
0_0_13306283_3289.cpp:47:39: error: reference to 'array' is ambiguous
         for(i=1;i<=N;i++) scanf("%d",&array[i]);
                                       ^
0_0_13306283_3289.cpp:4:5: note: candidates are: int array [50005]
 int array[50005],segtree[100010];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:39:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:55,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70,
                 from 0_0_13306283_3289.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:81:12: note:                 template<class _Tp, long long unsigned int _Nm> struct std::array
     struct array
            ^


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-09-29 12:18:37, Gzip enabled