Borderou de evaluare (job #2964600)
Utilizator | Data | 13 ianuarie 2023 13:28:22 | |
---|---|---|---|
Problema | Drumuri2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:1:1: error: 'g' does not name a type
1 | g namespace std;
| ^
main.cpp:2:1: error: 'ifstream' does not name a type
2 | ifstream f("johnie.in");
| ^~~~~~~~
main.cpp:3:1: error: 'ofstream' does not name a type
3 | ofstream g("johnie.out");
| ^~~~~~~~
main.cpp:5:1: error: 'unordered_map' does not name a type
5 | unordered_map<int, vector<int>> drum;
| ^~~~~~~~~~~~~
main.cpp:6:1: error: 'vector' does not name a type
6 | vector<vector <pair<int, int>>> lista;
| ^~~~~~
main.cpp:7:1: error: 'vector' does not name a type
7 | vector<bool> viz;
| ^~~~~~
main.cpp: In function 'void DFS(int)':
main.cpp:10:5: error: 'pair' was not declared in this scope
10 | pair < int, int > per;
| ^~~~
main.cpp:10:12: error: expected primary-expression before 'int'
10 | pair < int, int > per;
| ^~~
main.cpp:11:5: error: 'lista' was not declared in this scope
11 | lista.resize(n + 1);
| ^~~~~
main.cpp:14:9: error: 'per' was not declared in this scope
14 | per = lista[s].back();
| ^~~
main.cpp:18:13: error: 'viz' was not declared in this scope
18 | if (viz[v] == false)
| ^~~
main.cpp:25:9: error: 'drum' was not declared in this scope
25 | drum[nr].push_back(s);
| ^~~~
main.cpp: In function 'int main()':
main.cpp:31:5: error: 'f' was not declared in this scope
31 | f >> n >> m;
| ^
main.cpp:32:5: error: 'lista' was not declared in this scope
32 | lista.resize(n + 1);
| ^~~~~
main.cpp:33:5: error: 'viz' was not declared in this scope
33 | viz.resize(m + n + 1, 0);
| ^~~
main.cpp:48:5: error: 'g' was not declared in this scope
48 | g << --nr << '\n';
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !