Borderou de evaluare (job #2955976)

Utilizator matthriscuMatt . matthriscu Data 18 decembrie 2022 13:40:47
Problema Lowest Common Ancestor Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'std::vector<int> tarjan_offline(const std::vector<std::vector<int> >&, const std::vector<std::vector<std::pair<int, int> > >&)': main.cpp:48:77: error: missing template arguments before '{' token 48 | vector<int> ans(transform_reduce(queries.begin(), queries.end(), 0, plus{}, | ^ main.cpp:49:38: error: 'size' was not declared in this scope; did you mean 'dysize'? 49 | size<decltype(queries[0])>) / 2); | ^~~~ | dysize main.cpp:49:43: error: expected primary-expression before 'decltype' 49 | size<decltype(queries[0])>) / 2); | ^~~~~~~~~~~~~~~~~~~~ main.cpp:48:21: error: 'transform_reduce' was not declared in this scope 48 | vector<int> ans(transform_reduce(queries.begin(), queries.end(), 0, plus{}, | ^~~~~~~~~~~~~~~~ main.cpp: In lambda function: main.cpp:62:19: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' 62 | for (auto [other_node, index] : queries[current]) | ^ Non zero exit status: 1

Ceva nu functioneaza?