Borderou de evaluare (job #2169645)
Utilizator | Data | 14 martie 2018 16:25:13 | |
---|---|---|---|
Problema | Componente biconexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:13:55: error: ‘int time’ redeclared as different kind of symbol
int n,m,disc[nmax+5],low[nmax+5],tata[nmax+5],nrsol=0,time=0,siz=0,st_sol[nmax];
^
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/ostream:38,
from /usr/include/c++/5/iostream:39,
from user.cpp:1:
/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(int)’:
user.cpp:38:9: warning: ISO C++ forbids incrementing a pointer of type ‘time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}’ [-Wpointer-arith]
time++;
^
user.cpp:38:9: error: lvalue required as increment operand
user.cpp:39:19: error: invalid conversion from ‘time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}’ to ‘int’ [-fpermissive]
disc[k]=low[k]=time;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !