Borderou de evaluare (job #2675820)

Utilizator geo_uwuManolachi George geo_uwu Data 22 noiembrie 2020 16:45:38
Problema Sediu Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void DFS(int)': main.cpp:15:23: error: 'begin' was not declared in this scope for(auto it: G[nod]) ^ main.cpp:15:23: 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:15:23: error: 'end' was not declared in this scope for(auto it: G[nod]) ^ main.cpp:15:23: 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' main.cpp: In function 'int main()': main.cpp:40:14: error: request for member 'push_back' in 'G.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}' G[x].push_back(y); ^~~~~~~~~ main.cpp:41:14: error: request for member 'push_back' in 'G.std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(((std::vector<int>::size_type)y))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}' G[y].push_back(x); ^~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?