Borderou de evaluare (job #3269620)

Utilizator saskaMagyari-Saska Zsombor saska Data 20 ianuarie 2025 08:43:21
Problema Detective Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void reconstruct_tree(const std::string&, const std::string&)': main.cpp:46:5: error: 'function' was not declared in this scope 46 | function<void(int)> dfs = [&](int node) { | ^~~~~~~~ main.cpp:8:1: note: 'std::function' is defined in header '<functional>'; did you forget to '#include <functional>'? 7 | #include <algorithm> +++ |+#include <functional> 8 | main.cpp:46:14: error: expected primary-expression before 'void' 46 | function<void(int)> dfs = [&](int node) { | ^~~~ main.cpp:57:5: error: 'dfs' was not declared in this scope 57 | dfs(0); | ^~~ Non zero exit status: 1

Ceva nu functioneaza?