Borderou de evaluare (job #2663224)
Utilizator | Data | 25 octombrie 2020 17:11:27 | |
---|---|---|---|
Problema | Componente biconexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:38: error: 'int time' redeclared as different kind of symbol
int N, M, low[100001],nodet[100001], 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/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 DFS(int, int)':
main.cpp:30:18: error: invalid conversion from 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' to 'int' [-fpermissive]
nodet[nod] = time;
^~~~
main.cpp:31:16: error: invalid conversion from 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' to 'int' [-fpermissive]
low[nod] = time;
^~~~
main.cpp:33:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < l[nod].size(); i++)
~~^~~~~~~~~~~~~~~
main.cpp:38:17: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' [-Wpointer-arith]
time++;
^~
main.cpp:38:17: error: lvalue required as increment operand
main.cpp: In function 'int main()':
main.cpp:75:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < sol.size(); i++)
~~^~~~~~~~~~~~
main.cpp:79:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j = 0; j < sol[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 !