Borderou de evaluare (job #2642713)
Utilizator | Data | 16 august 2020 20:31:19 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:18:18: error: 'int time [100001]' redeclared as different kind of symbol
int time[1 + NMAX]; //blue label, the time at which we first landed on the node
^
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/ostream:38,
from /usr/include/c++/6/iostream:39,
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 tarjan(int)':
main.cpp:25:12: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[from] = t;
^
main.cpp:25:16: error: assignment of read-only location '*(time + ((sizetype)from))'
time[from] = t;
^
main.cpp:25:16: error: cannot convert 'int' to 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' in assignment
main.cpp:30:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(time[to] == 0) {
^
main.cpp:37:32: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(lowLink[from] == time[from]) {
^
main.cpp:37:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
main.cpp: In function 'int main()':
main.cpp:56:14: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(time[i] == 0) {
^
main.cpp:62:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < scc[i].size(); j++) {
~~^~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !