Borderou de evaluare (job #2545877)
Utilizator | Data | 13 februarie 2020 17:19:02 | |
---|---|---|---|
Problema | Retele | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:1: error: 'stack' does not name a type
stack<int> st;
^~~~~
main.cpp: In function 'void dfs1(int)':
main.cpp:26:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < gr[nod].size(); i++) {
~~^~~~~~~~~~~~~~~~
main.cpp:31:5: error: 'st' was not declared in this scope
st.push(nod);
^~
main.cpp: In function 'void dfs2(int)':
main.cpp:36:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < g[nod].size(); i++) {
~~^~~~~~~~~~~~~~~
main.cpp: In function 'void rezolve()':
main.cpp:49:13: error: 'st' was not declared in this scope
while (!st.empty()) {
^~
main.cpp:65:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < ans[i].size(); j++)
~~^~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !