0_0_37428777_8210.cpp:4:7: error: reference to 'max' is ambiguous
int a[max];
^
0_0_37428777_8210.cpp:3:11: note: candidates are: const int max
const int max=105;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
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_37428777_8210.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:261:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:217:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
0_0_37428777_8210.cpp: In function 'int main()':
0_0_37428777_8210.cpp:12:9: error: 'a' was not declared in this scope
cin>>a[i];
^
0_0_37428777_8210.cpp:15:8: error: 'a' was not declared in this scope
if(a[1]>a[2]){
^
0_0_37428777_8210.cpp:16:22: error: 'k' was not declared in this scope
cout<<"Case #"<<k<<": Alice"<<endl;
^
0_0_37428777_8210.cpp:21:22: error: 'k' was not declared in this scope
cout<<"Case #"<<k<<": Bob"<<endl;
^
0_0_37428777_8210.cpp:28:6: error: 'a' was not declared in this scope
a[i]=a[i]+a[n-i+1];
^
0_0_37428777_8210.cpp:32:6: error: 'a' was not declared in this scope
a[i]=a[i]+a[n-i+1];
^
0_0_37428777_8210.cpp:34:5: error: 'a' was not declared in this scope
a[n/2+1]*=2;
^
|