Borderou de evaluare (job #2795748)

Utilizator lalalaura_022Udroiu Laura-Ioana lalalaura_022 Data 6 noiembrie 2021 21:42:11
Problema Parcurgere DFS - componente conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:1:2: error: stray '#' in program 1 | +#include <bits/stdc++.h> | ^ main.cpp:1:1: error: expected unqualified-id before '+' token 1 | +#include <bits/stdc++.h> | ^ main.cpp:5:1: error: 'ifstream' does not name a type 5 | ifstream f("bfs.in"); | ^~~~~~~~ main.cpp:6:1: error: 'ofstream' does not name a type 6 | ofstream g("bfs.out"); | ^~~~~~~~ main.cpp:11:5: error: 'vector' does not name a type 11 | vector<vector<int> > lista_muchii; | ^~~~~~ main.cpp:14:20: error: 'vector' has not been declared 14 | void DFSx(int nod, vector<int>&v); | ^~~~~~ main.cpp:14:26: error: expected ',' or '...' before '<' token 14 | void DFSx(int nod, vector<int>&v); | ^ main.cpp: In constructor 'graf::graf(int, int, bool)': main.cpp:37:5: error: 'lista_muchii' was not declared in this scope 37 | lista_muchii.resize(nr_noduri+1); | ^~~~~~~~~~~~ main.cpp:45:9: error: 'f' was not declared in this scope 45 | f>>nod1>>nod2; | ^ main.cpp: In member function 'void graf::BFS(int)': main.cpp:61:5: error: 'queue' was not declared in this scope 61 | queue<int> q; | ^~~~~ main.cpp:61:11: error: expected primary-expression before 'int' 61 | queue<int> q; | ^~~ main.cpp:63:5: error: 'vector' was not declared in this scope 63 | vector<int>vizitat; | ^~~~~~ main.cpp:63:12: error: expected primary-expression before 'int' 63 | vector<int>vizitat; | ^~~ main.cpp:64:12: error: expected primary-expression before 'int' 64 | vector<int>distanta; | ^~~ main.cpp:66:5: error: 'q' was not declared in this scope 66 | q.push(inceput); | ^ main.cpp:70:9: error: 'vizitat' was not declared in this scope 70 | vizitat.push_back(0); | ^~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?