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_37924823_16124.cpp: In function 'int solve()':
0_0_37924823_16124.cpp:29:21: error: reference to 'left' is ambiguous
                     left[k] = k == 0 ? 0 : left[k - 1] + on2[k - 1] - on[k - 1];
                     ^
0_0_37924823_16124.cpp:4:41: note: candidates are: int left [110]
 int n, m, y[maxn], on[maxn], on2[maxn], left[maxn];
                                         ^
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++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_37924823_16124.cpp:1:
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_37924823_16124.cpp:29:44: error: reference to 'left' is ambiguous
                     left[k] = k == 0 ? 0 : left[k - 1] + on2[k - 1] - on[k - 1];
                                            ^
0_0_37924823_16124.cpp:4:41: note: candidates are: int left [110]
 int n, m, y[maxn], on[maxn], on2[maxn], left[maxn];
                                         ^
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++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_37924823_16124.cpp:1:
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_37924823_16124.cpp:38:32: error: reference to 'left' is ambiguous
                 ans = max(ans, left[j] + on2[j] + M);
                                ^
0_0_37924823_16124.cpp:4:41: note: candidates are: int left [110]
 int n, m, y[maxn], on[maxn], on2[maxn], left[maxn];
                                         ^
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++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_37924823_16124.cpp:1:
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_37924823_16124.cpp:39:36: error: reference to 'left' is ambiguous
                 M = max(M, on[j] - left[j]);
                                    ^
0_0_37924823_16124.cpp:4:41: note: candidates are: int left [110]
 int n, m, y[maxn], on[maxn], on2[maxn], left[maxn];
                                         ^
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++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_37924823_16124.cpp:1:
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-26 23:16:51, Gzip enabled