Borderou de evaluare (job #1501768)
Utilizator | Data | 13 octombrie 2015 20:14:28 | |
---|---|---|---|
Problema | Inel | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool DoNextVal(std::vector<int>&)’:
user.cpp:51:31: error: expected ‘,’ before ‘[’ token
used &= ~ (1 << [v[crtPos]]);
^
user.cpp:51:31: error: expected identifier before ‘[’ token
user.cpp: In lambda function:
user.cpp:51:40: error: expected ‘{’ before ‘)’ token
used &= ~ (1 << [v[crtPos]]);
^
user.cpp: In function ‘bool DoNextVal(std::vector<int>&)’:
user.cpp:51:26: error: no match for ‘operator<<’ (operand types are ‘int’ and ‘DoNextVal(std::vector<int>&)::__lambda0’)
used &= ~ (1 << [v[crtPos]]);
^
user.cpp:51:26: note: candidates are:
In file included from /usr/include/c++/4.8/string:52:0,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/c++/4.8/bits/basic_string.h:2753:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/usr/include/c++/4.8/bits/basic_string.h:2753:5: note: template argument deduction/substitution failed:
user.cpp:51:40: note: mismatched types ‘std::basic_ostream<_CharT, _Traits>’ and ‘int’
used &= ~ (1 << [v[crtPos]]);
^
In file included from /usr/include/c++/4.8/iostream:39:0,
from user.cpp:1:
/usr/include/c++/4.8/ostream:471:5: note: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, _CharT)
operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
^
/usr/include/c++/4.8/ostream:471:5: note: template argument deduction/substitution failed:
user.cpp:51:40: note: mismatched types ‘std::basic_ostream<_CharT, _Traits>’ and ‘int’
used &= ~ (1 << [v[crtPos]]);
^
In file included from /usr/include/c++/4.8/iostream:39:0,
from user.cpp:1:
/usr/include/c++/4.8/ostream:476:5: note: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, char)
operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
^
/usr/include/c++/4.8/ostream:476:5: note: template argument deduction/substitution failed:
user.cpp:51:40: note: mismatched types ‘std::basic_ostream<_CharT, _Traits>’ and ‘int’
used &= ~ (1 << [v[crtPos]]);
^
In file included from /usr/include/c++/4.8/iostream:39:0,
from user.cpp:1:
/usr/include/c++/4.8/ostream:482:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, char)
operator<<(basic_ostream<char, _Traits>& __out, char __c)
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !