Borderou de evaluare (job #2551414)
Utilizator | Data | 19 februarie 2020 20:11:19 | |
---|---|---|---|
Problema | Sabin | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:55:5: error: 'optional' does not name a type
optional<T> data;
^~~~~~~~
main.cpp:76:5: error: 'optional' does not name a type
optional<T> get(const string& s) {
^~~~~~~~
main.cpp: In member function 'void english_char_trie<T>::forEach(std::function<void(T)>)':
main.cpp:87:13: error: 'data' was not declared in this scope
if (data) fn(data.value());
^~~~
main.cpp: In member function 'void hyper_english_char_trie::insert(const std::vector<std::__cxx11::basic_string<char> >&)':
main.cpp:108:33: error: 'struct english_char_trie<hyper_english_char_trie*>' has no member named 'get'; did you mean 'set'?
if (!root->children.get(hyper_char))
^~~
main.cpp:111:35: error: 'struct english_char_trie<hyper_english_char_trie*>' has no member named 'get'; did you mean 'set'?
root = root->children.get(hyper_char).value();
^~~
main.cpp: In member function 'int hyper_english_char_trie::count_prefix(int, const std::vector<std::__cxx11::basic_string<char> >&)':
main.cpp:121:36: error: 'struct english_char_trie<hyper_english_char_trie*>' has no member named 'get'; did you mean 'set'?
if (root->children.get(hyper_char))
^~~
main.cpp:122:43: error: 'struct english_char_trie<hyper_english_char_trie*>' has no member named 'get'; did you mean 'set'?
ans -= root->children.get(hyper_char).value()->cnt;
^~~
main.cpp:125:33: error: 'struct english_char_trie<hyper_english_char_trie*>' has no member named 'get'; did you mean 'set'?
if (!root->children.get(hyper_char))
^~~
main.cpp:127:35: error: 'struct english_char_trie<hyper_english_char_trie*>' has no member named 'get'; did you mean 'set'?
root = root->children.get(hyper_char).value();
^~~
main.cpp: In instantiation of 'void english_char_trie<T>::set(const string&, const T&) [with T = hyper_english_char_trie*; std::__cxx11::string = std::__cxx11::basic_string<char>]':
main.cpp:109:77: required from here
main.cpp:73:15: error: 'struct english_char_trie<hyper_english_char_trie*>' has no member named 'data'
root->data = value;
~~~~~~^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !