Borderou de evaluare (job #2875889)
Utilizator | Data | 22 martie 2022 15:52:03 | |
---|---|---|---|
Problema | Amici2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:52:41: warning: "/*" within comment [-Wcomment]
52 | /*// for (int node = 1; node <= /*N*'/1; ++node)
|
main.cpp: In function 'int main()':
main.cpp:41:32: error: no matching function for call to 'std::set<std::pair<int, int> >::count(int&, int&)'
41 | if (seen.count(x, y))
| ^
In file included from /usr/include/c++/10/set:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:87,
from main.cpp:1:
/usr/include/c++/10/bits/stl_set.h:748:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::count(const key_type&) const [with _Key = std::pair<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::size_type = long unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = std::pair<int, int>]'
748 | count(const key_type& __x) const
| ^~~~~
/usr/include/c++/10/bits/stl_set.h:748:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/10/bits/stl_set.h:754:2: note: candidate: 'template<class _Kt> decltype (((const std::set<_Key, _Compare, _Alloc>*)this)->std::set<_Key, _Compare, _Alloc>::_M_t._M_count_tr(__x)) std::set<_Key, _Compare, _Alloc>::count(const _Kt&) const [with _Kt = _Kt; _Key = std::pair<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >]'
754 | count(const _Kt& __x) const
| ^~~~~
/usr/include/c++/10/bits/stl_set.h:754:2: note: template argument deduction/substitution failed:
main.cpp:41:32: note: candidate expects 1 argument, 2 provided
41 | if (seen.count(x, y))
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !