Borderou de evaluare (job #2681696)
Utilizator | Data | 6 decembrie 2020 13:19:04 | |
---|---|---|---|
Problema | Componente biconexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:13:5: error: 'int time' redeclared as different kind of symbol
int time,root,children,sols;
^~~~
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)':
main.cpp:17:9: 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:17:9: error: lvalue required as increment operand
main.cpp:18:28: error: invalid conversion from 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' to '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}' [-fpermissive]
discover[u] = low[u] = time;
^~~~
main.cpp:19:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < g[u].size();i++)
~~^~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:76:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int 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 !