Borderou de evaluare (job #3323908)
| Utilizator | Data | 20 noiembrie 2025 12:49:24 | |
|---|---|---|---|
| Problema | Apm2 | Status | done |
| Runda | Arhiva Monthly | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:83:5: error: 'function' was not declared in this scope
83 | function<void(int,int)> dfs = [&](int nod,int tata){
| ^~~~~~~~
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:83:26: error: expression list treated as compound expression in functional cast [-fpermissive]
83 | function<void(int,int)> dfs = [&](int nod,int tata){
| ^
main.cpp:83:14: error: expected primary-expression before 'void'
83 | function<void(int,int)> dfs = [&](int nod,int tata){
| ^~~~
main.cpp:98:5: error: 'dfs' was not declared in this scope
98 | dfs(1,0); //pornesc DFS cu 1
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
