/ 7FOJ /

记录详情

Compile Error

/in/foo.cc:9:53: error: expected unqualified-id before '.' token
 int s[100005][2],sum[100005][2],c[100005],x[100005];.//定义二维数组方便分组
                                                     ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:12:21: error: 'n' was not declared in this scope
     scanf ("%d %d",&n,&m);//其实m没有什么用处
                     ^
/in/foo.cc:12:24: error: 'm' was not declared in this scope
     scanf ("%d %d",&n,&m);//其实m没有什么用处
                        ^
/in/foo.cc:22:9: error: 'ans' was not declared in this scope
         ans=(ans+i*((s[c[i]][i%2]-2)*x[i]%10007+sum[c[i]][i%2]))%10007;//依次然后代入,注意,也要mod10007
         ^~~
/in/foo.cc:24:20: error: 'ans' was not declared in this scope
     printf ("%d\n",ans);//最后输出
                    ^~~

信息

递交者
类型
递交
题目
P1088 「NOIP2015 P」求和
语言
C++
递交时间
2020-08-04 08:58:21
评测时间
2020-08-04 08:58:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes