0_0_36245598_32188.cpp: In function 'int main()':
0_0_36245598_32188.cpp:27:21: error: 'sort' was not declared in this scope
sort(a,a+n+1);
^
0_0_36245598_32188.cpp:28:9: error: reference to 'left' is ambiguous
left=1;right=L;
^
0_0_36245598_32188.cpp:3:5: note: candidates are: int left
int left,right,mid,ans;
^
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_36245598_32188.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_36245598_32188.cpp:28:16: error: reference to 'right' is ambiguous
left=1;right=L;
^
0_0_36245598_32188.cpp:3:10: note: candidates are: int right
int left,right,mid,ans;
^
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_36245598_32188.cpp:1:
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_36245598_32188.cpp:29:15: error: reference to 'left' is ambiguous
while(left<=right){
^
0_0_36245598_32188.cpp:3:5: note: candidates are: int left
int left,right,mid,ans;
^
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_36245598_32188.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_36245598_32188.cpp:29:21: error: reference to 'right' is ambiguous
while(left<=right){
^
0_0_36245598_32188.cpp:3:10: note: candidates are: int right
int left,right,mid,ans;
^
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_36245598_32188.cpp:1:
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_36245598_32188.cpp:30:18: error: reference to 'left' is ambiguous
mid=(left+right)/2;
^
0_0_36245598_32188.cpp:3:5: note: candidates are: int left
int left,right,mid,ans;
^
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_36245598_32188.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_36245598_32188.cpp:30:23: error: reference to 'right' is ambiguous
mid=(left+right)/2;
^
0_0_36245598_32188.cpp:3:10: note: candidates are: int right
int left,right,mid,ans;
^
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_36245598_32188.cpp:1:
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_36245598_32188.cpp:33:17: error: reference to 'right' is ambiguous
right=mid-1;
^
0_0_36245598_32188.cpp:3:10: note: candidates are: int right
int left,right,mid,ans;
^
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_36245598_32188.cpp:1:
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_36245598_32188.cpp:36:17: error: reference to 'left' is ambiguous
left=mid+1;
^
0_0_36245598_32188.cpp:3:5: note: candidates are: int left
int left,right,mid,ans;
^
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_36245598_32188.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)
^
|