Borderou de evaluare (job #2748042)
Utilizator | Data | 29 aprilie 2021 21:02:18 | |
---|---|---|---|
Problema | Sea | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:14:5: error: 'ld' does not name a type
ld x;
^~
main.cpp: In function 'bool operator<(eveniment, eveniment)':
main.cpp:20:10: error: 'const struct eveniment' has no member named 'x'
if(a.x == b.x)
^
main.cpp:20:17: error: 'const struct eveniment' has no member named 'x'
if(a.x == b.x)
^
main.cpp:20:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(a.x == b.x)
^
main.cpp:25:14: error: 'const struct eveniment' has no member named 'x'
return a.x < b.x;
^
main.cpp:25:20: error: 'const struct eveniment' has no member named 'x'
return a.x < b.x;
^
main.cpp: At global scope:
main.cpp:29:6: error: 'ld' was not declared in this scope
pair<ld, ld> a[MAXN], b[MAXM], rez[MAXN];
^~
main.cpp:29:10: error: 'ld' was not declared in this scope
pair<ld, ld> a[MAXN], b[MAXM], rez[MAXN];
^~
main.cpp:29:12: error: template argument 1 is invalid
pair<ld, ld> a[MAXN], b[MAXM], rez[MAXN];
^
main.cpp:29:12: error: template argument 2 is invalid
main.cpp:30:1: error: 'ld' does not name a type
ld line;
^~
main.cpp:33:1: error: 'ld' does not name a type
ld rezultingX(pair<ld, ld> A, pair<ld, ld> B)
^~
main.cpp: In function 'void elimina(int)':
main.cpp:42:56: error: 'rezultingX' was not declared in this scope
iter it = S.find({rezultingX(rez[poz], rez[poz + 1]), 0, poz});
^
main.cpp:42:66: error: no matching function for call to 'std::set<eveniment>::find(<brace-enclosed initializer list>)'
iter it = S.find({rezultingX(rez[poz], rez[poz + 1]), 0, poz});
^
In file included from /usr/include/c++/6/set:61:0,
from main.cpp:3:
/usr/include/c++/6/bits/stl_set.h:692:7: note: candidate: std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::find(const key_type&) [with _Key = eveniment; _Compare = std::less<eveniment>; _Alloc = std::allocator<eveniment>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<eveniment>; std::set<_Key, _Compare, _Alloc>::key_type = eveniment]
find(const key_type& __x)
^~~~
/usr/include/c++/6/bits/stl_set.h:692:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const key_type& {aka const eveniment&}'
/usr/include/c++/6/bits/stl_set.h:696:7: note: candidate: std::set<_Key, _Compare, _Alloc>::const_iterator std::set<_Key, _Compare, _Alloc>::find(const key_type&) const [with _Key = eveniment; _Compare = std::less<eveniment>; _Alloc = std::allocator<eveniment>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<eveniment>; std::set<_Key, _Compare, _Alloc>::key_type = eveniment]
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !