Borderou de evaluare (job #3160515)
Utilizator | Data | 24 octombrie 2023 13:28:47 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:6: error: variable or field 'citire' declared void
11 | void citire(unordered_map<int,vector<int>> &lista,int nr_muchii){
| ^~~~~~
main.cpp:11:13: error: 'unordered_map' was not declared in this scope
11 | void citire(unordered_map<int,vector<int>> &lista,int nr_muchii){
| ^~~~~~~~~~~~~
main.cpp:7:1: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
6 | #include<queue>
+++ |+#include <unordered_map>
7 | using namespace std;
main.cpp:11:27: error: expected primary-expression before 'int'
11 | void citire(unordered_map<int,vector<int>> &lista,int nr_muchii){
| ^~~
main.cpp:11:41: error: expected primary-expression before '>' token
11 | void citire(unordered_map<int,vector<int>> &lista,int nr_muchii){
| ^~
main.cpp:11:45: error: 'lista' was not declared in this scope
11 | void citire(unordered_map<int,vector<int>> &lista,int nr_muchii){
| ^~~~~
main.cpp:11:51: error: expected primary-expression before 'int'
11 | void citire(unordered_map<int,vector<int>> &lista,int nr_muchii){
| ^~~
main.cpp:26:25: error: 'unordered_map' has not been declared
26 | void bfs(int nod_start, unordered_map<int,vector<int>> lista, vector<int> &rezultat, int nr_noduri){
| ^~~~~~~~~~~~~
main.cpp:26:38: error: expected ',' or '...' before '<' token
26 | void bfs(int nod_start, unordered_map<int,vector<int>> lista, vector<int> &rezultat, int nr_noduri){
| ^
main.cpp: In function 'void bfs(int, int)':
main.cpp:29:26: error: 'nr_noduri' was not declared in this scope
29 | vector<bool>vizitate(nr_noduri,false);
| ^~~~~~~~~
main.cpp:31:5: error: 'rezultat' was not declared in this scope
31 | rezultat[nod_start-1]=0;
| ^~~~~~~~
main.cpp:36:13: error: 'lista' was not declared in this scope
36 | if(!lista[copie].empty()){
| ^~~~~
main.cpp: In function 'int main()':
main.cpp:57:5: error: 'unordered_map' was not declared in this scope
57 | unordered_map<int,vector<int>>lista_adiac;
| ^~~~~~~~~~~~~
main.cpp:57:5: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
main.cpp:57:19: error: expected primary-expression before 'int'
57 | unordered_map<int,vector<int>>lista_adiac;
| ^~~
main.cpp:61:12: error: 'lista_adiac' was not declared in this scope
61 | citire(lista_adiac,nr_muchii);
| ^~~~~~~~~~~
main.cpp:61:5: error: 'citire' was not declared in this scope; did you mean 'ctime'?
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !