/ Vijos /

记录详情

Compile Error

foo.c: In function 'hs':
foo.c:21:6: warning: assignment makes integer from pointer without a cast [enabled by default]
 hh[a]=m;
      ^
foo.c: In function 'add':
foo.c:38:5: error: invalid operands to binary / (have 'int *' and 'int')
 if(m/n>0)
     ^
foo.c:40:4: error: invalid operands to binary / (have 'int *' and 'int')
 m=m/n+m;
    ^
foo.c:41:4: error: invalid operands to binary % (have 'int *' and 'int')
 m=m%n;
    ^
foo.c: In function 'pdhw':
foo.c:50:5: warning: unused variable 'x' [-Wunused-variable]
 int x=1;
     ^
foo.c: In function 'main':
foo.c:63:1: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'char (*)[100]' [-Wformat=]
 scanf("%d%s",&n,&mm);
 ^

信息

递交者
类型
递交
题目
P1304 回文数
语言
C
递交时间
2014-07-18 16:34:10
评测时间
2014-07-18 16:34:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes