Borderou de evaluare (job #2905960)
Utilizator | Data | 24 mai 2022 17:49:54 | |
---|---|---|---|
Problema | Sortare topologica | 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
8 | vector<int> a[35000];
| ^~~~~~
main.cpp: In function 'int main()':
main.cpp:12:11: error: 'n' was not declared in this scope; did you mean 'in'?
12 | in >> n >> m;
| ^
| in
main.cpp:12:16: error: 'm' was not declared in this scope; did you mean 'tm'?
12 | in >> n >> m;
| ^
| tm
main.cpp:17:9: error: 'a' was not declared in this scope
17 | a[x].push_back(y);
| ^
main.cpp:21:5: error: 'queue' was not declared in this scope
21 | queue<int> q;
| ^~~~~
main.cpp:2:1: note: 'std::queue' is defined in header '<queue>'; did you forget to '#include <queue>'?
1 | #include <fstream>
+++ |+#include <queue>
2 |
main.cpp:21:11: error: expected primary-expression before 'int'
21 | queue<int> q;
| ^~~
main.cpp:25:13: error: 'q' was not declared in this scope
25 | q.push(i);
| ^
main.cpp:28:12: error: 'q' was not declared in this scope
28 | while(!q.empty())
| ^
main.cpp:33:21: error: 'a' was not declared in this scope
33 | for(auto y: a[x])
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !