Borderou de evaluare (job #1137783)

Utilizator UVS_Elfus_Deneo_KiraUVS-Elfus-Dutzul-Kira UVS_Elfus_Deneo_Kira Data 9 martie 2014 13:59:55
Problema Talent Status done
Runda ONIS 2014, Runda 3 Compilator cpp
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:43:5: error: ‘int clock’ redeclared as different kind of symbol int clock = 24*60; ^ In file included from /usr/include/pthread.h:26:0, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/gthr-default.h:35, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/gthr.h:148, from /usr/local/include/c++/4.8.0/ext/atomicity.h:33, from /usr/local/include/c++/4.8.0/bits/ios_base.h:39, from /usr/local/include/c++/4.8.0/ios:42, from /usr/local/include/c++/4.8.0/ostream:38, from /usr/local/include/c++/4.8.0/iostream:39, from user.cpp:1: /usr/include/time.h:183:16: error: previous declaration of ‘clock_t clock()’ extern clock_t clock (void) __THROW; ^ user.cpp: In function ‘int main()’: user.cpp:98:28: warning: pointer to a function used in arithmetic [-Wpointer-arith] v[j].l += clock; ^ user.cpp:98:28: error: invalid conversion from ‘clock_t (*)()throw () {aka long int (*)()throw ()}’ to ‘int’ [-fpermissive] user.cpp:100:28: warning: pointer to a function used in arithmetic [-Wpointer-arith] v[j].s += clock; ^ user.cpp:100:28: error: invalid conversion from ‘clock_t (*)()throw () {aka long int (*)()throw ()}’ to ‘int’ [-fpermissive] user.cpp:125:28: error: invalid operands of types ‘int’ and ‘clock_t()throw () {aka long int()throw ()}’ to binary ‘operator-’ v[j].l -= clock; ^ user.cpp:125:28: error: in evaluation of ‘operator-=(int, clock_t()throw () {aka long int()throw ()})’ user.cpp:127:28: error: invalid operands of types ‘int’ and ‘clock_t()throw () {aka long int()throw ()}’ to binary ‘operator-’ v[j].s -= clock; ^ user.cpp:127:28: error: in evaluation of ‘operator-=(int, clock_t()throw () {aka long int()throw ()})’

Ceva nu functioneaza?