Borderou de evaluare (job #2162095)

Utilizator trifangrobertRobert Trifan trifangrobert Data 12 martie 2018 00:28:41
Problema Delfin Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:20:5: error: ‘int time’ redeclared as different kind of symbol int time = 0; ^ 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:2: /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 Solve()’: user.cpp:148:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0;i < startmargins.size();++i) ^ user.cpp:168:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0;j < finishmargins.size();++j) ^ user.cpp:195:7: warning: pointer to a function used in arithmetic [-Wpointer-arith] time += Min; ^ user.cpp:195:7: error: assignment of function ‘time_t time(time_t*)’ user.cpp:195:7: 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 user.cpp:196:7: warning: pointer to a function used in arithmetic [-Wpointer-arith] time += max(Min + 1, c[sx][sy]); ^ user.cpp:196:7: error: assignment of function ‘time_t time(time_t*)’ user.cpp:196:7: 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 user.cpp:207:7: warning: pointer to a function used in arithmetic [-Wpointer-arith] time += Min; ^ user.cpp:207:7: error: assignment of function ‘time_t time(time_t*)’ user.cpp:207:7: 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 user.cpp:208:7: warning: pointer to a function used in arithmetic [-Wpointer-arith] time += max(Min + 1, c[fx][fy]); ^ user.cpp:208:7: error: assignment of function ‘time_t time(time_t*)’ user.cpp:208:7: 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 user.cpp:209:7: warning: pointer to a function used in arithmetic [-Wpointer-arith] time += abs(c[fx][fy] - c[sx][sy]); ^ user.cpp:209:7: error: assignment of function ‘time_t time(time_t*)’ user.cpp:209:7: 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 user.cpp:184:6: warning: unused variable ‘i’ [-Wunused-variable] int i, j, x, y, k; ^

Ceva nu functioneaza?