Borderou de evaluare (job #1410555)
Utilizator | Data | 31 martie 2015 09:44:27 | |
---|---|---|---|
Problema | Algola | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:18:30: error: ‘long int time’ redeclared as different kind of symbol
long n,m,i,S,D,hum[maxN],sum,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/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 ‘bool BF()’:
user.cpp:43:57: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(long i=0;i<list[act.first][act.second].size();i++){
^
user.cpp:55:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(long i=0;i<list[D][D].size();i++){
^
user.cpp: In function ‘int main()’:
user.cpp:93:39: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ [-Wformat=]
if(flux == sum) {printf("%ld",time);return 0;}
^
user.cpp:94:13: error: ISO C++ forbids incrementing a pointer of type ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ [-fpermissive]
for(time++;;time++){
^
user.cpp:94:13: error: lvalue required as increment operand
user.cpp:94:21: error: ISO C++ forbids incrementing a pointer of type ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ [-fpermissive]
for(time++;;time++){
^
user.cpp:94:21: error: lvalue required as increment operand
user.cpp:95:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<E.size();i++){
^
user.cpp:96:32: warning: pointer to a function used in arithmetic [-Wpointer-arith]
addArc(E[i].x,time-1,E[i].y,time,E[i].c);
^
user.cpp:96:31: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘long int’ [-fpermissive]
addArc(E[i].x,time-1,E[i].y,time,E[i].c);
^
user.cpp:28:6: error: initializing argument 2 of ‘void addArc(long int, long int, long int, long int, long int)’ [-fpermissive]
void addArc(long n1,long t1,long n2,long t2,long cap){
^
user.cpp:96:52: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘long int’ [-fpermissive]
addArc(E[i].x,time-1,E[i].y,time,E[i].c);
^
user.cpp:28:6: error: initializing argument 4 of ‘void addArc(long int, long int, long int, long int, long int)’ [-fpermissive]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !