记录详情

Compile Error

foo.cc:4:24: error: 'int time' redeclared as different kind of symbol
 int b[10100],c[101001],time,z[4]={0,0,0,0};
                        ^~~~
In file included from /usr/include/pthread.h:24:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/gthr-default.h:35,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/gthr.h:148,
                 from /usr/include/c++/7/ext/atomicity.h:35,
                 from /usr/include/c++/7/bits/ios_base.h:39,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from foo.cc:1:
/usr/include/time.h:75:15: note: previous declaration 'time_t time(time_t*)'
 extern time_t time (time_t *__timer) __THROW;
               ^~~~
foo.cc: In function 'void nm(int, int)':
foo.cc:15:8: error: expected primary-expression before ']' token
   if(a[][])
        ^
foo.cc:15:10: error: expected primary-expression before ']' token
   if(a[][])
          ^
foo.cc:16:2: error: expected primary-expression before '}' token
  }
  ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1009 龙&虫(dragon,1s.256MB)
题目数据
下载
语言
C++
递交时间
2021-11-28 20:46:52
评测时间
2021-11-28 20:46:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes