Borderou de evaluare (job #2692862)
Utilizator | Data | 4 ianuarie 2021 01:19:47 | |
---|---|---|---|
Problema | Lanterna | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:27:54: error: 'int time [55]' redeclared as different kind of symbol
int nr_noduri, k, nr_muchii, rasp[1001], ans, time[55];
^
In file included from /usr/include/pthread.h:24:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr.h:148,
from /usr/include/c++/6/ext/atomicity.h:35,
from /usr/include/c++/6/bits/ios_base.h:39,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:1:
/usr/include/time.h:192:15: note: previous declaration 'time_t time(time_t*)'
extern time_t time (time_t *__timer) __THROW;
^~~~
main.cpp: In function 'void initDist()':
main.cpp:34:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[i]=infinit;
^
main.cpp:34:17: error: assignment of read-only location '*(time + ((sizetype)i))'
time[i]=infinit;
^~~~~~~
main.cpp:34:17: error: cannot convert 'const int' to 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' in assignment
main.cpp: In function 'bool verif(int)':
main.cpp:64:11: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[1]=0;
^
main.cpp:64:13: error: assignment of read-only location '*(time + 1u)'
time[1]=0;
^
main.cpp:64:13: error: cannot convert 'int' to 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' in assignment
main.cpp:73:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<G[current.nod].size(); i++)
~^~~~~~~~~~~~~~~~~~~~~~
main.cpp:77:43: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(vecin.timp < time[vecin.nod] && current.bat_left >= G[current.nod][i].cost)
^
main.cpp:77:43: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
main.cpp:82:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[vecin.nod]=vecin.timp;
^
main.cpp:82:39: error: assignment of read-only location '*(time + ((sizetype)vecin.heapNode::nod))'
time[vecin.nod]=vecin.timp;
^~~~
main.cpp:82:39: error: cannot convert 'int' to 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' in assignment
main.cpp:88:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
rasp[n]=time[nr_noduri];
^
main.cpp:88:31: error: invalid conversion from 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' to 'int' [-fpermissive]
rasp[n]=time[nr_noduri];
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !