Borderou de evaluare (job #1129692)

Utilizator obidanDan Ganea obidan Data 28 februarie 2014 04:30:31
Problema Heapuri Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:26: error: ‘int time [100002]’ redeclared as different kind of symbol int a[100002],time[100002],v[100002],heapsize=0; ^ 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/basic_string.h:39, from /usr/local/include/c++/4.8.0/string:52, from /usr/local/include/c++/4.8.0/random:41, from /usr/local/include/c++/4.8.0/bits/stl_algo.h:65, from /usr/local/include/c++/4.8.0/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 extractMin()’: user.cpp:63:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘void Delete(int)’: user.cpp:67:18: warning: pointer to a function used in arithmetic [-Wpointer-arith] a[ v [ time[x] ] ]=a[heapsize]; ^ user.cpp:67:20: error: invalid types ‘int [100002][time_t(time_t*)throw () {aka long int(long int*)throw ()}]’ for array subscript a[ v [ time[x] ] ]=a[heapsize]; ^ user.cpp:71:31: warning: pointer to a function used in arithmetic [-Wpointer-arith] parinte=dad(a[v[time[x]]]); ^ user.cpp:71:32: error: invalid types ‘int [100002][time_t(time_t*)throw () {aka long int(long int*)throw ()}]’ for array subscript parinte=dad(a[v[time[x]]]); ^ user.cpp:72:30: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(parinte>a[v[time[x]]]) ^ user.cpp:72:31: error: invalid types ‘int [100002][time_t(time_t*)throw () {aka long int(long int*)throw ()}]’ for array subscript if(parinte>a[v[time[x]]]) ^ user.cpp:74:31: warning: pointer to a function used in arithmetic [-Wpointer-arith] percolate(v[time[x]]); ^ user.cpp:74:32: error: invalid types ‘int [100002][time_t(time_t*)throw () {aka long int(long int*)throw ()}]’ for array subscript percolate(v[time[x]]); ^ user.cpp:78:29: warning: pointer to a function used in arithmetic [-Wpointer-arith] heapify(v[time[x]]); ^ user.cpp:78:30: error: invalid types ‘int [100002][time_t(time_t*)throw () {aka long int(long int*)throw ()}]’ for array subscript heapify(v[time[x]]);

Ceva nu functioneaza?