/ Vijos /

记录详情

Compile Error

foo.c: In function 'main':
foo.c:7:5: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
     scanf("%d",&n);
     ^
foo.c:8:5: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
     memset(f,true,sizeof(f));
     ^
foo.c:8:5: warning: incompatible implicit declaration of built-in function 'memset'
foo.c:13:30: error: lvalue required as left operand of assignment
                 if((a[i]+a[j]=a[k])&&f[k]){
                              ^
foo.c:17:5: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
     printf("%d",ans);
     ^

信息

递交者
类型
递交
题目
P1911 珠心算测验
语言
C
递交时间
2015-08-12 16:12:11
评测时间
2015-08-12 16:12:12
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes