Borderou de evaluare (job #1040219)
Utilizator | Data | 24 noiembrie 2013 10:47:18 | |
---|---|---|---|
Problema | Tsunami | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:28: error: ‘short int select [1000][1000]’ redeclared as different kind of symbol
short int select[NMAX][MMAX];
^
In file included from /usr/include/sys/types.h:220:0,
from /usr/include/stdlib.h:320,
from /usr/local/include/c++/4.8.0/cstdlib:72,
from /usr/local/include/c++/4.8.0/ext/string_conversions.h:41,
from /usr/local/include/c++/4.8.0/bits/basic_string.h:2817,
from /usr/local/include/c++/4.8.0/string:52,
from /usr/local/include/c++/4.8.0/bits/locale_classes.h:40,
from /usr/local/include/c++/4.8.0/bits/ios_base.h:41,
from /usr/local/include/c++/4.8.0/ios:42,
from /usr/local/include/c++/4.8.0/ostream:38,
from /usr/local/include/c++/4.8.0/iostream:39,
from user.cpp:1:
/usr/include/sys/select.h:109:12: error: previous declaration of ‘int select(int, fd_set*, fd_set*, fd_set*, timeval*)’
extern int select (int __nfds, fd_set *__restrict __readfds,
^
user.cpp: In function ‘int BFS()’:
user.cpp:36:116: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (is_in_matrix(new_x,new_y) && matrix[new_x][new_y] != 0 && matrix[new_x][new_y] < H && !select[new_x][new_y])
^
user.cpp:36:123: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (is_in_matrix(new_x,new_y) && matrix[new_x][new_y] != 0 && matrix[new_x][new_y] < H && !select[new_x][new_y])
^
user.cpp:38:29: warning: pointer to a function used in arithmetic [-Wpointer-arith]
select[new_x][new_y] = true;
^
user.cpp:38:36: warning: pointer to a function used in arithmetic [-Wpointer-arith]
select[new_x][new_y] = true;
^
user.cpp:38:38: error: assignment of read-only location ‘*(select + (((sizetype)new_x) + ((sizetype)new_y)))’
select[new_x][new_y] = true;
^
user.cpp:38:38: error: cannot convert ‘bool’ to ‘int(int, fd_set*, fd_set*, fd_set*, timeval*)’ in assignment
user.cpp: In function ‘int main()’:
user.cpp:58:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
select[i][j] = true;
^
user.cpp:58:28: warning: pointer to a function used in arithmetic [-Wpointer-arith]
select[i][j] = true;
^
user.cpp:58:30: error: assignment of read-only location ‘*(select + (((sizetype)i) + ((sizetype)j)))’
select[i][j] = true;
^
user.cpp:58:30: error: cannot convert ‘bool’ to ‘int(int, fd_set*, fd_set*, fd_set*, timeval*)’ in assignment
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !