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_13159086_25772.cpp: In function 'int main()':
0_0_13159086_25772.cpp:19:4: error: reference to 'left' is ambiguous
    left[i]=i;
    ^
0_0_13159086_25772.cpp:5:18: note: candidates are: int left [100005]
 int height[maxn],left[maxn],right[maxn],n,i;
                  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_13159086_25772.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:916:3: note:                 std::ios_base& std::left(std::ios_base&)
   left(ios_base& __base)
   ^
0_0_13159086_25772.cpp:20:4: error: reference to 'right' is ambiguous
    right[i]=i;
    ^
0_0_13159086_25772.cpp:5:29: note: candidates are: int right [100005]
 int height[maxn],left[maxn],right[maxn],n,i;
                             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_13159086_25772.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:924:3: note:                 std::ios_base& std::right(std::ios_base&)
   right(ios_base& __base)
   ^
0_0_13159086_25772.cpp:25:17: error: reference to 'left' is ambiguous
    while(height[left[i]-1]>=height[i]) left[i]=left[left[i]-1];
                 ^
0_0_13159086_25772.cpp:5:18: note: candidates are: int left [100005]
 int height[maxn],left[maxn],right[maxn],n,i;
                  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_13159086_25772.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:916:3: note:                 std::ios_base& std::left(std::ios_base&)
   left(ios_base& __base)
   ^
0_0_13159086_25772.cpp:25:40: error: reference to 'left' is ambiguous
    while(height[left[i]-1]>=height[i]) left[i]=left[left[i]-1];
                                        ^
0_0_13159086_25772.cpp:5:18: note: candidates are: int left [100005]
 int height[maxn],left[maxn],right[maxn],n,i;
                  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_13159086_25772.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:916:3: note:                 std::ios_base& std::left(std::ios_base&)
   left(ios_base& __base)
   ^
0_0_13159086_25772.cpp:25:48: error: reference to 'left' is ambiguous
    while(height[left[i]-1]>=height[i]) left[i]=left[left[i]-1];
                                                ^
0_0_13159086_25772.cpp:5:18: note: candidates are: int left [100005]
 int height[maxn],left[maxn],right[maxn],n,i;
                  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_13159086_25772.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:916:3: note:                 std::ios_base& std::left(std::ios_base&)
   left(ios_base& __base)
   ^
0_0_13159086_25772.cpp:25:53: error: reference to 'left' is ambiguous
    while(height[left[i]-1]>=height[i]) left[i]=left[left[i]-1];
                                                     ^
0_0_13159086_25772.cpp:5:18: note: candidates are: int left [100005]
 int height[maxn],left[maxn],right[maxn],n,i;
                  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_13159086_25772.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:916:3: note:                 std::ios_base& std::left(std::ios_base&)
   left(ios_base& __base)
   ^
0_0_13159086_25772.cpp:29:17: error: reference to 'right' is ambiguous
    while(height[right[i]+1]>=height[i]) right[i]=right[right[i]+1];
                 ^
0_0_13159086_25772.cpp:5:29: note: candidates are: int right [100005]
 int height[maxn],left[maxn],right[maxn],n,i;
                             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_13159086_25772.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:924:3: note:                 std::ios_base& std::right(std::ios_base&)
   right(ios_base& __base)
   ^
0_0_13159086_25772.cpp:29:41: error: reference to 'right' is ambiguous
    while(height[right[i]+1]>=height[i]) right[i]=right[right[i]+1];
                                         ^
0_0_13159086_25772.cpp:5:29: note: candidates are: int right [100005]
 int height[maxn],left[maxn],right[maxn],n,i;
                             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_13159086_25772.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:924:3: note:                 std::ios_base& std::right(std::ios_base&)
   right(ios_base& __base)
   ^
0_0_13159086_25772.cpp:29:50: error: reference to 'right' is ambiguous
    while(height[right[i]+1]>=height[i]) right[i]=right[right[i]+1];
                                                  ^
0_0_13159086_25772.cpp:5:29: note: candidates are: int right [100005]
 int height[maxn],left[maxn],right[maxn],n,i;
                             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_13159086_25772.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:924:3: note:                 std::ios_base& std::right(std::ios_base&)
   right(ios_base& __base)
   ^
0_0_13159086_25772.cpp:29:56: error: reference to 'right' is ambiguous
    while(height[right[i]+1]>=height[i]) right[i]=right[right[i]+1];
                                                        ^
0_0_13159086_25772.cpp:5:29: note: candidates are: int right [100005]
 int height[maxn],left[maxn],right[maxn],n,i;
                             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_13159086_25772.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:924:3: note:                 std::ios_base& std::right(std::ios_base&)
   right(ios_base& __base)
   ^
0_0_13159086_25772.cpp:34:20: error: reference to 'right' is ambiguous
    tmp=(long long)(right[i]-left[i]+1)*height[i];  
                    ^
0_0_13159086_25772.cpp:5:29: note: candidates are: int right [100005]
 int height[maxn],left[maxn],right[maxn],n,i;
                             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_13159086_25772.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:924:3: note:                 std::ios_base& std::right(std::ios_base&)
   right(ios_base& __base)
   ^
0_0_13159086_25772.cpp:34:29: error: reference to 'left' is ambiguous
    tmp=(long long)(right[i]-left[i]+1)*height[i];  
                             ^
0_0_13159086_25772.cpp:5:18: note: candidates are: int left [100005]
 int height[maxn],left[maxn],right[maxn],n,i;
                  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_13159086_25772.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:916:3: note:                 std::ios_base& std::left(std::ios_base&)
   left(ios_base& __base)
   ^


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-27 00:39:36, Gzip enabled