Borderou de evaluare (job #2461800)
Utilizator | Data | 26 septembrie 2019 10:12:04 | |
---|---|---|---|
Problema | Mine | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:19:25: error: 'int time [10005]' redeclared as different kind of symbol
int e[10005], time[10005];
^
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/istream:38,
from /usr/include/c++/6/fstream:38,
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 'int main()':
main.cpp:36:35: warning: pointer to a function used in arithmetic [-Wpointer-arith]
for(int i = 1; i <= k && !time[n]; i++) {
^
main.cpp:38:30: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(!time[heap.top().nod])
^
main.cpp:44:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[nod.nod] = i;
^
main.cpp:44:23: error: assignment of read-only location '*(time + ((sizetype)nod.Nod::nod))'
time[nod.nod] = i;
^
main.cpp:44:23: error: cannot convert 'int' to 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' in assignment
main.cpp:50:17: warning: pointer to a function used in arithmetic [-Wpointer-arith]
cout << time[n];
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !