Borderou de evaluare (job #2681658)

Utilizator crucerucalinCalin-Cristian Cruceru crucerucalin Data 6 decembrie 2020 11:25:36
Problema Aho-Corasick Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'std::stack<const node_t*> fix_backlinks(node_t&)': main.cpp:41:53: error: expected ')' before ';' token if (auto *child = curr_node->children[i].get(); child != nullptr) { ^ main.cpp:41:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (auto *child = curr_node->children[i].get(); child != nullptr) { ^~ main.cpp:41:55: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' if (auto *child = curr_node->children[i].get(); child != nullptr) { ^~~~~ main.cpp:41:17: warning: unused variable 'child' [-Wunused-variable] if (auto *child = curr_node->children[i].get(); child != nullptr) { ^~~~~ main.cpp:41:55: error: 'child' was not declared in this scope if (auto *child = curr_node->children[i].get(); child != nullptr) { ^~~~~ main.cpp: In function 'void aggregate_node_counts(std::stack<const node_t*>, std::unordered_map<const node_t*, int>&)': main.cpp:69:43: error: expected ')' before ';' token if (auto it = counts.find(curr_node); it != end(counts)) { ^ main.cpp:69:43: error: could not convert 'it' from 'std::__detail::_Node_iterator<std::pair<const node_t* const, int>, false, false>' to 'bool' main.cpp:69:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (auto it = counts.find(curr_node); it != end(counts)) { ^~ main.cpp:69:45: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' if (auto it = counts.find(curr_node); it != end(counts)) { ^~ main.cpp:69:45: error: 'it' was not declared in this scope Non zero exit status: 1

Ceva nu functioneaza?