Borderou de evaluare (job #2370000)
Utilizator | Data | 6 martie 2019 10:12:46 | |
---|---|---|---|
Problema | Sarpe2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:37:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0;j<s[x].size();j++)
~^~~~~~~~~~~~
main.cpp:39:10: warning: variable 's1' set but not used [-Wunused-but-set-variable]
dd s1=s[x][j];
^~
main.cpp:45:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0;j<s[x].size();j++)dp[j]=dp1[j];
~^~~~~~~~~~~~
main.cpp:46:16: error: no match for 'operator<' (operand types are 'int' and 'std::vector<dd>')
for(j=0;j<s[k[i+1]];j++)dp1[j]=0;
~^~~~~~~~~~
In file included from /usr/include/c++/6/regex:62:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:110,
from main.cpp:1:
/usr/include/c++/6/bits/regex.h:962:5: note: candidate: template<class _BiIter> bool std::__cxx11::operator<(const std::__cxx11::sub_match<_BiIter>&, const std::__cxx11::sub_match<_BiIter>&)
operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
^~~~~~~~
/usr/include/c++/6/bits/regex.h:962:5: note: template argument deduction/substitution failed:
main.cpp:46:25: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
for(j=0;j<s[k[i+1]];j++)dp1[j]=0;
^
In file included from /usr/include/c++/6/regex:62:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:110,
from main.cpp:1:
/usr/include/c++/6/bits/regex.h:1041:5: note: candidate: template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const std::__cxx11::sub_match<_BiIter>&)
operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
^~~~~~~~
/usr/include/c++/6/bits/regex.h:1041:5: note: template argument deduction/substitution failed:
main.cpp:46:25: note: mismatched types 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' and 'int'
for(j=0;j<s[k[i+1]];j++)dp1[j]=0;
^
In file included from /usr/include/c++/6/regex:62:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:110,
from main.cpp:1:
/usr/include/c++/6/bits/regex.h:1121:5: note: candidate: template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(const std::__cxx11::sub_match<_BiIter>&, std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)
operator<(const sub_match<_Bi_iter>& __lhs,
^~~~~~~~
/usr/include/c++/6/bits/regex.h:1121:5: note: template argument deduction/substitution failed:
main.cpp:46:25: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
for(j=0;j<s[k[i+1]];j++)dp1[j]=0;
^
In file included from /usr/include/c++/6/regex:62:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:110,
from main.cpp:1:
/usr/include/c++/6/bits/regex.h:1198:5: note: candidate: template<class _Bi_iter> bool std::__cxx11::operator<(const typename std::iterator_traits<_Iter>::value_type*, const std::__cxx11::sub_match<_BiIter>&)
operator<(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
^~~~~~~~
/usr/include/c++/6/bits/regex.h:1198:5: note: template argument deduction/substitution failed:
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !