Borderou de evaluare (job #2366586)

Utilizator herbiculusMihai Panduru herbiculus Data 4 martie 2019 21:03:28
Problema Panda Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:58: error: 'int time [505]' redeclared as different kind of symbol int reservation[505][505][2], visited[505][505], time[505], minimum = 505*505, maximum; ^ 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 lee()': main.cpp:44:67: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[visited[neighbour.line][neighbour.column] - 1] += 1; ^ main.cpp:44:67: warning: pointer to a function used in arithmetic [-Wpointer-arith] main.cpp:44:72: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[visited[neighbour.line][neighbour.column] - 1] += 1; ^ main.cpp:44:72: error: assignment of read-only location '*(time + (((sizetype)visited[neighbour.reservation::line][neighbour.reservation::column]) + 18446744073709551615u))' main.cpp:44:72: error: cannot convert 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' to 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' in assignment main.cpp: In function 'int main()': main.cpp:75:23: warning: pointer to a function used in arithmetic [-Wpointer-arith] if (time[i]) ^ main.cpp:76:34: warning: pointer to a function used in arithmetic [-Wpointer-arith] g<<i<<' '<<time[i]<<"\n"; ^ Non zero exit status: 1

Ceva nu functioneaza?