Borderou de evaluare (job #1671894)

Utilizator cristina_borzaCristina Borza cristina_borza Data 2 aprilie 2016 11:26:42
Problema Culegere Status done
Runda Urmasii lui Moisil 2016, Clasa a 9-a Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:21:31: error: ‘int time’ redeclared as different kind of symbol int n , m , q , k , maxtime , time , nextl , nextc; ^ In file included from /usr/include/pthread.h:26:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr-default.h:35, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr.h:148, from /usr/include/c++/4.8/ext/atomicity.h:33, from /usr/include/c++/4.8/bits/basic_string.h:39, from /usr/include/c++/4.8/string:52, from /usr/include/c++/4.8/random:41, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, 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 ‘int main()’: user.cpp:77:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] while(time < maxtime) { ^ user.cpp:78:11: error: ISO C++ forbids incrementing a pointer of type ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ [-fpermissive] ++time; ^ user.cpp:78:11: error: lvalue required as increment operand user.cpp:80:41: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] while(pos <= q && ev[pos].st <= time) { ^ user.cpp:87:49: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] while(!aux.empty() && aux.top().first < time) { ^

Ceva nu functioneaza?