Borderou de evaluare (job #1716158)

Utilizator GabiTulbaGabi Tulba-Lecu GabiTulba Data 12 iunie 2016 01:38:13
Problema Zota & Chidil Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:95:4: error: reference to ‘minus’ is ambiguous minus=bs(PX,PY,1); ^ user.cpp:8:54: note: candidates are: int minus int pos=0,M,N,x,y,L=0,PX=0,PY=0,lenght,l=0,l1=0,l2=0,minus,plus; ^ In file included from /usr/include/c++/4.8/string:48:0, from /usr/include/c++/4.8/random:41, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from user.cpp:2: /usr/include/c++/4.8/bits/stl_function.h:149:12: note: template<class _Tp> struct std::minus struct minus : public binary_function<_Tp, _Tp, _Tp> ^ user.cpp:96:4: error: reference to ‘plus’ is ambiguous plus=bs(PX+lenght,PY,1); ^ user.cpp:8:60: note: candidates are: int plus int pos=0,M,N,x,y,L=0,PX=0,PY=0,lenght,l=0,l1=0,l2=0,minus,plus; ^ In file included from /usr/include/c++/4.8/string:48:0, from /usr/include/c++/4.8/random:41, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from user.cpp:2: /usr/include/c++/4.8/bits/stl_function.h:140:12: note: template<class _Tp> struct std::plus struct plus : public binary_function<_Tp, _Tp, _Tp> ^ user.cpp:101:4: error: reference to ‘minus’ is ambiguous minus=bs(PX-lenght,PY,1); ^ user.cpp:8:54: note: candidates are: int minus int pos=0,M,N,x,y,L=0,PX=0,PY=0,lenght,l=0,l1=0,l2=0,minus,plus; ^ In file included from /usr/include/c++/4.8/string:48:0, from /usr/include/c++/4.8/random:41, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from user.cpp:2: /usr/include/c++/4.8/bits/stl_function.h:149:12: note: template<class _Tp> struct std::minus struct minus : public binary_function<_Tp, _Tp, _Tp> ^ user.cpp:102:4: error: reference to ‘plus’ is ambiguous plus=bs(PX,PY,1); ^ user.cpp:8:60: note: candidates are: int plus int pos=0,M,N,x,y,L=0,PX=0,PY=0,lenght,l=0,l1=0,l2=0,minus,plus; ^ In file included from /usr/include/c++/4.8/string:48:0,

Ceva nu functioneaza?