Borderou de evaluare (job #1501764)
Utilizator | Data | 13 octombrie 2015 20:08:31 | |
---|---|---|---|
Problema | Inel | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool DoNext(std::vector<long unsigned int>&)’:
user.cpp:33:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (numar i = 2; i < usedSize; ++i){
^
user.cpp:34:20: error: invalid types ‘long long unsigned int[numar {aka long unsigned int}]’ for array subscript
if (!used[i])
^
user.cpp:36:23: error: invalid types ‘long long unsigned int[numar {aka long unsigned int}]’ for array subscript
used[i] = true;
^
user.cpp: In function ‘bool DoNextVal(std::vector<long unsigned int>&)’:
user.cpp:48:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (numar i = v[crtPos]; i < usedSize; ++i)
^
user.cpp:49:20: error: invalid types ‘long long unsigned int[numar {aka long unsigned int}]’ for array subscript
if (!used[i] && (bitVec & (1 << (v[crtPos-1] +i) ))){
^
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<long unsigned int>&)’:
user.cpp:51:26: error: no match for ‘operator<<’ (operand types are ‘int’ and ‘DoNextVal(std::vector<long unsigned 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:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !