Borderou de evaluare (job #2153687)

Utilizator AndreidgDragomir Andrei Valentin Andreidg Data 6 martie 2018 13:37:52
Problema Distincte Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:12:11: error: ‘int time [100005]’ redeclared as different kind of symbol int time[N]; ^ In file included from /usr/include/pthread.h:24:0, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/gthr.h:148, from /usr/include/c++/5/ext/atomicity.h:35, from /usr/include/c++/5/bits/ios_base.h:39, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from user.cpp:1: /usr/include/time.h:192:15: note: previous declaration ‘time_t time(time_t*)’ extern time_t time (time_t *__timer) __THROW; ^ user.cpp: In function ‘void dfs(int)’: user.cpp:28:11: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[k] = poz; ^ user.cpp:28:13: error: assignment of read-only location ‘*(time + ((sizetype)k))’ time[k] = poz; ^ user.cpp:28:13: error: cannot convert ‘int’ to ‘time_t(time_t*) throw () {aka long int(long int*) throw ()}’ in assignment

Ceva nu functioneaza?