Borderou de evaluare (job #2074429)

Utilizator papinub2Papa Valentin papinub2 Data 24 noiembrie 2017 16:45:16
Problema Graf Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:14:16: error: ‘int select [7505]’ redeclared as different kind of symbol int select[Nmax], rez[Nmax], verif1[Nmax], verif2[Nmax]; ^ 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/ext/string_conversions.h:41, from /usr/include/c++/4.8/bits/basic_string.h:2815, from /usr/include/c++/4.8/string:52, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /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 bfs(int, int*)’: user.cpp:21:15: warning: pointer to a function used in arithmetic [-Wpointer-arith] select[nod] = 1; ^ user.cpp:21:17: error: assignment of read-only location ‘*(select + ((sizetype)nod))’ select[nod] = 1; ^ user.cpp:21:17: error: cannot convert ‘int’ to ‘int(int, fd_set*, fd_set*, fd_set*, timeval*)’ in assignment user.cpp:29:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (auto i = 0; i < A[first].size(); i++) ^ user.cpp:30:36: warning: pointer to a function used in arithmetic [-Wpointer-arith] if (!select[A[first][i]]) ^ user.cpp:32:35: warning: pointer to a function used in arithmetic [-Wpointer-arith] select[A[first][i]] = 1; ^ user.cpp:32:37: error: assignment of read-only location ‘*(select + ((sizetype)A[first].std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(((std::vector<int>::size_type)i))))’ select[A[first][i]] = 1; ^ user.cpp:32:37: error: cannot convert ‘int’ to ‘int(int, fd_set*, fd_set*, fd_set*, timeval*)’ in assignment user.cpp: In function ‘int main()’: user.cpp:55:17: warning: pointer to a function used in arithmetic [-Wpointer-arith] select[i] = 0; ^ user.cpp:55:19: error: assignment of read-only location ‘*(select + ((sizetype)i))’ select[i] = 0; ^ user.cpp:55:19: error: cannot convert ‘int’ to ‘int(int, fd_set*, fd_set*, fd_set*, timeval*)’ in assignment

Ceva nu functioneaza?