Borderou de evaluare (job #3375858)
| Utilizator | Data | 14 noiembrie 2026 10:30:10 | |
|---|---|---|---|
| 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:19: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'}
19 | for(int k=0;k<graf[cnt].size();k++)
| ^~~~
main.cpp:20:42: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
20 | if(!viz[graf[cnt][k]])
| ^
main.cpp:22:58: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
22 | int nod_vecin = graf[cnt][k];
| ^
main.cpp: In function 'int main()':
main.cpp:33:9: error: 'bfs' was not declared in this scope; did you mean 'ffs'?
33 | bfs();
| ^~~
| ffs
main.cpp: In function 'void read()':
main.cpp:42:25: error: request for member 'push' 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'}
42 | graf[x].push(y);
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
