Compile Error
foo.c: In function ‘main’:
foo.c:8:16: error: ‘)’ undeclared (first use in this function)
    8 |     dp[0] = 1; )
      |                ^~
foo.c:8:16: note: each undeclared identifier is reported only once for each function it appears in
foo.c:8:18: error: expected ‘;’ before ‘for’
    8 |     dp[0] = 1; )
      |                  ^
      |                  ;
    9 | 
   10 |     for (int i = 1; i <= n; i++) {
      |     ~~~           
foo.c:7:9: warning: variable ‘dp’ set but not used [-Wunused-but-set-variable]
    7 |     int dp[30] = {0};
      |         ^~
  信息
- 递交者
 - 类型
 - 自测
 - 题目
 - 6-3 上楼梯的走法
 - 语言
 - C
 - 递交时间
 - 2025-05-10 08:47:02
 - 评测时间
 - 2025-05-10 08:47:02
 - 评测机
 
- 分数
 - 0
 - 总耗时
 - 0ms
 - 峰值内存
 - 0 Bytes