记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:20:5: error: variable-sized object may not be initialized
     int result[n]={1},buff[n]={1},sum=sum0;
     ^~~
/in/foo.c:20:20: warning: excess elements in array initializer
     int result[n]={1},buff[n]={1},sum=sum0;
                    ^
/in/foo.c:20:20: note: (near initialization for 'result')
/in/foo.c:20:5: error: variable-sized object may not be initialized
     int result[n]={1},buff[n]={1},sum=sum0;
     ^~~
/in/foo.c:20:32: warning: excess elements in array initializer
     int result[n]={1},buff[n]={1},sum=sum0;
                                ^
/in/foo.c:20:32: note: (near initialization for 'buff')

信息

递交者
类型
自测
题目
P1545 Problem 6C. 分糖果
语言
C
递交时间
2023-11-14 13:41:58
评测时间
2023-11-14 13:41:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes