Borderou de evaluare (job #3268040)
Utilizator | Data | 13 ianuarie 2025 16:07:19 | |
---|---|---|---|
Problema | Piese3 | Status | done |
Runda | Arhiva ICPC | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void solve()':
main.cpp:32:5: error: 'memset' was not declared in this scope
32 | memset(sz, 0, sizeof(sz));
| ^~~~~~
main.cpp:3:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
2 | #include <map>
+++ |+#include <cstring>
3 | using namespace std;
main.cpp:34:14: error: 'vector' was not declared in this scope
34 | map<int, vector<int>> coduri;
| ^~~~~~
main.cpp:3:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
2 | #include <map>
+++ |+#include <vector>
3 | using namespace std;
main.cpp:34:24: error: template argument 2 is invalid
34 | map<int, vector<int>> coduri;
| ^~
main.cpp:34:24: error: template argument 4 is invalid
main.cpp:45:19: error: invalid types 'int[int]' for array subscript
45 | coduri[cod].push_back(i);
| ^
main.cpp:55:30: error: template argument 2 is invalid
55 | for (pair<int, vector<int>> cod: coduri){
| ^~
main.cpp:55:38: error: 'begin' was not declared in this scope
55 | for (pair<int, vector<int>> cod: coduri){
| ^~~~~~
main.cpp:55:38: note: suggested alternatives:
In file included from /usr/include/c++/12.2.1/string:52,
from /usr/include/c++/12.2.1/bits/locale_classes.h:40,
from /usr/include/c++/12.2.1/bits/ios_base.h:41,
from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/istream:38,
from /usr/include/c++/12.2.1/fstream:38,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/range_access.h:114:37: note: 'std::begin'
114 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
| ^~~~~
In file included from /usr/include/c++/12.2.1/string_view:50,
from /usr/include/c++/12.2.1/bits/basic_string.h:47,
from /usr/include/c++/12.2.1/string:53:
/usr/include/c++/12.2.1/bits/ranges_base.h:566:44: note: 'std::ranges::__cust::begin'
566 | inline constexpr __cust_access::_Begin begin{};
| ^~~~~
In file included from /usr/include/c++/12.2.1/bits/stl_iterator_base_types.h:71,
from /usr/include/c++/12.2.1/bits/stl_construct.h:61,
from /usr/include/c++/12.2.1/bits/char_traits.h:46,
from /usr/include/c++/12.2.1/ios:40:
/usr/include/c++/12.2.1/bits/iterator_concepts.h:969:10: note: 'std::ranges::__cust_access::begin'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !