Borderou de evaluare (job #3345200)

Utilizator Gabriel_DaescuDaescu Gabriel Florin Gabriel_Daescu Data 8 martie 2026 14:11:52
Problema Concurs Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:9: error: 'int time' redeclared as different kind of entity 8 | int N,M,time,tata[NMAX],cost[NMAX],nivel[NMAX]; | ^~~~ 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/istream:38, from /usr/include/c++/12.2.1/fstream:38, 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)': main.cpp:32:13: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} [-Wpointer-arith] 32 | euler[++time]=nod; | ^~~~ main.cpp:32:13: error: lvalue required as increment operand main.cpp:33:16: error: invalid conversion from 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} to 'int' [-fpermissive] 33 | first[nod]=time; | ^~~~ | | | time_t (*)(time_t*) noexcept {aka long int (*)(long int*) noexcept} main.cpp:35:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 35 | for(int i=0; i<tree[nod].size(); i++) | ~^~~~~~~~~~~~~~~~~ main.cpp:41:17: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} [-Wpointer-arith] 41 | euler[++time]=nod; | ^~~~ main.cpp:41:17: error: lvalue required as increment operand main.cpp: In function 'int main()': main.cpp:87:9: error: assignment of function 'time_t time(time_t*)' 87 | time=0; | ~~~~^~ main.cpp:90:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 90 | for(int i=1; i<=time; i++) | ~^~~~~~ main.cpp:95:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 95 | for(int j=1; (1<<j)<=time; j++) | ~~~~~~^~~~~~ main.cpp:97:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 97 | for(int i=1; i+(1<<j)-1<=time; i++) | ~~~~~~~~~~^~~~~~ Non zero exit status: 1

Ceva nu functioneaza?