Borderou de evaluare (job #2671339)

Utilizator antonioganea3Antonio Ganea antonioganea3 Data 11 noiembrie 2020 22:23:38
Problema Maimute Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:12:5: error: 'int time' redeclared as different kind of symbol int time = 1; ^~~~ In file included from /usr/include/pthread.h:24:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr.h:148, from /usr/include/c++/6/ext/atomicity.h:35, from /usr/include/c++/6/bits/ios_base.h:39, from /usr/include/c++/6/ios:42, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from main.cpp:1: /usr/include/time.h:192:15: note: previous declaration 'time_t time(time_t*)' extern time_t time (time_t *__timer) __THROW; ^~~~ main.cpp: In function 'void dfs(int)': main.cpp:19:25: error: invalid conversion from 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' to 'int' [-fpermissive] times[node].first = time; ^~~~ main.cpp:20:9: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' [-Wpointer-arith] time++; ^~ main.cpp:20:9: error: lvalue required as increment operand main.cpp:27:26: error: invalid conversion from 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' to 'int' [-fpermissive] times[node].second = time; ^~~~ main.cpp:28:9: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' [-Wpointer-arith] time++; ^~ main.cpp:28:9: error: lvalue required as increment operand main.cpp: In function 'int main()': main.cpp:53:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if ( times[a].first < times[b].first && times[a].second > times[b].second || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?