Borderou de evaluare (job #2905959)
Utilizator | Data | 24 mai 2022 17:48:54 | |
---|---|---|---|
Problema | Sortare topologica | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:3:1: error: 'ifstream' does not name a type
3 | ifstream in("sortaret.in");
| ^~~~~~~~
main.cpp:4:1: error: 'ofstream' does not name a type
4 | ofstream out("sortaret.out");
| ^~~~~~~~
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:5: error: 'in' was not declared in this scope; did you mean 'int'?
12 | in >> n >> m;
| ^~
| int
main.cpp:12:11: error: 'n' was not declared in this scope
12 | in >> n >> m;
| ^
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:31:9: error: 'out' was not declared in this scope
31 | out<< x << " ";
| ^~~
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 !