0_0_16707059_24290.cpp: In function 'int main()':
0_0_16707059_24290.cpp:34:16: error: reference to 'left' is ambiguous
left[++num1]=apple[i]; //左半圈
^
0_0_16707059_24290.cpp:9:11: note: candidates are: long long int left [500010]
long long left[500010],right[500010];
^
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_16707059_24290.cpp:6:
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_16707059_24290.cpp:37:17: error: reference to 'right' is ambiguous
right[++num2]=l-apple[i];//右半圈
^
0_0_16707059_24290.cpp:9:24: note: candidates are: long long int right [500010]
long long left[500010],right[500010];
^
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_16707059_24290.cpp:6:
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_16707059_24290.cpp:40:14: error: reference to 'left' is ambiguous
sort(left+1,left+num1+1); //从小到大
^
0_0_16707059_24290.cpp:9:11: note: candidates are: long long int left [500010]
long long left[500010],right[500010];
^
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_16707059_24290.cpp:6:
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_16707059_24290.cpp:40:21: error: reference to 'left' is ambiguous
sort(left+1,left+num1+1); //从小到大
^
0_0_16707059_24290.cpp:9:11: note: candidates are: long long int left [500010]
long long left[500010],right[500010];
^
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_16707059_24290.cpp:6:
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_16707059_24290.cpp:41:14: error: reference to 'right' is ambiguous
sort(right+1,right+num2+1);
^
0_0_16707059_24290.cpp:9:24: note: candidates are: long long int right [500010]
long long left[500010],right[500010];
^
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_16707059_24290.cpp:6:
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_16707059_24290.cpp:41:22: error: reference to 'right' is ambiguous
sort(right+1,right+num2+1);
^
0_0_16707059_24290.cpp:9:24: note: candidates are: long long int right [500010]
long long left[500010],right[500010];
^
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_16707059_24290.cpp:6:
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_16707059_24290.cpp:43:30: error: reference to 'left' is ambiguous
if(i<=k) sum1[i]=left[i];
^
0_0_16707059_24290.cpp:9:11: note: candidates are: long long int left [500010]
long long left[500010],right[500010];
^
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_16707059_24290.cpp:6:
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_16707059_24290.cpp:44:36: error: reference to 'left' is ambiguous
else sum1[i]=sum1[i-k]+left[i];
^
0_0_16707059_24290.cpp:9:11: note: candidates are: long long int left [500010]
long long left[500010],right[500010];
^
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_16707059_24290.cpp:6:
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_16707059_24290.cpp:47:30: error: reference to 'right' is ambiguous
if(i<=k) sum2[i]=right[i];
^
0_0_16707059_24290.cpp:9:24: note: candidates are: long long int right [500010]
long long left[500010],right[500010];
^
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_16707059_24290.cpp:6:
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_16707059_24290.cpp:48:36: error: reference to 'right' is ambiguous
else sum2[i]=sum2[i-k]+right[i];
^
0_0_16707059_24290.cpp:9:24: note: candidates are: long long int right [500010]
long long left[500010],right[500010];
^
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_16707059_24290.cpp:6:
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)
^
|