Borderou de evaluare (job #1607337)
Utilizator | Data | 20 februarie 2016 23:45:13 | |
---|---|---|---|
Problema | Lanterna | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:22:47: error: ‘int time [51]’ redeclared as different kind of symbol
int i,j,n,m,refill[NN],k,maxim[NN][KK],time[NN],nod,maxi,timp,curent,rasp,mm,ok;
^
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/ios_base.h:39,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
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:29:32: warning: pointer to a function used in arithmetic [-Wpointer-arith]
fin >> refill[i],time[i] = inf;
^
user.cpp:29:34: error: assignment of read-only location ‘*(time + ((sizetype)i))’
fin >> refill[i],time[i] = inf;
^
user.cpp:29:34: error: cannot convert ‘const int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp:43:11: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[1] = 0;
^
user.cpp:43:13: error: assignment of read-only location ‘*(time + 1u)’
time[1] = 0;
^
user.cpp:43:13: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp:48:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < v[nod].size(); i++)
^
user.cpp:50:61: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(curent + v[nod][i].c <= k && time[v[nod][i].x] >= time[nod] + v[nod][i].t )
^
user.cpp:50:74: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(curent + v[nod][i].c <= k && time[v[nod][i].x] >= time[nod] + v[nod][i].t )
^
user.cpp:13:18: warning: pointer to a function used in arithmetic [-Wpointer-arith]
#define t second.first
^
user.cpp:50:88: note: in expansion of macro ‘t’
if(curent + v[nod][i].c <= k && time[v[nod][i].x] >= time[nod] + v[nod][i].t )
^
user.cpp:56:41: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[v[nod][i].x] = time[nod] + v[nod][i].t;
^
user.cpp:56:53: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[v[nod][i].x] = time[nod] + v[nod][i].t;
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !