Borderou de evaluare (job #2118081)
Utilizator | Data | 29 ianuarie 2018 23:48:31 | |
---|---|---|---|
Problema | Sortare topologica | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:36: error: ‘int time [1000]’ redeclared as different kind of symbol
int s, n, m, color[1000], time[1000], t;
^
In file included from /usr/include/pthread.h:24:0,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/gthr.h:148,
from /usr/include/c++/5/ext/atomicity.h:35,
from /usr/include/c++/5/bits/ios_base.h:39,
from /usr/include/c++/5/ios:42,
from /usr/include/c++/5/ostream:38,
from /usr/include/c++/5/iostream:39,
from user.cpp:1:
/usr/include/time.h:192:15: note: previous declaration ‘time_t time(time_t*)’
extern time_t time (time_t *__timer) __THROW;
^
user.cpp: In function ‘void dfs(int)’:
user.cpp:25:13: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[nod] = t;
^
user.cpp:25:15: error: assignment of read-only location ‘*(time + ((sizetype)nod))’
time[nod] = t;
^
user.cpp:25:15: error: cannot convert ‘int’ to ‘time_t(time_t*) throw () {aka long int(long int*) throw ()}’ in assignment
user.cpp:38:29: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (time[nod] < time[y]) {
^
user.cpp:38:39: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (time[nod] < time[y]) {
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !