Run id: 73128

Main.cc: In function 'int main()':
Main.cc:15:5: error: reference to 'max' is ambiguous
     max=a[1]
     ^
Main.cc:3:9: note: candidates are: int max
 int l,m,max;       
         ^
In file included from /usr/include/c++/5/bits/char_traits.h:39:0,
                 from /usr/include/c++/5/ios:40,
                 from /usr/include/c++/5/ostream:38,
                 from /usr/include/c++/5/iostream:39,
                 from Main.cc:1:
/usr/include/c++/5/bits/stl_algobase.h:265:5: note:                 template const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
     ^
/usr/include/c++/5/bits/stl_algobase.h:219:5: note:                 template const _Tp& std::max(const _Tp&, const _Tp&)
     max(const _Tp& __a, const _Tp& __b)
     ^
Main.cc:16:20: error: 'j' was not declared in this scope
        for(int i=1;j<=m;i++){
                    ^
Main.cc:16:25: error: 'i' was not declared in this scope
        for(int i=1;j<=m;i++){
                         ^
Main.cc:24:21: error: reference to 'max' is ambiguous
             if(c[i]>max){
                     ^
Main.cc:3:9: note: candidates are: int max
 int l,m,max;       
         ^
In file included from /usr/include/c++/5/bits/char_traits.h:39:0,
                 from /usr/include/c++/5/ios:40,
                 from /usr/include/c++/5/ostream:38,
                 from /usr/include/c++/5/iostream:39,
                 from Main.cc:1:
/usr/include/c++/5/bits/stl_algobase.h:265:5: note:                 template const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
     ^
/usr/include/c++/5/bits/stl_algobase.h:219:5: note:                 template const _Tp& std::max(const _Tp&, const _Tp&)
     max(const _Tp& __a, const _Tp& __b)
     ^
Main.cc:25:26: error: reference to 'max' is ambiguous
                    cout< const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
     ^
/usr/include/c++/5/bits/stl_algobase.h:219:5: note:                 template const _Tp& std::max(const _Tp&, const _Tp&)
     max(const _Tp& __a, const _Tp& __b)
     ^
Main.cc:26:17: error: reference to 'max' is ambiguous
                 max=c[i];
                 ^
Main.cc:3:9: note: candidates are: int max
 int l,m,max;       
         ^
In file included from /usr/include/c++/5/bits/char_traits.h:39:0,
                 from /usr/include/c++/5/ios:40,
                 from /usr/include/c++/5/ostream:38,
                 from /usr/include/c++/5/iostream:39,
                 from Main.cc:1:
/usr/include/c++/5/bits/stl_algobase.h:265:5: note:                 template const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
     ^
/usr/include/c++/5/bits/stl_algobase.h:219:5: note:                 template const _Tp& std::max(const _Tp&, const _Tp&)
     max(const _Tp& __a, const _Tp& __b)
     ^