Borderou de evaluare (job #1848622)
| Utilizator | Data | 16 ianuarie 2017 12:50:10 | |
|---|---|---|---|
| Problema | A+B | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void buildtree(int, int, int)’:
user.cpp:17:22: error: ‘l’ was not declared in this scope
V[nod].s = S[l];
^
user.cpp:25:9: error: expected ‘)’ before ‘if’
if(V[2 * nod].s >= V[2 * nod + 1].s)
^
user.cpp:26:60: error: expected ‘)’ before ‘;’ token
V[nod].s = V[2 * nod].s,V[nod].p = V[2 * nod].p;
^
user.cpp:27:9: error: ‘else’ without a previous ‘if’
else
^
user.cpp: In function ‘void Search(int, int, int, int, int, int&)’:
user.cpp:34:33: error: no match for ‘operator<’ (operand types are ‘sol’ and ‘sol’)
if(L >= m && R <= M && V[p] < V[nod]){
^
user.cpp:34:33: note: candidates are:
In file included from /usr/include/c++/4.8/regex:62:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:108,
from user.cpp:1:
/usr/include/c++/4.8/bits/regex.h:1334:5: note: template<class _Bi_iter> bool std::operator<(const std::sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)
operator<(const sub_match<_Bi_iter>& __lhs,
^
/usr/include/c++/4.8/bits/regex.h:1334:5: note: template argument deduction/substitution failed:
user.cpp:34:40: note: ‘sol’ is not derived from ‘const std::sub_match<_BiIter>’
if(L >= m && R <= M && V[p] < V[nod]){
^
In file included from /usr/include/c++/4.8/regex:62:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:108,
from user.cpp:1:
/usr/include/c++/4.8/bits/regex.h:1254:5: note: template<class _Bi_iter> bool std::operator<(const typename std::iterator_traits<_Iter>::value_type&, const std::sub_match<_BiIter>&)
operator<(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
^
/usr/include/c++/4.8/bits/regex.h:1254:5: note: template argument deduction/substitution failed:
user.cpp:34:40: note: ‘sol’ is not derived from ‘const std::sub_match<_BiIter>’
if(L >= m && R <= M && V[p] < V[nod]){
^
In file included from /usr/include/c++/4.8/regex:62:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:108,
from user.cpp:1:
/usr/include/c++/4.8/bits/regex.h:1177:5: note: template<class _Bi_iter> bool std::operator<(const std::sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)
operator<(const sub_match<_Bi_iter>& __lhs,
^
/usr/include/c++/4.8/bits/regex.h:1177:5: note: template argument deduction/substitution failed:
user.cpp:34:40: note: ‘sol’ is not derived from ‘const std::sub_match<_BiIter>’
if(L >= m && R <= M && V[p] < V[nod]){
^
In file included from /usr/include/c++/4.8/regex:62:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:108,
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
