Borderou de evaluare (job #2793793)
Utilizator | Data | 4 noiembrie 2021 01:04:56 | |
---|---|---|---|
Problema | Parcurgere DFS - componente conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:2: error: 'vector' does not name a type
8 | vector<int>init;
| ^~~~~~
main.cpp:9:2: error: 'vector' does not name a type
9 | vector<int>fin;
| ^~~~~~
main.cpp:40:22: error: 'vector' has not been declared
40 | void dfs(int start, vector<int>& vizit) {
| ^~~~~~
main.cpp:40:28: error: expected ',' or '...' before '<' token
40 | void dfs(int start, vector<int>& vizit) {
| ^
main.cpp:81:19: error: 'vector' has not been declared
81 | bool check_vizit(vector<int>vizit) {
| ^~~~~~
main.cpp:81:25: error: expected ',' or '...' before '<' token
81 | bool check_vizit(vector<int>vizit) {
| ^
main.cpp:116:2: error: expected ';' after class definition
116 | }
| ^
| ;
main.cpp: In constructor 'Graf::Graf()':
main.cpp:17:3: error: 'ifstream' was not declared in this scope
17 | ifstream f("bfs.in");
| ^~~~~~~~
main.cpp:19:3: error: 'f' was not declared in this scope
19 | f >> nr_noduri;
| ^
main.cpp:24:4: error: 'init' was not declared in this scope; did you mean 'int'?
24 | init.push_back(x);
| ^~~~
| int
main.cpp:25:4: error: 'fin' was not declared in this scope
25 | fin.push_back(y);
| ^~~
main.cpp: In member function 'void Graf::dfs(int, int)':
main.cpp:43:3: error: 'vector' was not declared in this scope
43 | vector<vector<int>> lista;
| ^~~~~~
main.cpp:43:17: error: expected primary-expression before 'int'
43 | vector<vector<int>> lista;
| ^~~
main.cpp:44:3: error: 'lista' was not declared in this scope
44 | lista.resize(get_nr_noduri() + 1);
| ^~~~~
main.cpp:48:10: error: 'init' was not declared in this scope; did you mean 'int'?
48 | lista[init[i]].push_back(fin[i]);
| ^~~~
| int
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !