Borderou de evaluare (job #3145812)

Utilizator Pacurari_SofiaPacurari Sofia Pacurari_Sofia Data 17 august 2023 10:44:11
Problema Parcurgere DFS - componente conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:40:20: warning: pointer to a function used in arithmetic [-Wpointer-arith] 40 | dfs[nod]; | ^ main.cpp:40:20: warning: value computed is not used [-Wunused-value] 40 | dfs[nod]; | ~~~~~~~^ main.cpp:40:20: warning: statement has no effect [-Wunused-value] In file included from /usr/include/c++/12.2.1/string:47, from /usr/include/c++/12.2.1/bits/locale_classes.h:40, from /usr/include/c++/12.2.1/bits/ios_base.h:41, from /usr/include/c++/12.2.1/ios:42, from /usr/include/c++/12.2.1/ostream:38, from /usr/include/c++/12.2.1/iostream:39, from main.cpp:1: In constructor 'constexpr __gnu_cxx::__normal_iterator<_Iterator, _Container>::__normal_iterator(const _Iterator&) [with _Iterator = int*; _Container = std::vector<int>]', inlined from 'constexpr std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::begin() [with _Tp = int; _Alloc = std::allocator<int>]' at /usr/include/c++/12.2.1/bits/stl_vector.h:869:16, inlined from 'void dfs(int)' at main.cpp:16:28: /usr/include/c++/12.2.1/bits/stl_iterator.h:1073:9: warning: array subscript 300006 is outside array bounds of 'std::vector<int> [100002]' [-Warray-bounds] 1073 | : _M_current(__i) { } | ^~~~~~~~~~~~~~~ main.cpp: In function 'void dfs(int)': main.cpp:10:13: note: at offset 2400048 into object 'adj' of size 2400048 10 | vector<int> adj[nmax]; | ^~~ In constructor 'constexpr __gnu_cxx::__normal_iterator<_Iterator, _Container>::__normal_iterator(const _Iterator&) [with _Iterator = int*; _Container = std::vector<int>]', inlined from 'constexpr std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::end() [with _Tp = int; _Alloc = std::allocator<int>]' at /usr/include/c++/12.2.1/bits/stl_vector.h:889:16, inlined from 'void dfs(int)' at main.cpp:16:28: /usr/include/c++/12.2.1/bits/stl_iterator.h:1073:9: warning: array subscript 300007 is outside array bounds of 'std::vector<int> [100002]' [-Warray-bounds] 1073 | : _M_current(__i) { } | ^~~~~~~~~~~~~~~ main.cpp: In function 'void dfs(int)': main.cpp:10:13: note: at offset 2400056 into object 'adj' of size 2400048 10 | vector<int> adj[nmax]; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
111ms405kbKilled by Signal 110
211ms405kbKilled by Signal 110
311ms405kbKilled by Signal 110
411ms401kbKilled by Signal 110
511ms409kbKilled by Signal 110
611ms405kbKilled by Signal 110
711ms409kbKilled by Signal 110
811ms405kbKilled by Signal 110
911ms401kbKilled by Signal 110
1011ms401kbKilled by Signal 110
112ms405kbKilled by Signal 110
122ms405kbKilled by Signal 110
132ms405kbKilled by Signal 110
142ms405kbKilled by Signal 110
152ms405kbKilled by Signal 110
162ms401kbKilled by Signal 110
172ms405kbKilled by Signal 110
182ms405kbKilled by Signal 110
192ms405kbKilled by Signal 110
202ms401kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?