Borderou de evaluare (job #2644787)

Utilizator loraclorac lorac lorac Data 25 august 2020 22:23:52
Problema Wbtree Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:16: error: 'bool select [100004]' redeclared as different kind of symbol bool select[lim]; ^ 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/x86_64-linux-gnu/c++/6/bits/stdc++.h:47, 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 df(ll)': main.cpp:28:27: warning: pointer to a function used in arithmetic [-Wpointer-arith] under[nod]+=select[nod]; ^ main.cpp:28:27: warning: pointer to a function used in arithmetic [-Wpointer-arith] main.cpp:28:27: error: invalid conversion from 'int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)' to 'll {aka long long int}' [-fpermissive] main.cpp: In function 'int main()': main.cpp:46:17: warning: pointer to a function used in arithmetic [-Wpointer-arith] select[x]=true; ^ main.cpp:46:19: error: assignment of read-only location '*(select + ((sizetype)x))' select[x]=true; ^~~~ main.cpp:46:19: error: cannot convert 'bool' to 'int(int, fd_set*, fd_set*, fd_set*, timeval*)' in assignment Non zero exit status: 1

Ceva nu functioneaza?