Borderou de evaluare (job #2866022)
Utilizator | Data | 9 martie 2022 12:14:32 | |
---|---|---|---|
Problema | Drept 2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void solve(ll, ll)':
main.cpp:38:26: warning: capture of variable 'qd' with non-automatic storage duration
38 | sol=sol+1LL*[qd.front()]-st[qs.front()]+1-B+1;
| ^~
main.cpp:11:15: note: 'std::deque<long long int> qd' declared here
11 | deque<ll> qs, qd;
| ^~
main.cpp:38:28: error: expected ',' before '.' token
38 | sol=sol+1LL*[qd.front()]-st[qs.front()]+1-B+1;
| ^
| ,
main.cpp:38:28: error: expected identifier before '.' token
main.cpp: In lambda function:
main.cpp:38:37: error: expected '{' before '-' token
38 | sol=sol+1LL*[qd.front()]-st[qs.front()]+1-B+1;
| ^
main.cpp: In function 'void solve(ll, ll)':
main.cpp:38:24: error: no match for 'operator*' (operand types are 'long long int' and 'solve(ll, ll)::<lambda()>')
38 | sol=sol+1LL*[qd.front()]-st[qs.front()]+1-B+1;
In file included from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/10/complex:391:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator*(const std::complex<_Tp>&, const std::complex<_Tp>&)'
391 | operator*(const complex<_Tp>& __x, const complex<_Tp>& __y)
| ^~~~~~~~
/usr/include/c++/10/complex:391:5: note: template argument deduction/substitution failed:
main.cpp:38:37: note: mismatched types 'const std::complex<_Tp>' and 'long long int'
38 | sol=sol+1LL*[qd.front()]-st[qs.front()]+1-B+1;
| ^
In file included from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/10/complex:400:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator*(const std::complex<_Tp>&, const _Tp&)'
400 | operator*(const complex<_Tp>& __x, const _Tp& __y)
| ^~~~~~~~
/usr/include/c++/10/complex:400:5: note: template argument deduction/substitution failed:
main.cpp:38:37: note: mismatched types 'const std::complex<_Tp>' and 'long long int'
38 | sol=sol+1LL*[qd.front()]-st[qs.front()]+1-B+1;
| ^
In file included from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/10/complex:409:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator*(const _Tp&, const std::complex<_Tp>&)'
409 | operator*(const _Tp& __x, const complex<_Tp>& __y)
| ^~~~~~~~
/usr/include/c++/10/complex:409:5: note: template argument deduction/substitution failed:
main.cpp:38:37: note: 'solve(ll, ll)::<lambda()>' is not derived from 'const std::complex<_Tp>'
38 | sol=sol+1LL*[qd.front()]-st[qs.front()]+1-B+1;
| ^
In file included from /usr/include/c++/10/valarray:603,
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !