Borderou de evaluare (job #2655210)
Utilizator | Data | 3 octombrie 2020 16:57:53 | |
---|---|---|---|
Problema | Srevni | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In lambda function:
main.cpp:23:9: error: 'stiva' is not captured
stiva.push_back(s);
^~~~~
main.cpp:21:16: note: the lambda has no capture-default
dfs = [&dfs](int s)
^
main.cpp:19:22: note: 'std::vector<int> stiva' declared here
std::vector<int> stiva;
^~~~~
main.cpp:40:24: error: 'stiva' is not captured
back = stiva.back();
^~~~~
main.cpp:21:16: note: the lambda has no capture-default
dfs = [&dfs](int s)
^
main.cpp:19:22: note: 'std::vector<int> stiva' declared here
std::vector<int> stiva;
^~~~~
main.cpp:41:17: error: 'stiva' is not captured
stiva.pop_back();
^~~~~
main.cpp:21:16: note: the lambda has no capture-default
dfs = [&dfs](int s)
^
main.cpp:19:22: note: 'std::vector<int> stiva' declared here
std::vector<int> stiva;
^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !