Borderou de evaluare (job #1053255)

Utilizator alexclpAlexandru Clapa alexclp Data 12 decembrie 2013 16:32:12
Problema Maimute Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:20:5: error: ‘int time’ redeclared as different kind of symbol int time; ^ 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/istream:38, from /usr/local/include/c++/4.8.0/fstream:38, from user.cpp:1: /usr/include/time.h:186:15: error: previous declaration of ‘time_t time(time_t*)’ extern time_t time (time_t *__timer) __THROW; ^ user.cpp: In function ‘void dfs(int)’: user.cpp:47:19: error: ISO C++ forbids incrementing a pointer of type ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ [-fpermissive] timeIn[x] = ++time; ^ user.cpp:47:19: error: lvalue required as increment operand user.cpp:49:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < a[x].size(); i++) { ^ user.cpp:56:20: error: ISO C++ forbids incrementing a pointer of type ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ [-fpermissive] timeOut[x] = ++time; ^ user.cpp:56:20: error: lvalue required as increment operand

Ceva nu functioneaza?