Borderou de evaluare (job #2961601)
Utilizator | Data | 6 ianuarie 2023 19:05:42 | |
---|---|---|---|
Problema | Ciclu Eulerian | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:18:10: error: 'stack' in namespace 'std' does not name a template type
18 | std::stack<int> s;
| ^~~~~
main.cpp:4:1: note: 'std::stack' is defined in header '<stack>'; did you forget to '#include <stack>'?
3 | #include <queue>
+++ |+#include <stack>
4 |
main.cpp: In member function 'void Graph::dfs(int)':
main.cpp:31:9: error: 's' was not declared in this scope
31 | s.push(k);
| ^
main.cpp: In member function 'void Graph::tarjan(int)':
main.cpp:81:9: error: 's' was not declared in this scope
81 | s.push(k);
| ^
main.cpp: In member function 'std::vector<int> Graph::topologicalSort()':
main.cpp:152:18: error: 's' was not declared in this scope
152 | while ( !s.empty() ){
| ^
main.cpp: In member function 'std::vector<int> Graph::DAG_distance(int)':
main.cpp:245:18: error: 's' was not declared in this scope
245 | while ( !s.empty() ){
| ^
main.cpp: In member function 'std::vector<int> Graph::eulerianCycle(int)':
main.cpp:257:16: error: 's' was not declared in this scope
257 | while(!s.empty())
| ^
main.cpp:259:9: error: 's' was not declared in this scope
259 | s.push(start);
| ^
main.cpp: In function 'int main()':
main.cpp:319:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
319 | for (int i = 0; i < cycle.size() - 1; ++i) {
| ~~^~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !