Borderou de evaluare (job #3321175)

Utilizator Laura721Laura Kudor Laura721 Data 8 noiembrie 2025 14:28:31
Problema Maimute Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:16:15: error: 'int time' redeclared as different kind of entity 16 | int n,m,k,a,b,time; | ^~~~ 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(int, int)': main.cpp:27:5: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} [-Wpointer-arith] 27 | time++; | ^~~~ main.cpp:27:5: error: lvalue required as increment operand main.cpp:28:12: error: invalid conversion from 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} to 'int' [-fpermissive] 28 | l[nod]=time; | ^~~~ | | | time_t (*)(time_t*) noexcept {aka long int (*)(long int*) noexcept} main.cpp:29:16: error: invalid conversion from 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} to 'int' [-fpermissive] 29 | first[nod]=time; | ^~~~ | | | time_t (*)(time_t*) noexcept {aka long int (*)(long int*) noexcept} main.cpp:36:15: error: invalid conversion from 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} to 'int' [-fpermissive] 36 | last[nod]=time; | ^~~~ | | | time_t (*)(time_t*) noexcept {aka long int (*)(long int*) noexcept} Non zero exit status: 1

Ceva nu functioneaza?