Borderou de evaluare (job #1733532)

Utilizator fanache99Constantin-Buliga Stefan fanache99 Data 24 iulie 2016 21:04:31
Problema Centru Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:10:16: error: ‘int time [2006]’ redeclared as different kind of symbol int time[2*MAXN]; ^ 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:2: /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:72:28: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[best[i][j]]++; ^ user.cpp:72:29: error: ISO C++ forbids incrementing a pointer of type ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ [-fpermissive] time[best[i][j]]++; ^ user.cpp:72:29: error: lvalue required as increment operand user.cpp:74:15: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[i]+=time[i-1]; ^ user.cpp:74:26: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[i]+=time[i-1]; ^ user.cpp:74:26: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:74:16: error: invalid operands of types ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ and ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ to binary ‘operator+’ time[i]+=time[i-1]; ^ user.cpp:74:16: error: in evaluation of ‘operator+=(time_t(time_t*)throw () {aka long int(long int*)throw ()}, time_t(time_t*)throw () {aka long int(long int*)throw ()})’ user.cpp:77:30: warning: pointer to a function used in arithmetic [-Wpointer-arith] v[time[best[i][j]]]=make_pair(i,j); ^ user.cpp:77:31: error: invalid types ‘std::pair<int, int> [1006009][time_t(time_t*)throw () {aka long int(long int*)throw ()}]’ for array subscript v[time[best[i][j]]]=make_pair(i,j); ^ user.cpp:78:28: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[best[i][j]]--; ^ user.cpp:78:29: error: ISO C++ forbids decrementing a pointer of type ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ [-fpermissive] time[best[i][j]]--; ^ user.cpp:78:29: error: lvalue required as decrement operand user.cpp:41:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("centru.in","r",stdin);

Ceva nu functioneaza?