Borderou de evaluare (job #3375857)
| Utilizator | Data | 14 noiembrie 2026 10:28:32 | |
|---|---|---|---|
| Problema | Sortare topologica | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void bsf()':
main.cpp:18:41: error: request for member 'size' in 'graf.std::vector<int>::operator[](((std::vector<int>::size_type)cnt))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
18 | for(int k=0;k<graf[cnt].size();k++)
| ^~~~
main.cpp:19:29: error: 'viz' was not declared in this scope
19 | if(!viz[graf[cnt][k])
| ^~~
main.cpp:19:42: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
19 | if(!viz[graf[cnt][k])
| ^
main.cpp:19:45: error: expected ']' before ')' token
19 | if(!viz[graf[cnt][k])
| ^
| ]
main.cpp:21:58: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
21 | int nod_vecin = graf[cnt][k];
| ^
main.cpp:23:35: error: 'class std::queue<int>' has no member named 'push_back'
23 | q.push_back(nod_vecin);
| ^~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:30:11: error: 'class std::queue<int>' has no member named 'push_back'
30 | q.push_back(1);
| ^~~~~~~~~
main.cpp:31:9: error: 'viz' was not declared in this scope
31 | viz[1]=1;
| ^~~
main.cpp:32:9: error: 'bfs' was not declared in this scope; did you mean 'ffs'?
32 | bfs();
| ^~~
| ffs
main.cpp: In function 'void read()':
main.cpp:41:25: error: request for member 'push_back' in 'graf.std::vector<int>::operator[](((std::vector<int>::size_type)x))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
41 | graf[x].push_back(y);
| ^~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
