Borderou de evaluare (job #1233478)
Utilizator | Data | 25 septembrie 2014 16:13:05 | |
---|---|---|---|
Problema | Zoo | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:38:5: error: ‘int time’ redeclared as different kind of symbol
int 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 ‘void update(int, int, int, int)’:
user.cpp:46:64: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(arb[nod<<1].times[arb[nod<<1].times.size()-1].time!=time){
^
user.cpp:48:63: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive]
arb[nod<<1].times[arb[nod<<1].times.size()-1].time=time;
^
user.cpp:54:72: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(arb[(nod<<1)+1].times[arb[(nod<<1)+1].times.size()-1].time!=time){
^
user.cpp:56:71: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive]
arb[(nod<<1)+1].times[arb[(nod<<1)+1].times.size()-1].time=time;
^
user.cpp: In function ‘int main()’:
user.cpp:119:13: error: assignment of function ‘time_t time(time_t*)’
time=v[i].x;
^
user.cpp:119:13: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp:121:54: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(arb[1].times[arb[1].times.size()-1].time!=time){
^
user.cpp:123:53: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive]
arb[1].times[arb[1].times.size()-1].time=time;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !