/ Vijos /

记录详情

Compile Error

/in/foo.c:3:5: error: variably modified 'data' at file scope
 int data[maxn];
     ^~~~
/in/foo.c:4:5: error: variably modified 'sum' at file scope
 int sum[maxn];
     ^~~
/in/foo.c: In function 'main':
/in/foo.c:8:14: error: 'n' undeclared (first use in this function)
  scanf("%d",&n);
              ^
/in/foo.c:8:14: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:11:11: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
   scanf("%d",data[i]);
          ~^  ~~~~~~~

信息

递交者
类型
自测
题目
P2038 子集的和
语言
C
递交时间
2018-10-29 23:39:36
评测时间
2018-10-29 23:39:36
评测机
分数
0
总耗时
19ms
峰值内存
5.043 MiB