Borderou de evaluare (job #2527378)
Utilizator | Data | 20 ianuarie 2020 11:07:55 | |
---|---|---|---|
Problema | Ciclu Eulerian | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:1: error: 'vector' does not name a type
vector< pair<int, int> >graf[MAX + 1];
^~~~~~
main.cpp:9:1: error: 'vector' does not name a type
vector<int> listNodes;
^~~~~~
main.cpp: In function 'void DFS(int)':
main.cpp:15:5: error: 'listNodes' was not declared in this scope
listNodes.push_back(nod);
^~~~~~~~~
main.cpp:17:18: error: 'graf' was not declared in this scope
for(auto i : graf[nod])
^~~~
main.cpp: In function 'int main()':
main.cpp:42:9: error: 'graf' was not declared in this scope
graf[a].push_back({b, edgeCounter});
^~~~
main.cpp:50:5: error: 'listNodes' was not declared in this scope
listNodes.pop_back();
^~~~~~~~~
main.cpp:51:43: error: unable to deduce 'auto&&' from 'listNodes'
if(edgeNr == edgeCounter)for(auto i : listNodes)fout << i << " ";
^~~~~~~~~
main.cpp:31:18: warning: unused variable 'j' [-Wunused-variable]
int n, m, i, j, a, b;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !