Borderou de evaluare (job #2779394)

Utilizator guzgandemunteIonescu Laura guzgandemunte Data 3 octombrie 2021 16:43:00
Problema Sortare topologica Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:17:17: error: 'int time' redeclared as different kind of entity 17 | int V, E, x, y, time; | ^~~~ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/10/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c++/10/bits/gthr.h:148, from /usr/include/c++/10/ext/atomicity.h:35, from /usr/include/c++/10/bits/ios_base.h:39, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from main.cpp:1: /usr/include/time.h:75:15: note: previous declaration 'time_t time(time_t*)' 75 | extern time_t time (time_t *__timer) __THROW; | ^~~~ main.cpp: In function 'void DFS_visit(int)': main.cpp:26:17: warning: pointer to a function used in arithmetic [-Wpointer-arith] 26 | time = time + 1; | ~~~~~^~~ main.cpp:26:10: error: assignment of function 'time_t time(time_t*)' 26 | time = time + 1; | ~~~~~^~~~~~~~~~ main.cpp:30:17: warning: pointer to a function used in arithmetic [-Wpointer-arith] 30 | time = time + 1; | ~~~~~^~~ main.cpp:30:10: error: assignment of function 'time_t time(time_t*)' 30 | time = time + 1; | ~~~~~^~~~~~~~~~ main.cpp:32:29: error: no match for 'operator=' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} and 'std::pair<int, long int (*)(long int*)>') 32 | F[u] = make_pair(u, time); | ^ In file included from /usr/include/c++/10/bits/stl_algobase.h:64, from /usr/include/c++/10/bits/char_traits.h:39, from /usr/include/c++/10/ios:40, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from main.cpp:1: /usr/include/c++/10/bits/stl_pair.h:390:7: note: candidate: 'std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(typename std::conditional<std::__and_<std::is_copy_assignable<_T1>, std::is_copy_assignable<_T2> >::value, const std::pair<_T1, _T2>&, const std::__nonesuch&>::type) [with _T1 = int; _T2 = int; typename std::conditional<std::__and_<std::is_copy_assignable<_T1>, std::is_copy_assignable<_T2> >::value, const std::pair<_T1, _T2>&, const std::__nonesuch&>::type = const std::pair<int, int>&]' 390 | operator=(typename conditional< | ^~~~~~~~ /usr/include/c++/10/bits/stl_pair.h:393:41: note: no known conversion for argument 1 from 'std::pair<int, long int (*)(long int*)>' to 'std::conditional<true, const std::pair<int, int>&, const std::__nonesuch&>::type' {aka 'const std::pair<int, int>&'} 390 | operator=(typename conditional< | ~~~~~~~~~~~~~~~~~~~~~ 391 | __and_<is_copy_assignable<_T1>, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 392 | is_copy_assignable<_T2>>::value, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 393 | const pair&, const __nonesuch&>::type __p) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/10/bits/stl_pair.h:401:7: note: candidate: 'std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(typename std::conditional<std::__and_<std::is_move_assignable<_Tp>, std::is_move_assignable<_T2> >::value, std::pair<_T1, _T2>&&, std::__nonesuch&&>::type) [with _T1 = int; _T2 = int; typename std::conditional<std::__and_<std::is_move_assignable<_Tp>, std::is_move_assignable<_T2> >::value, std::pair<_T1, _T2>&&, std::__nonesuch&&>::type = std::pair<int, int>&&]' Non zero exit status: 1

Ceva nu functioneaza?