Borderou de evaluare (job #3233770)
Utilizator | Data | 4 iunie 2024 20:37:38 | |
---|---|---|---|
Problema | Pitici4 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int findMaxNonContradictory(const std::vector<std::pair<int, int> >&)':
main.cpp:27:5: error: 'function' was not declared in this scope
27 | function<int(int)> dfs = [&](int node) {
| ^~~~~~~~
main.cpp:5:1: note: 'std::function' is defined in header '<functional>'; did you forget to '#include <functional>'?
4 | #include <algorithm>
+++ |+#include <functional>
5 |
main.cpp:27:14: error: expected primary-expression before 'int'
27 | function<int(int)> dfs = [&](int node) {
| ^~~
main.cpp:41:60: error: 'dfs' was not declared in this scope
41 | maxNonContradictory = max(maxNonContradictory, dfs(i));
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !