Borderou de evaluare (job #2313165)

Utilizator cezar.plescaCezar Plesca cezar.plesca Data 6 ianuarie 2019 11:00:28
Problema Aho-Corasick Status done
Runda Arhiva educationala Compilator cpp-32 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:22: error: 'tr1' is not a namespace-name using namespace std::tr1; ^~~ main.cpp:9:25: error: expected namespace-name before ';' token using namespace std::tr1; ^ main.cpp:15:2: error: 'list' does not name a type list<string> output; ^~~~ main.cpp: In function 'void addToTree()': main.cpp:35:18: error: 'strlen' was not declared in this scope int l=strlen(cuv); ^ main.cpp:56:12: error: '__gnu_cxx::__alloc_traits<std::allocator<Nod> >::value_type {aka struct Nod}' has no member named 'output' tree[nod].output.push_back(S); ^~~~~~ main.cpp: In function 'void secondPhase()': main.cpp:85:13: error: '__gnu_cxx::__alloc_traits<std::allocator<Nod> >::value_type {aka struct Nod}' has no member named 'output' tree[u].output.insert(tree[u].output.end(), tree[f[u]].output.begin(), tree[f[u]].output.end()); ^~~~~~ main.cpp:85:35: error: '__gnu_cxx::__alloc_traits<std::allocator<Nod> >::value_type {aka struct Nod}' has no member named 'output' tree[u].output.insert(tree[u].output.end(), tree[f[u]].output.begin(), tree[f[u]].output.end()); ^~~~~~ main.cpp:85:60: error: '__gnu_cxx::__alloc_traits<std::allocator<Nod> >::value_type {aka struct Nod}' has no member named 'output' tree[u].output.insert(tree[u].output.end(), tree[f[u]].output.begin(), tree[f[u]].output.end()); ^~~~~~ main.cpp:85:87: error: '__gnu_cxx::__alloc_traits<std::allocator<Nod> >::value_type {aka struct Nod}' has no member named 'output' tree[u].output.insert(tree[u].output.end(), tree[f[u]].output.begin(), tree[f[u]].output.end()); ^~~~~~ main.cpp: In function 'void searchText()': main.cpp:93:16: error: 'strlen' was not declared in this scope int m=strlen(T); ^ main.cpp:94:2: error: 'list' was not declared in this scope list<string>::iterator it; ^~~~ main.cpp:94:13: error: expected primary-expression before '>' token list<string>::iterator it; ^ main.cpp:94:25: error: missing template arguments before 'it' list<string>::iterator it; ^~ main.cpp:101:15: error: '__gnu_cxx::__alloc_traits<std::allocator<Nod> >::value_type {aka struct Nod}' has no member named 'output' if(!tree[q].output.empty()){ ^~~~~~ main.cpp:102:8: error: 'it' was not declared in this scope for(it=tree[q].output.begin(); it!=tree[q].output.end(); it++){ ^~ main.cpp:102:19: error: '__gnu_cxx::__alloc_traits<std::allocator<Nod> >::value_type {aka struct Nod}' has no member named 'output' for(it=tree[q].output.begin(); it!=tree[q].output.end(); it++){ Non zero exit status: 1

Ceva nu functioneaza?