/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'void hs()':
foo.cpp:21:6: error: invalid conversion from 'int*' to 'int' [-fpermissive]
 hh[a]=m;
      ^
foo.cpp: In function 'void add()':
foo.cpp:38:6: error: invalid operands of types 'int [100]' and 'int' to binary 'operator/'
 if(m/n>0)
      ^
foo.cpp:40:5: error: invalid operands of types 'int [100]' and 'int' to binary 'operator/'
 m=m/n+m;
     ^
foo.cpp:41:5: error: invalid operands of types 'int [100]' and 'int' to binary 'operator%'
 m=m%n;
     ^
foo.cpp: In function 'int pdhw()':
foo.cpp:50:5: warning: unused variable 'x' [-Wunused-variable]
 int x=1;
     ^
foo.cpp: In function 'int main()':
foo.cpp:63:20: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[100]' [-Wformat=]
 scanf("%d%s",&n,&mm);
                    ^

信息

递交者
类型
递交
题目
P1304 回文数
语言
C++
递交时间
2014-08-13 09:42:36
评测时间
2014-08-13 09:42:38
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes