Borderou de evaluare (job #1908047)
Utilizator | Data | 6 martie 2017 22:26:38 | |
---|---|---|---|
Problema | Clepsidra | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:13:5: error: ‘int time’ redeclared as different kind of symbol
int time,low[N],lev[N],tt[N],cnt,C[N],vf[N],n,m,x,y,i,a,b,comp,added[N];
^
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/ostream:38,
from /usr/include/c++/4.8/iostream:39,
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 add(int, int)’:
user.cpp:45:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘void df(int)’:
user.cpp:48:21: error: ISO C++ forbids incrementing a pointer of type ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ [-fpermissive]
lev[x]=low[x]=++time;
^
user.cpp:48:21: error: lvalue required as increment operand
user.cpp:49:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k=0;k<v[x].size();k++)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !