/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'void pre_doing()':
foo.cpp:8:29: error: invalid operands of types 'int [2000]' and 'int [2000]' to binary 'operator+'
 for (i=10;i<=99;i++) a[i]=a+a;
                             ^
foo.cpp:9:45: error: invalid operands of types 'int*' and 'int [2000]' to binary 'operator+'
 for (i=100;i<=999;i++) a[i]=a+a[(i%100)/10]+a;
                                             ^
foo.cpp:10:63: error: invalid operands of types 'int*' and 'int [2000]' to binary 'operator+'
 for (i=1000;i<=1999;i++) a[i]=a+a[(i%1000)/100]+a[(i%100)/10]+a;
                                                               ^
foo.cpp: In function 'void doit()':
foo.cpp:17:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
 if (a[i]+a[j]+a==n) total++;
                  ^

信息

递交者
类型
递交
题目
P1496 火柴棒等式
语言
C++
递交时间
2014-10-29 23:44:49
评测时间
2014-10-29 23:44:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes