Borderou de evaluare (job #2999034)
Utilizator | Data | 10 martie 2023 13:33:08 | |
---|---|---|---|
Problema | Gard6 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:16:30: warning: integer overflow in expression of type 'long long int' results in '1553255926290448384' [-Woverflow]
16 | line (ll a = 0, ll t = INF * 20LL): m(a), b(t) {;}
| ~~~~^~~~~~
main.cpp: In function 'void KineticTournament::recompute(int, int, int)':
main.cpp:41:18: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
41 | int mid = cl + cr >> 1;
| ~~~^~~~
main.cpp: In function 'll KineticTournament::query(int, int, int, int, int)':
main.cpp:60:18: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
60 | int mid = cl + cr >> 1;
| ~~~^~~~
main.cpp: In function 'void KineticTournament::upd(int, line, int, int, int)':
main.cpp:70:18: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
70 | int mid = cl + cr >> 1;
| ~~~^~~~
main.cpp: At global scope:
main.cpp:99:6: error: redefinition of 'line cht [100007]'
99 | line cht[N];
| ^~~
main.cpp:21:6: note: 'line cht [100007]' previously declared here
21 | line cht[N];
| ^~~
main.cpp: In function 'int main()':
main.cpp:115:22: error: no matching function for call to 'max(int&, ll&)'
115 | mx = max(mx, a[i]);
| ^
In file included from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
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/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
254 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed:
main.cpp:115:22: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'll' {aka 'long long int'})
115 | mx = max(mx, a[i]);
| ^
In file included from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
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/bits/stl_algobase.h:300:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !