Borderou de evaluare (job #2647403)

Utilizator nicu_ducalNicu Ducal nicu_ducal Data 4 septembrie 2020 14:09:08
Problema Aho-Corasick Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In member function 'void Trie::build_suffix_links()': main.cpp:100:19: error: expected unqualified-id before '[' token for (auto [ch, node]: root->children) { ^ main.cpp:100:19: error: expected ';' before '[' token main.cpp:100:20: error: 'ch' was not declared in this scope for (auto [ch, node]: root->children) { ^~ main.cpp:100:24: error: 'node' was not declared in this scope for (auto [ch, node]: root->children) { ^~~~ main.cpp: In lambda function: main.cpp:100:29: error: expected '{' before ':' token for (auto [ch, node]: root->children) { ^ main.cpp: In member function 'void Trie::build_suffix_links()': main.cpp:100:29: error: expected ';' before ':' token main.cpp:100:29: error: expected primary-expression before ':' token main.cpp:100:29: error: expected ')' before ':' token main.cpp:100:29: error: expected primary-expression before ':' token main.cpp:110:23: error: expected unqualified-id before '[' token for (auto [ch, node]: cur->children) { ^ main.cpp:110:23: error: expected ';' before '[' token main.cpp:110:24: error: 'ch' was not declared in this scope for (auto [ch, node]: cur->children) { ^~ main.cpp:110:28: error: 'node' was not declared in this scope for (auto [ch, node]: cur->children) { ^~~~ main.cpp: In lambda function: main.cpp:110:33: error: expected '{' before ':' token for (auto [ch, node]: cur->children) { ^ main.cpp: In member function 'void Trie::build_suffix_links()': main.cpp:110:33: error: expected ';' before ':' token main.cpp:110:33: error: expected primary-expression before ':' token main.cpp:110:33: error: expected ')' before ':' token main.cpp:110:33: error: expected primary-expression before ':' token main.cpp: In member function 'int Trie::count(std::__cxx11::string)': main.cpp:166:5: warning: control reaches end of non-void function [-Wreturn-type] } ^ Non zero exit status: 1

Ceva nu functioneaza?