记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:13:25: error: 'trangle' undeclared (first use in this function); did you mean 'triangle'?
   13 |                         trangle=[i][j]=triangle[i-1][j-1]+trangle[i-1][j-1];
      |                         ^~~~~~~
      |                         triangle
/in/foo.c:13:25: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:13:33: error: expected expression before '[' token
   13 |                         trangle=[i][j]=triangle[i-1][j-1]+trangle[i-1][j-1];
      |                                 ^
/in/foo.c:17:45: error: expected ')' before ';' token
   17 |                    printf("%d",trangle[i][j];
      |                          ~                  ^
      |                                             )
/in/foo.c:17:46: error: expected ';' before '}' token
   17 |                    printf("%d",trangle[i][j];
      |                                              ^
      |                                              ;
   18 |         }
      |         ~                                     

信息

递交者
类型
自测
语言
C
递交时间
2025-11-30 23:32:10
评测时间
2025-11-30 23:32:10
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes