Borderou de evaluare (job #1502475)

Utilizator OlivianOlivian Dan Cretu Olivian Data 14 octombrie 2015 18:11:13
Problema Bete2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In lambda function: user.cpp:21:34: error: expected ‘{’ before ‘&&’ token if(v[a]==[b] && v[a]==v[c] ) break; ^ user.cpp: In function ‘int main()’: user.cpp:21:28: error: no match for ‘operator==’ (operand types are ‘int’ and ‘main()::__lambda0’) if(v[a]==[b] && v[a]==v[c] ) break; ^ user.cpp:21:28: note: candidates are: In file included from /usr/include/c++/4.8/bits/stl_algo.h:66:0, from /usr/include/c++/4.8/algorithm:62, from user.cpp:2: /usr/include/c++/4.8/functional:2540:5: note: template<class _Res, class ... _Args> bool std::operator==(std::nullptr_t, const std::function<_Res(_ArgTypes ...)>&) operator==(nullptr_t, const function<_Res(_Args...)>& __f) noexcept ^ /usr/include/c++/4.8/functional:2540:5: note: template argument deduction/substitution failed: user.cpp:21:34: note: cannot convert ‘v[a]’ (type ‘int’) to type ‘std::nullptr_t’ if(v[a]==[b] && v[a]==v[c] ) break; ^ In file included from /usr/include/c++/4.8/bits/stl_algo.h:66:0, from /usr/include/c++/4.8/algorithm:62, from user.cpp:2: /usr/include/c++/4.8/functional:2534:5: note: template<class _Res, class ... _Args> bool std::operator==(const std::function<_Res(_ArgTypes ...)>&, std::nullptr_t) operator==(const function<_Res(_Args...)>& __f, nullptr_t) noexcept ^ /usr/include/c++/4.8/functional:2534:5: note: template argument deduction/substitution failed: user.cpp:21:34: note: mismatched types ‘const std::function<_Res(_ArgTypes ...)>’ and ‘int’ if(v[a]==[b] && v[a]==v[c] ) break; ^ In file included from /usr/include/c++/4.8/functional:55:0, from /usr/include/c++/4.8/bits/stl_algo.h:66, from /usr/include/c++/4.8/algorithm:62, from user.cpp:2: /usr/include/c++/4.8/tuple:811:5: note: template<class ... _TElements, class ... _UElements> constexpr bool std::operator==(const std::tuple<_Elements ...>&, const std::tuple<_Elements ...>&) operator==(const tuple<_TElements...>& __t, ^ /usr/include/c++/4.8/tuple:811:5: note: template argument deduction/substitution failed: user.cpp:21:34: note: mismatched types ‘const std::tuple<_Elements ...>’ and ‘int’ if(v[a]==[b] && v[a]==v[c] ) break; ^ In file included from /usr/include/c++/4.8/tuple:39:0, from /usr/include/c++/4.8/functional:55, from /usr/include/c++/4.8/bits/stl_algo.h:66, from /usr/include/c++/4.8/algorithm:62, from user.cpp:2: /usr/include/c++/4.8/array:228:5: note: template<class _Tp, unsigned int _Nm> bool std::operator==(const std::array<_Tp, _Nm>&, const std::array<_Tp, _Nm>&) operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) ^ /usr/include/c++/4.8/array:228:5: note: template argument deduction/substitution failed: user.cpp:21:34: note: mismatched types ‘const std::array<_Tp, _Nm>’ and ‘int’

Ceva nu functioneaza?