Borderou de evaluare (job #3309471)
| Utilizator | Data | 5 septembrie 2025 01:47:02 | |
|---|---|---|---|
| Problema | Nuke | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:42:1: error: 'vector' does not name a type
42 | vector<soldat> Soldati;
| ^~~~~~
main.cpp:43:1: error: 'vector' does not name a type
43 | vector<bomba> Bombe;
| ^~~~~~
main.cpp:44:1: error: 'vector' does not name a type
44 | vector<ev> Events;
| ^~~~~~
main.cpp: In function 'int main()':
main.cpp:57:9: error: 'Soldati' was not declared in this scope; did you mean 'soldat'?
57 | Soldati.push_back({xs, ys, i});
| ^~~~~~~
| soldat
main.cpp:58:9: error: 'Events' was not declared in this scope
58 | Events.push_back({2, xs, i});
| ^~~~~~
main.cpp:64:9: error: 'Bombe' was not declared in this scope
64 | Bombe.push_back({xb, yb, r, i});
| ^~~~~
main.cpp:65:9: error: 'Events' was not declared in this scope
65 | Events.push_back({0, xb - r, i});
| ^~~~~~
main.cpp:68:10: error: 'Events' was not declared in this scope
68 | sort(Events.begin(), Events.end(), cmp);
| ^~~~~~
main.cpp:75:33: error: 'Bombe' was not declared in this scope
75 | BombeActive.insert({Bombe[idx].y, idx});
| ^~~~~
main.cpp:75:31: error: no matching function for call to 'std::multiset<std::pair<int, int> >::insert(<brace-enclosed initializer list>)'
75 | BombeActive.insert({Bombe[idx].y, idx});
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/12.2.1/set:62,
from main.cpp:3:
/usr/include/c++/12.2.1/bits/stl_multiset.h:552:9: note: candidate: 'template<class _InputIterator> void std::multiset<_Key, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _Key = std::pair<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >]'
552 | insert(_InputIterator __first, _InputIterator __last)
| ^~~~~~
/usr/include/c++/12.2.1/bits/stl_multiset.h:552:9: note: template argument deduction/substitution failed:
main.cpp:75:31: note: candidate expects 2 arguments, 1 provided
75 | BombeActive.insert({Bombe[idx].y, idx});
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_multiset.h:503:7: note: candidate: 'std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = std::pair<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; iterator = std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int> >, std::less<std::pair<int, int> >, std::allocator<std::pair<int, int> > >::const_iterator; value_type = std::pair<int, int>]'
503 | insert(const value_type& __x)
| ^~~~~~
/usr/include/c++/12.2.1/bits/stl_multiset.h:503:32: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::multiset<std::pair<int, int> >::value_type&' {aka 'const std::pair<int, int>&'}
503 | insert(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/stl_multiset.h:508:7: note: candidate: 'std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::insert(value_type&&) [with _Key = std::pair<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; iterator = std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int> >, std::less<std::pair<int, int> >, std::allocator<std::pair<int, int> > >::const_iterator; value_type = std::pair<int, int>]'
508 | insert(value_type&& __x)
| ^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
