Borderou de evaluare (job #2960325)
Utilizator | Data | 4 ianuarie 2023 01:12:59 | |
---|---|---|---|
Problema | Flux maxim | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:18:1: error: 'vector' does not name a type
18 | vector<int> adj[MAXN];
| ^~~~~~
main.cpp: In function 'void addEdge(int, int, int)':
main.cpp:21:5: error: 'adj' was not declared in this scope
21 | adj[u].push_back(v);
| ^~~
main.cpp: In function 'bool bfs()':
main.cpp:28:5: error: 'queue' was not declared in this scope
28 | queue<int> q;
| ^~~~~
main.cpp:6:1: note: 'std::queue' is defined in header '<queue>'; did you forget to '#include <queue>'?
5 | #include <algorithm>
+++ |+#include <queue>
6 | using namespace std;
main.cpp:28:11: error: expected primary-expression before 'int'
28 | queue<int> q;
| ^~~
main.cpp:29:5: error: 'q' was not declared in this scope
29 | q.push(source);
| ^
main.cpp:33:21: error: 'adj' was not declared in this scope
33 | for(int v : adj[u]) {
| ^~~
main.cpp: In function 'int dfs(int, int, int)':
main.cpp:46:34: error: 'adj' was not declared in this scope
46 | for(int &i = current[u]; i < adj[u].size(); i++) {
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !