Borderou de evaluare (job #2525925)

Utilizator mirceatlxhaha haha mirceatlx Data 18 ianuarie 2020 00:42:06
Problema Componente biconexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:15:5: error: 'int time' redeclared as different kind of symbol int time, dfsRoot, rootChildren, N, M, K; ^~~~ 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 articulationPoint(int)': main.cpp:20:7: 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:20:7: error: lvalue required as increment operand main.cpp:22:40: 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] dfsDiscover[node] = dfsLow[node] = time; ^~~~ main.cpp:23:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < G[node].size(); j++){ ~~^~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:75:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < ans[i].size(); j++){ ~~^~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?