Borderou de evaluare (job #2123825)
Utilizator | Data | 6 februarie 2018 17:43:50 | |
---|---|---|---|
Problema | Lanterna | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:14:38: error: ‘int time [1001][1001]’ redeclared as different kind of symbol
int pow[MAX], viz[MAX], time[MAX][MAX], wat[MAX][MAX], d[MAX], T[MAX];
^
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 read()’:
user.cpp:32:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[x][y]=time[y][x]=timp;
^
user.cpp:32:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[x][y]=time[y][x]=timp;
^
user.cpp:32:30: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[x][y]=time[y][x]=timp;
^
user.cpp:32:33: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[x][y]=time[y][x]=timp;
^
user.cpp:32:34: error: assignment of read-only location ‘*(time + (((sizetype)y) + ((sizetype)x)))’
time[x][y]=time[y][x]=timp;
^
user.cpp:32:34: error: cannot convert ‘int’ to ‘time_t(time_t*) throw () {aka long int(long int*) throw ()}’ in assignment
user.cpp: In function ‘void bfs()’:
user.cpp:80:52: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(d[v[nod][i]]>d[nod]+time[nod][v[nod][i]])
^
user.cpp:80:63: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(d[v[nod][i]]>d[nod]+time[nod][v[nod][i]])
^
user.cpp:80:63: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:80:63: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
user.cpp:82:57: warning: pointer to a function used in arithmetic [-Wpointer-arith]
d[v[nod][i]]=d[nod]+time[nod][v[nod][i]];
^
user.cpp:82:68: warning: pointer to a function used in arithmetic [-Wpointer-arith]
d[v[nod][i]]=d[nod]+time[nod][v[nod][i]];
^
user.cpp:82:68: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:82:48: error: invalid conversion from ‘time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}’ to ‘int’ [-fpermissive]
d[v[nod][i]]=d[nod]+time[nod][v[nod][i]];
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !