记录详情

Compile Error

foo.cc:16:17: error: stray '\357' in program
  return step(n-1)+step(n-2)+step(n-3);
                 ^
foo.cc:16:18: error: stray '\274' in program
  return step(n-1)+step(n-2)+step(n-3);
                  ^
foo.cc:16:19: error: stray '\211' in program
  return step(n-1)+step(n-2)+step(n-3);
                   ^
foo.cc:16:25: error: stray '\357' in program
  return step(n-1)+step(n-2)+step(n-3);
                         ^
foo.cc:16:26: error: stray '\274' in program
  return step(n-1)+step(n-2)+step(n-3);
                          ^
foo.cc:16:27: error: stray '\210' in program
  return step(n-1)+step(n-2)+step(n-3);
                           ^
foo.cc: In function 'int step(int)':
foo.cc:16:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
  return step(n-1)+step(n-2)+step(n-3);
              ~~~~~~^~~~~
cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith]
foo.cc:16:28: error: expected ')' before 'n'
  return step(n-1)+step(n-2)+step(n-3);
                            ^
foo.cc:16:20: error: invalid conversion from 'int (*)(int)' to 'int' [-fpermissive]
  return step(n-1)+step(n-2)+step(n-3);
              ~~~~~~^~~~~
foo.cc:10:5: note:   initializing argument 1 of 'int step(int)'
 int step(int n)
     ^~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
6-3 上楼梯的走法
比赛
2020苏青奥赛集训营(2021-5-9作业)
语言
C++
递交时间
2021-05-10 20:18:32
评测时间
2021-05-11 09:40:33
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes