Borderou de evaluare (job #3295203)

Utilizator BucsMateMate Bucs BucsMate Data 3 mai 2025 15:52:12
Problema Componente biconexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:12:5: error: 'int time' redeclared as different kind of entity 12 | int time = 1; | ^~~~ In file included from /usr/include/pthread.h:23, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/gthr-default.h:35, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/gthr.h:148, from /usr/include/c++/12.2.1/ext/atomicity.h:35, from /usr/include/c++/12.2.1/bits/ios_base.h:39, 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: /usr/include/time.h:76:15: note: previous declaration 'time_t time(time_t*)' 76 | extern time_t time (time_t *__timer) __THROW; | ^~~~ main.cpp: In function 'void DFS(std::vector<std::vector<int> >&, int, std::vector<int>&, std::vector<int>&, std::vector<int>&, std::vector<std::vector<int> >&)': main.cpp:20:18: error: invalid conversion from 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} [-fpermissive] 20 | disc[node] = time; | ^~~~ | | | time_t (*)(time_t*) noexcept {aka long int (*)(long int*) noexcept} main.cpp:21:17: error: invalid conversion from 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} [-fpermissive] 21 | low[node] = time; | ^~~~ | | | time_t (*)(time_t*) noexcept {aka long int (*)(long int*) noexcept} main.cpp:22:5: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} [-Wpointer-arith] 22 | time++; | ^~~~ main.cpp:22:5: error: lvalue required as increment operand main.cpp:26:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 26 | for(int i = 0; i < adj[node].size(); i++){ | ~~^~~~~~~~~~~~~~~~~~ main.cpp:35:68: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 35 | if((disc[node] == 1 && children > 1) || disc[node] > 1 && low[newNode] >= disc[node]){ main.cpp: In function 'int main()': main.cpp:75:14: error: assignment of function 'time_t time(time_t*)' 75 | time = 1; | ~~~~~^~~ main.cpp:83:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 83 | for(int i = 0; i < megoldas.size(); i++){ | ~~^~~~~~~~~~~~~~~~~ main.cpp:84:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 84 | for(int j = 0; j < megoldas[i].size(); j++){ | ~~^~~~~~~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?