Borderou de evaluare (job #2738428)
Utilizator | Data | 5 aprilie 2021 20:16:25 | |
---|---|---|---|
Problema | Flux maxim | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void read()':
main.cpp:57:14: error: request for member 'push_back' in 'v.std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(((std::vector<int>::size_type)x))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
v[x].push_back(y);
^~~~~~~~~
main.cpp: In function 'bool bfs(int, int)':
main.cpp:73:25: error: 'begin' was not declared in this scope
for(int i: v[nod]){
^
main.cpp:73:25: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:95:0,
from main.cpp:1:
/usr/include/c++/6/valarray:1206:5: note: 'std::begin'
begin(const valarray<_Tp>& __va)
^~~~~
/usr/include/c++/6/valarray:1206:5: note: 'std::begin'
main.cpp:73:25: error: 'end' was not declared in this scope
for(int i: v[nod]){
^
main.cpp:73:25: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:95:0,
from main.cpp:1:
/usr/include/c++/6/valarray:1226:5: note: 'std::end'
end(const valarray<_Tp>& __va)
^~~
/usr/include/c++/6/valarray:1226:5: note: 'std::end'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !