Borderou de evaluare (job #1518553)
Utilizator | Data | 5 noiembrie 2015 22:57:34 | |
---|---|---|---|
Problema | Autobuze3 | Status | done |
Runda | Arhiva ICPC | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void DFS(int)’:
user.cpp:75:20: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> > >::value_type {aka std::pair<int, int>}’ to ‘int’ for argument ‘1’ to ‘void DFS(int)’
DFS(G[x][i]);
^
user.cpp:76:28: error: no match for ‘operator[]’ (operand types are ‘std::vector<int> [200005]’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> > >::value_type {aka std::pair<int, int>}’)
fout<<"Drive "<<aut[G[x][i]][0]<<' '<<G[x][i]<<' '<<x<<'\n';
^
user.cpp:77:22: error: no match for ‘operator[]’ (operand types are ‘std::vector<int> [200005]’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> > >::value_type {aka std::pair<int, int>}’)
aut[x].pb(aut[G[x][i]][0]);
^
user.cpp:81:12: error: ‘val’ was not declared in this scope
if(val[aut[x][0]]<val[aut[x][i]])
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !