记录详情

Compile Error

foo.c: In function 'mystrcat':
foo.c:8:17: error: 'srcStr' undeclared (first use in this function); did you mean 'srcstr'?
    8 |  for(int j = 0; srcStr[j]!='\0'; j++)
      |                 ^~~~~~
      |                 srcstr
foo.c:8:17: note: each undeclared identifier is reported only once for each function it appears in
foo.c:14:6: warning: 'main' is normally a non-static function [-Wmain]
   14 |  int main()
      |      ^~~~
foo.c: In function 'main':
foo.c:15:2: error: expected declaration specifiers before 'while'
   15 |  while(~scanf("%s%s" , str1,str2) )
      |  ^~~~~
foo.c:17:2: error: expected declaration specifiers before 'MyStrcat'
   17 |  MyStrcat(str1, str2);printf("%s \n" , str1 );
      |  ^~~~~~~~
foo.c:17:23: error: expected declaration specifiers before 'printf'
   17 |  MyStrcat(str1, str2);printf("%s \n" , str1 );
      |                       ^~~~~~
foo.c:18:2: error: expected declaration specifiers before 'return'
   18 |  return 0 ;
      |  ^~~~~~
foo.c:19:1: error: expected declaration specifiers before '}' token
   19 | }
      | ^
foo.c:19: error: expected '{' at end of input
   19 | }
      | 
foo.c: In function 'mystrcat':
foo.c:19:1: error: expected declaration or statement at end of input
   19 | }
      | ^
foo.c:19:1: error: expected declaration or statement at end of input
At top level:
foo.c:14:6: warning: 'main' defined but not used [-Wunused-function]
   14 |  int main()
      |      ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
中北 计算机2021级专业修读指导(4)
语言
C
递交时间
2021-12-23 23:27:03
评测时间
2021-12-23 23:27:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes