Borderou de evaluare (job #1439907)

Utilizator Echipa_PietrelorMancam pietre Echipa_Pietrelor Data 23 mai 2015 10:46:22
Problema Teme Status done
Runda ACM-ICPC Faza Nationala 2015-2016 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:10:24: error: ‘int time’ redeclared as different kind of symbol int nrquiz, i, n, rez, time; ^ In file included from /usr/include/pthread.h:26:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr-default.h:35, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr.h:148, from /usr/include/c++/4.8/ext/atomicity.h:33, from /usr/include/c++/4.8/bits/ios_base.h:39, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/time.h:186:15: error: previous declaration of ‘time_t time(time_t*)’ extern time_t time (time_t *__timer) __THROW; ^ user.cpp: In function ‘int main()’: user.cpp:34:13: error: assignment of function ‘time_t time(time_t*)’ time=rez=0; ^ user.cpp:34:13: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:43:17: warning: pointer to a function used in arithmetic [-Wpointer-arith] time+=v[i].timp; ^ user.cpp:43:17: error: assignment of function ‘time_t time(time_t*)’ user.cpp:43:17: 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:44:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if (time>v[i].predat) rez+=time-v[i].predat; ^ user.cpp:44:50: warning: pointer to a function used in arithmetic [-Wpointer-arith] if (time>v[i].predat) rez+=time-v[i].predat; ^ user.cpp:44:38: warning: pointer to a function used in arithmetic [-Wpointer-arith] if (time>v[i].predat) rez+=time-v[i].predat; ^ user.cpp:44:38: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive]

Ceva nu functioneaza?