Borderou de evaluare (job #3339695)

Utilizator andrei0925Andrei Perdevara andrei0925 Data 9 februarie 2026 16:04:11
Problema Lowest Common Ancestor Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:75: error: 'int time' redeclared as different kind of entity 7 | int N, Q, up[100005][25], start, X, Y, time_in[100005], time_out[100005], time, l; | ^~~~ 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:13:18: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} [-Wpointer-arith] 13 | time_in[x] = ++time; | ^~~~ main.cpp:13:18: error: lvalue required as increment operand main.cpp:22:19: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} [-Wpointer-arith] 22 | time_out[x] = ++time; | ^~~~ main.cpp:22:19: error: lvalue required as increment operand main.cpp: At global scope: main.cpp:25:1: error: ISO C++ forbids declaration of 'is_ancestor' with no type [-fpermissive] 25 | is_ancestor(int x, int y){ | ^~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?