Borderou de evaluare (job #1400928)
Utilizator | Data | 25 martie 2015 15:49:12 | |
---|---|---|---|
Problema | Semafoare | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:13:42: error: ‘int time [1010][1010]’ redeclared as different kind of symbol
int n, m, xi, yi, xf, yf, time[NMax][NMax], code[256], fdir[NMax][NMax];
^
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/istream:38,
from /usr/include/c++/4.8/fstream:38,
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:55:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]
initdir = code[tmp];
^
user.cpp:60:19: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses]
f>>dir[i] + 1;
^
user.cpp:64:41: warning: array subscript has type ‘char’ [-Wchar-subscripts]
coded[i][j] = code[dir[i][j]];
^
user.cpp:74:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[i][j] = INF;
^
user.cpp:74:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[i][j] = INF;
^
user.cpp:74:24: error: assignment of read-only location ‘*(time + (((sizetype)i) + ((sizetype)j)))’
time[i][j] = INF;
^
user.cpp:74:24: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp:75:12: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[xi][yi] = waitTime(coded[xi][yi], initdir, 0);
^
user.cpp:75:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[xi][yi] = waitTime(coded[xi][yi], initdir, 0);
^
user.cpp:75:18: error: assignment of read-only location ‘*(time + (((sizetype)xi) + ((sizetype)yi)))’
time[xi][yi] = waitTime(coded[xi][yi], initdir, 0);
^
user.cpp:75:18: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp:84:36: warning: pointer to a function used in arithmetic [-Wpointer-arith]
int tcur = time[qu[p].x][qu[p].y] + 1 +
^
user.cpp:84:45: warning: pointer to a function used in arithmetic [-Wpointer-arith]
int tcur = time[qu[p].x][qu[p].y] + 1 +
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !