Borderou de evaluare (job #2565254)
Utilizator | Data | 2 martie 2020 13:03:22 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:39: error: 'int time' redeclared as different kind of symbol
int nrc,disc[NMAX],low[NMAX],cc[NMAX],time;
^~~~
In file included from /usr/include/pthread.h:24:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr.h:148,
from /usr/include/c++/6/ext/atomicity.h:35,
from /usr/include/c++/6/bits/ios_base.h:39,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/time.h:192:15: note: previous declaration 'time_t time(time_t*)'
extern time_t time (time_t *__timer) __THROW;
^~~~
main.cpp: In function 'void dfs(int)':
main.cpp:16:24: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' [-Wpointer-arith]
disc[n1]=low[n1]=++time;
^~~~
main.cpp:16:24: error: lvalue required as increment operand
main.cpp: In function 'int main()':
main.cpp:57:18: error: assignment of function 'time_t time(time_t*)'
time=0;
^
main.cpp:57:18: error: cannot convert 'int' to 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' in assignment
main.cpp:46:15: warning: unused variable 'j' [-Wunused-variable]
int n,m,i,j,x,y;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !