Borderou de evaluare (job #1565633)

Utilizator fanache99Constantin-Buliga Stefan fanache99 Data 11 ianuarie 2016 08:38:29
Problema Elimin Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:5:17: error: ‘bool select [8000]’ redeclared as different kind of symbol bool select[8000]; ^ In file included from /usr/include/i386-linux-gnu/sys/types.h:220:0, from /usr/include/stdlib.h:320, from /usr/include/c++/4.8/cstdlib:72, from /usr/include/c++/4.8/bits/stl_algo.h:59, from /usr/include/c++/4.8/algorithm:62, from user.cpp:2: /usr/include/i386-linux-gnu/sys/select.h:107: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 check()’: user.cpp:10:20: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(select[i]==true) ^ user.cpp:10:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(select[i]==true) ^ user.cpp: In function ‘void backtracking(int, int)’: user.cpp:34:17: warning: pointer to a function used in arithmetic [-Wpointer-arith] select[i]=true; ^ user.cpp:34:18: error: assignment of read-only location ‘*(select + ((sizetype)i))’ select[i]=true; ^ user.cpp:34:18: error: cannot convert ‘bool’ to ‘int(int, fd_set*, fd_set*, fd_set*, timeval*)’ in assignment user.cpp:36:17: warning: pointer to a function used in arithmetic [-Wpointer-arith] select[i]=false; ^ user.cpp:36:18: error: assignment of read-only location ‘*(select + ((sizetype)i))’ select[i]=false; ^ user.cpp:36:18: error: cannot convert ‘bool’ to ‘int(int, fd_set*, fd_set*, fd_set*, timeval*)’ in assignment user.cpp: In function ‘int main()’: user.cpp:40:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("elimin.in","r",stdin); ^ user.cpp:41:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("elimin.out","w",stdout); ^ user.cpp:43:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d",&n,&m,&r,&c); ^ user.cpp:53:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&a[j][i]); ^ user.cpp:58:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&a[i][j]); ^

Ceva nu functioneaza?