Borderou de evaluare (job #3327835)
| Utilizator | Data | 5 decembrie 2025 14:26:58 | |
|---|---|---|---|
| Problema | Flux maxim | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int bfs(int, int)':
main.cpp:13:5: error: 'queue' was not declared in this scope
13 | queue<int> q;
| ^~~~~
main.cpp:3:1: note: 'std::queue' is defined in header '<queue>'; did you forget to '#include <queue>'?
2 | #include <vector>
+++ |+#include <queue>
3 | using namespace std;
main.cpp:13:11: error: expected primary-expression before 'int'
13 | queue<int> q;
| ^~~
main.cpp:17:5: error: 'q' was not declared in this scope
17 | q.push(s);
| ^
main.cpp:48:5: error: 'reverse' was not declared in this scope
48 | reverse(path.begin(), path.end());
| ^~~~~~~
main.cpp:51:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | for(int i = 0; i < path.size() - 1; i++)
| ~~^~~~~~~~~~~~~~~~~
main.cpp:58:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
58 | for(int i = 0; i < path.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 !
