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)
^
|