/ Vijos /

记录详情

Compile Error

/in/foo.cc:8:20: error: 'int select' redeclared as different kind of symbol
 int sys[22],sysn=1,select;
                    ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219:0,
                 from /usr/include/stdlib.h:275,
                 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:5417,
                 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/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:1:
/usr/include/x86_64-linux-gnu/sys/select.h:108:12: note: previous declaration 'int select(int, fd_set*, fd_set*, fd_set*, timeval*)'
 extern int select (int __nfds, fd_set *__restrict __readfds,
            ^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:15:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  while(temp=getchar())
                     ^
/in/foo.cc:14:6: warning: unused variable 'n' [-Wunused-variable]
  int n,cnt=0;
      ^

信息

递交者
类型
递交
题目
P1303 导弹拦截
语言
C++
递交时间
2017-11-07 22:45:27
评测时间
2017-11-07 22:45:27
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes