Borderou de evaluare (job #1400929)
Utilizator | Data | 25 martie 2015 15:49:42 | |
---|---|---|---|
Problema | Semafoare | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
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:98:27: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[l][c] = mtime[qu[p].x][qu[p].y] + 1;
^
user.cpp:98:30: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[l][c] = mtime[qu[p].x][qu[p].y] + 1;
^
user.cpp:98:32: error: assignment of read-only location ‘*(time + (((sizetype)l) + ((sizetype)c)))’
time[l][c] = mtime[qu[p].x][qu[p].y] + 1;
^
user.cpp:98:32: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp:58:9: warning: unused variable ‘i’ [-Wunused-variable]
int i = 0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !