Borderou de evaluare (job #2641483)

Utilizator lucametehauDart Monkey lucametehau Data 11 august 2020 16:41:17
Problema Traffickers Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:10:25: error: 'int time' redeclared as different kind of symbol int n, m, q, tip, x, y, time, t1, t2; ^~~~ 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/istream:38, from /usr/include/c++/6/fstream:38, 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, int)': main.cpp:18:16: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' [-Wpointer-arith] fst[nod] = ++time; ^~~~ main.cpp:18:16: error: lvalue required as increment operand main.cpp:25:16: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' [-Wpointer-arith] lst[nod] = ++time; ^~~~ main.cpp:25:16: error: lvalue required as increment operand main.cpp: In function 'void update(int, int, int)': main.cpp:75:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < a.size(); i++, j++) { ~~^~~~~~~~~~ main.cpp:81:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < b.size(); i++, j++) { ~~^~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?