Borderou de evaluare (job #2370273)

Utilizator andrei.arnautuAndi Arnautu andrei.arnautu Data 6 martie 2019 11:26:04
Problema Treespotting Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:11:6: error: 'vector' in namespace 'std' does not name a template type std::vector<std::vector<int > > tree_edges, other_edges; ^~~~~~ main.cpp:13:6: error: 'vector' in namespace 'std' does not name a template type std::vector<int > stack, depth, node_type, value; ^~~~~~ main.cpp: In function 'void ReadInput()': main.cpp:18:3: error: 'tree_edges' was not declared in this scope tree_edges = other_edges = std::vector<std::vector<int > > (static_cast<unsigned long>(n + 1)); ^~~~~~~~~~ main.cpp:18:16: error: 'other_edges' was not declared in this scope tree_edges = other_edges = std::vector<std::vector<int > > (static_cast<unsigned long>(n + 1)); ^~~~~~~~~~~ main.cpp:18:30: error: 'vector' is not a member of 'std' tree_edges = other_edges = std::vector<std::vector<int > > (static_cast<unsigned long>(n + 1)); ^~~ main.cpp:18:42: error: 'vector' is not a member of 'std' tree_edges = other_edges = std::vector<std::vector<int > > (static_cast<unsigned long>(n + 1)); ^~~ main.cpp:18:54: error: expected primary-expression before 'int' tree_edges = other_edges = std::vector<std::vector<int > > (static_cast<unsigned long>(n + 1)); ^~~ main.cpp: In function 'void DFS(int, int)': main.cpp:31:3: error: 'stack' was not declared in this scope stack[current_depth] = node; ^~~~~ main.cpp:32:3: error: 'depth' was not declared in this scope depth[node] = current_depth; ^~~~~ main.cpp:33:3: error: 'node_type' was not declared in this scope node_type[node] = 1; ^~~~~~~~~ main.cpp:35:20: error: 'other_edges' was not declared in this scope for (auto next : other_edges[node]) { ^~~~~~~~~~~ main.cpp:37:7: error: 'value' was not declared in this scope value[stack[depth[next] + 1]]++; ^~~~~ main.cpp:40:7: error: 'value' was not declared in this scope value[1]++; ^~~~~ main.cpp:46:20: error: 'tree_edges' was not declared in this scope for (auto next : tree_edges[node]) { ^~~~~~~~~~ main.cpp: In function 'void Propagate(int, int)': main.cpp:55:20: error: 'tree_edges' was not declared in this scope for (auto next : tree_edges[node]) { ^~~~~~~~~~ main.cpp:57:7: error: 'value' was not declared in this scope value[next] += value[node]; Non zero exit status: 1

Ceva nu functioneaza?