Borderou de evaluare (job #2689243)

Utilizator Teo_1101Mititelu Teodor Teo_1101 Data 20 decembrie 2020 14:45:24
Problema Dezintegrare Status done
Runda fmi-no-stress-10 Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:19:11: error: 'long long int time' redeclared as different kind of symbol long long time, m_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 Solve()': main.cpp:65:87: error: assignment of function 'time_t time(time_t*)' time = (S[i].sub - S[T[nt].second].sub )/( S[i].r - S[T[nt].second].r ); ^ main.cpp:65:87: error: cannot convert 'long long int' to 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' in assignment main.cpp:66:21: 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:66:21: error: lvalue required as increment operand main.cpp:70:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if( time < m_time || ( time == m_time && S[new_idx].sub-time*S[new_idx].r > S[i].sub- time*S[i].r )) ^~~~~~ main.cpp:70:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if( time < m_time || ( time == m_time && S[new_idx].sub-time*S[new_idx].r > S[i].sub- time*S[i].r )) ^~~~~~ main.cpp:70:77: error: invalid operands of types 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' and 'long long int' to binary 'operator*' if( time < m_time || ( time == m_time && S[new_idx].sub-time*S[new_idx].r > S[i].sub- time*S[i].r )) ^ main.cpp:70:107: error: invalid operands of types 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' and 'long long int' to binary 'operator*' if( time < m_time || ( time == m_time && S[new_idx].sub-time*S[new_idx].r > S[i].sub- time*S[i].r )) ^ main.cpp:72:30: error: invalid conversion from 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' to 'long long int' [-fpermissive] m_time = time; ^~~~ Non zero exit status: 1

Ceva nu functioneaza?