记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:13:28: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   13 |                         if(i=j)
      |                            ^
/in/foo.c:19:42: warning: array subscript -1 is below array bounds of 'int[20][20]' [-Warray-bounds]
   19 |                                 a[i][j]=a[i-1][j]+a[i-1][j-1];
      |                                         ~^~~~~
/in/foo.c:5:10: note: while referencing 'a'
    5 |    int n,a[20][20],i,j;
      |          ^
/in/foo.c:19:57: warning: array subscript -1 is below array bounds of 'int[20]' [-Warray-bounds]
   19 |                                 a[i][j]=a[i-1][j]+a[i-1][j-1];
      |                                                   ~~~~~~^~~~~
/in/foo.c:5:10: note: while referencing 'a'
    5 |    int n,a[20][20],i,j;
      |          ^
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 284.0 KiB

信息

递交者
类型
自测
语言
C
递交时间
2025-12-29 15:09:48
评测时间
2025-12-29 15:09:48
评测机
分数
0
总耗时
1ms
峰值内存
284.0 KiB