Borderou de evaluare (job #2166554)
Utilizator | Data | 13 martie 2018 17:44:06 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:34: error: ‘int time’ redeclared as different kind of symbol
int n,m,low[nmax+5],disc[nmax+5],time=0,gg=0,st[nmax+5],nr_sol=0;
^
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:3:
/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 tarjan(int)’:
user.cpp:21: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:21:9: error: lvalue required as increment operand
user.cpp:22:19: error: invalid conversion from ‘time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}’ to ‘int’ [-fpermissive]
low[k]=disc[k]=time;
^
user.cpp: In function ‘int main()’:
user.cpp:64:13: warning: unused variable ‘z’ [-Wunused-variable]
int x,y,z;
^
user.cpp:67:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d %d",&n,&m);
^
user.cpp:79:34: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d %d",&x,&y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !