F.A.Qs Home ProblemSet Status Ranklist 1 Contest LoginRegister
Notice:1:五月份月赛定于5.27日12:30--17:30,鸣谢Claris主持!欢迎大家来玩! 2:关于OJ的注册可看https://www.lydsy.com/JudgeOnline/wttl/thread.php?tid=5671
大视野在线测评-欢迎您
[ New Thread ]
Problem 4207 >> CE惹,select不能用??????(WIN下g++ 4.8.1 编译)
Lazer2001 @ 2017-10-24 21:54:06
[ Quote ] [ Edit ] [ Delete ] 1#
Main.cc:5: error: 'std::bitset<123456u> select' redeclared as different kind of symbol
/usr/include/sys/select.h:109: error: previous declaration of 'int select(int, fd_set*, fd_set*, fd_set*, timeval*)'
Main.cc: In function 'bool chk(int)':
Main.cc:14: error: request for member 'test' in 'select', which is of non-class type 'int(int, fd_set*, fd_set*, fd_set*, timeval*)'
Main.cc: In function 'void Dfs(int, int, int, int, int)':
Main.cc:29: error: request for member 'set' in 'select', which is of non-class type 'int(int, fd_set*, fd_set*, fd_set*, timeval*)'
Main.cc:31: error: request for member 'reset' in 'select', which is of non-class type 'int(int, fd_set*, fd_set*, fd_set*, timeval*)'
Main.cc:34: error: request for member 'set' in 'select', which is of non-class type 'int(int, fd_set*, fd_set*, fd_set*, timeval*)'
Main.cc:36: error: request for member 'reset' in 'select', which is of non-class type 'int(int, fd_set*, fd_set*, fd_set*, timeval*)'
Main.cc: In function 'void ToDfs(int, int)':
Main.cc:45: error: request for member 'set' in 'select', which is of non-class type 'int(int, fd_set*, fd_set*, fd_set*, timeval*)'
Main.cc:47: error: request for member 'reset' in 'select', which is of non-class type 'int(int, fd_set*, fd_set*, fd_set*, timeval*)'
Main.cc: In function 'int main()':
Main.cc:59: error: request for member 'reset' in 'select', which is of non-class type 'int(int, fd_set*, fd_set*, fd_set*, timeval*)'
Main.cc:54: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result
Main.cc:58: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result
Main.cc:64: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result
[Top] [Previous Page] [Next Page]

HOME Back