Borderou de evaluare (job #1680108)
Utilizator | Data | 8 aprilie 2016 15:21:35 | |
---|---|---|---|
Problema | Subsir crescator maximal | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:18:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 1; i < nums.size(); i++){
^
user.cpp:22:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j = 0; j < solutions.size(); j++){
^
user.cpp:24:44: error: ‘size’ was not declared in this scope
max = solutions[j][solutions[j] - size() - 1];
^
user.cpp:28:44: error: ‘size’ was not declared in this scope
min = solutions[j][solutions[j] - size() - 1];
^
user.cpp:31:18: error: expected ‘,’ before ‘[’ token
if(([solutions[j].size() - 1] > biggestMin) && ([solutions[j].size() - 1] < nums[i])){
^
user.cpp:31:18: error: expected identifier before ‘[’ token
user.cpp: In lambda function:
user.cpp:31:34: error: expected ‘{’ before ‘>’ token
if(([solutions[j].size() - 1] > biggestMin) && ([solutions[j].size() - 1] < nums[i])){
^
user.cpp: In function ‘int main()’:
user.cpp:31:34: error: no match for ‘operator>’ (operand types are ‘main()::__lambda0’ and ‘int’)
user.cpp:31:34: note: candidates are:
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
from /usr/include/c++/4.8/vector:60,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_pair.h:233:5: note: template<class _T1, class _T2> constexpr bool std::operator>(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
^
/usr/include/c++/4.8/bits/stl_pair.h:233:5: note: template argument deduction/substitution failed:
user.cpp:31:36: note: ‘main()::__lambda0’ is not derived from ‘const std::pair<_T1, _T2>’
if(([solutions[j].size() - 1] > biggestMin) && ([solutions[j].size() - 1] < nums[i])){
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0,
from /usr/include/c++/4.8/vector:60,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_iterator.h:309:5: note: template<class _Iterator> bool std::operator>(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
operator>(const reverse_iterator<_Iterator>& __x,
^
/usr/include/c++/4.8/bits/stl_iterator.h:309:5: note: template argument deduction/substitution failed:
user.cpp:31:36: note: ‘main()::__lambda0’ is not derived from ‘const std::reverse_iterator<_Iterator>’
if(([solutions[j].size() - 1] > biggestMin) && ([solutions[j].size() - 1] < nums[i])){
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0,
from /usr/include/c++/4.8/vector:60,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_iterator.h:359:5: note: template<class _IteratorL, class _IteratorR> bool std::operator>(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
operator>(const reverse_iterator<_IteratorL>& __x,
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !