记录详情

Compile Error

/in/foo.cc:20:5: error: 'int index' redeclared as different kind of symbol
 int index=0,low[maxn],num[maxn];
     ^~~~~
In file included from /usr/include/c++/6/cstring:42:0,
                 from /in/foo.cc:4:
/usr/include/string.h:477:1: note: previous declaration 'const char* index(const char*, int)'
 index (const char *__s, int __c) __THROW
 ^~~~~
/in/foo.cc: In function 'int tarjan(int, int)':
/in/foo.cc:22:7: error: no post-increment operator for type
  index++;
       ^~
/in/foo.cc:23:20: error: cannot resolve overloaded function 'index' based on conversion to type 'int'
  num[cur]=low[cur]=index;
                    ^~~~~
/in/foo.cc:36:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
学校
题目数据
下载
语言
C++
递交时间
2017-09-02 14:49:18
评测时间
2017-09-02 14:49:18
评测机
分数
0
总耗时
251ms
峰值内存
35.504 MiB