Borderou de evaluare (job #2921629)
Utilizator | Data | 31 august 2022 23:31:20 | |
---|---|---|---|
Problema | Trie | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
In file included from /usr/include/c++/10/bits/stl_algobase.h:64,
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/fstream:38,
from main.cpp:1:
/usr/include/c++/10/bits/stl_pair.h: In instantiation of 'struct std::pair<const char, Node>':
/usr/include/c++/10/ext/aligned_buffer.h:91:28: required from 'struct __gnu_cxx::__aligned_buffer<std::pair<const char, Node> >'
/usr/include/c++/10/bits/hashtable_policy.h:233:43: required from 'struct std::__detail::_Hash_node_value_base<std::pair<const char, Node> >'
/usr/include/c++/10/bits/hashtable_policy.h:279:12: required from 'struct std::__detail::_Hash_node<std::pair<const char, Node>, false>'
/usr/include/c++/10/bits/hashtable_policy.h:1973:13: required from 'struct std::__detail::_Hashtable_alloc<std::allocator<std::__detail::_Hash_node<std::pair<const char, Node>, false> > >'
/usr/include/c++/10/bits/hashtable.h:173:11: required from 'class std::_Hashtable<char, std::pair<const char, Node>, std::allocator<std::pair<const char, Node> >, std::__detail::_Select1st, std::equal_to<char>, std::hash<char>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >'
/usr/include/c++/10/bits/unordered_map.h:105:18: required from 'class std::unordered_map<char, Node>'
main.cpp:11:31: required from here
/usr/include/c++/10/bits/stl_pair.h:218:11: error: 'std::pair<_T1, _T2>::second' has incomplete type
218 | _T2 second; ///< The second member
| ^~~~~~
main.cpp:9:8: note: forward declaration of 'struct Node'
9 | struct Node {
| ^~~~
main.cpp: In function 'void add(Node&, const string&, int)':
main.cpp:15:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | if (p >= s.size()) {
| ~~^~~~~~~~~~~
main.cpp: In function 'bool remove(Node&, const string&, int)':
main.cpp:25:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | if (p >= s.size()) {
| ~~^~~~~~~~~~~
main.cpp: In function 'int count(const Node&, const string&)':
main.cpp:44:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
44 | for (int p = 0; p < s.size(); p++) {
| ~~^~~~~~~~~~
main.cpp: In function 'int maxLen(const Node&, const string&)':
main.cpp:57:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
57 | for (int p = 0; p < s.size(); p++) {
| ~~^~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !