Borderou de evaluare (job #2474033)

Utilizator Anakin1001George Giorgiu Gica Anakin1001 Data 14 octombrie 2019 17:24:54
Problema Ninjago Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:17:18: error: 'int select' redeclared as different kind of symbol int father[DIM], select, T_cost, obstacle; ^~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219:0, from /usr/include/stdlib.h:314, from /usr/include/c++/6/cstdlib:75, from /usr/include/c++/6/ext/string_conversions.h:41, from /usr/include/c++/6/bits/basic_string.h:5420, from /usr/include/c++/6/string:52, from /usr/include/c++/6/bits/locale_classes.h:40, from /usr/include/c++/6/bits/ios_base.h:41, from /usr/include/c++/6/ios:42, from /usr/include/c++/6/istream:38, from /usr/include/c++/6/fstream:38, from main.cpp:1: /usr/include/x86_64-linux-gnu/sys/select.h:106:12: note: previous declaration 'int select(int, fd_set*, fd_set*, fd_set*, timeval*)' extern int select (int __nfds, fd_set *__restrict __readfds, ^~~~~~ main.cpp: In function 'void Arc_select(int&)': main.cpp:38:15: warning: ISO C++ forbids incrementing a pointer of type 'int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)' [-Wpointer-arith] select++; ^~ main.cpp:38:15: error: lvalue required as increment operand main.cpp: In function 'int main()': main.cpp:75:34: error: invalid operands of types 'int' and 'int(int, fd_set*, fd_set*, fd_set*, timeval*)' to binary 'operator-' int ninja_select = ( n - 1 ) - select; ~~~~~~~~~~^~~~~~~~ main.cpp:76:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] while ( select < n - 1 ){ ^ Non zero exit status: 1

Ceva nu functioneaza?