Borderou de evaluare (job #1023645)

Utilizator UnforgivenMihai Catalin Botezatu Unforgiven Data 7 noiembrie 2013 15:16:23
Problema Barbar Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:16:34: error: ‘bool select [1000][1000]’ redeclared as different kind of symbol bool select[MAX_ROWS][MAX_COLUMNS]; ^ 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 ‘void BFS()’: user.cpp:33:9: warning: unused variable ‘new_x’ [-Wunused-variable] int new_x , new_y; ^ user.cpp:33:17: warning: unused variable ‘new_y’ [-Wunused-variable] int new_x , new_y; ^ user.cpp: In function ‘void Final_BFS()’: user.cpp:83:64: warning: pointer to a function used in arithmetic [-Wpointer-arith] if (is_in_matrix(new_x, new_y) && !select[new_x][new_y] && distante[new_x][new_y] >= distanta_max && matrice[new_x][new_y] != '*' && matrice[new_x][new_y] != 'D') ^ user.cpp:83:71: warning: pointer to a function used in arithmetic [-Wpointer-arith] if (is_in_matrix(new_x, new_y) && !select[new_x][new_y] && distante[new_x][new_y] >= distanta_max && matrice[new_x][new_y] != '*' && matrice[new_x][new_y] != 'D') ^ user.cpp:85:33: warning: pointer to a function used in arithmetic [-Wpointer-arith] select[new_x][new_y] = true; ^ user.cpp:85:40: warning: pointer to a function used in arithmetic [-Wpointer-arith] select[new_x][new_y] = true; ^ user.cpp:85:42: error: assignment of read-only location ‘*(select + (((sizetype)new_x) + ((sizetype)new_y)))’ select[new_x][new_y] = true; ^ user.cpp:85:42: error: cannot convert ‘bool’ to ‘int(int, fd_set*, fd_set*, fd_set*, timeval*)’ in assignment user.cpp:95:40: warning: pointer to a function used in arithmetic [-Wpointer-arith] if (select[sosire_pozitie.first][sosire_pozitie.second]) ^ user.cpp:95:63: warning: pointer to a function used in arithmetic [-Wpointer-arith] if (select[sosire_pozitie.first][sosire_pozitie.second]) ^ user.cpp:59:9: warning: unused variable ‘new_x’ [-Wunused-variable] int new_x , new_y;

Ceva nu functioneaza?