记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:45:13: error: conflicting declaration 'char s [1000]'
  char s[1000];
             ^
/in/foo.cc:44:6: note: previous declaration as 'Str s'
  Str s;
      ^
/in/foo.cc:47:9: error: expected primary-expression before ']' token
  cin>>s[];
         ^
/in/foo.cc:48:9: error: expected primary-expression before ']' token
  cin>>t[];
         ^
/in/foo.cc:50:19: error: 'strlen' was not declared in this scope
  int tlen=strlen(t);
                   ^
/in/foo.cc:54:22: error: cannot convert 'Str' to 'char*' for argument '1' to 'int Index(char*, int, char*)'
   k=Index(s,k+tlen, t);
                      ^

信息

递交者
类型
自测
语言
C++
递交时间
2019-04-06 11:56:38
评测时间
2019-04-06 11:56:38
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes