Borderou de evaluare (job #1400701)
Utilizator | Data | 25 martie 2015 13:24:11 | |
---|---|---|---|
Problema | Semafoare | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:42: error: ‘int time [1010][1010]’ redeclared as different kind of symbol
int n, m, xi, yi, xf, yf, time[NMax][NMax], code[256];
^
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:12:32: error: conflicting declaration ‘char code’
char initdir, dir[NMax][NMax], code;
^
user.cpp:10:45: error: ‘code’ has a previous declaration as ‘int code [256]’
int n, m, xi, yi, xf, yf, time[NMax][NMax], code[256];
^
user.cpp: In function ‘int main()’:
user.cpp:44:16: error: ‘tmp’ was not declared in this scope
f>>xi>>yi>>tmp;
^
user.cpp:45:5: error: ‘inidir’ was not declared in this scope
inidir = code[tmp];
^
user.cpp:53:22: error: ‘j’ was not declared in this scope
coded[i][j] = code[dir[i][j]];
^
user.cpp:60:12: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[xi][yi] = getTime(initdir, coded[xi][yi]);
^
user.cpp:60:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[xi][yi] = getTime(initdir, coded[xi][yi]);
^
user.cpp:60:50: error: ‘getTime’ was not declared in this scope
time[xi][yi] = getTime(initdir, coded[xi][yi]);
^
user.cpp:65:35: error: ‘first’ was not declared in this scope
int line = dx[i] + qu[first].x;
^
user.cpp:73:26: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[line][column] = time[qu[qfront]][qu[qback]] + 1 +
^
user.cpp:73:34: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[line][column] = time[qu[qfront]][qu[qback]] + 1 +
^
user.cpp:73:42: error: no match for ‘operator[]’ (operand types are ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ and ‘point’)
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !