Borderou de evaluare (job #2394068)

Utilizator btudorBazac Tudor btudor Data 1 aprilie 2019 12:00:40
Problema Componente biconexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:16:5: error: 'int time' redeclared as different kind of symbol int time,dfsroot,rootchildren,n,numar=1; ^~~~ 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 articulationpoint(int)': main.cpp:35: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:35:9: error: lvalue required as increment operand main.cpp:36:21: 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] dfs_discover[u]=time; ^~~~ main.cpp:37:16: 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] dfs_low[u]=time; ^~~~ main.cpp:38:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=0;j<g[u].size();j++) ~^~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:87:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=0;j<graf[i].size();j++) ~^~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?