Borderou de evaluare (job #3039956)

Utilizator IaaanAnghel Georgian Bogdan Iaaan Data 29 martie 2023 09:08:05
Problema A+B Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:27:5: error: 'int time' redeclared as different kind of entity 27 | int time; | ^~~~ In file included from /usr/include/c++/12.2.1/ctime:42, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:49, 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:32:16: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} [-Wpointer-arith] 32 | tin[u] = ++time; | ^~~~ main.cpp:32:16: error: lvalue required as increment operand main.cpp:40:17: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} [-Wpointer-arith] 40 | tout[u] = ++time; | ^~~~ main.cpp:40:17: error: lvalue required as increment operand main.cpp: In function 'int main()': main.cpp:70:9: warning: unused variable 'ptr' [-Wunused-variable] 70 | int ptr = 0; | ^~~ Non zero exit status: 1

Ceva nu functioneaza?