/ Vijos /

记录详情

Compile Error

foo.cpp:8:26: error: 'maxn' was not declared in this scope
 long int n,a,b,c,x,f,ans[maxn];
                          ^
foo.cpp: In function 'int main()':
foo.cpp:18:1: error: 'endif' was not declared in this scope
 endif
 ^
foo.cpp:19:1: error: expected ';' before 'scanf'
 scanf("%d%d",&n,&c);
 ^
foo.cpp:20:35: error: 'ans' was not declared in this scope
 for (int i=1;i<n;i++) scanf("%d",&ans[i]);
                                   ^
foo.cpp:25:26: error: 'ans' was not declared in this scope
 if (go||((long long int) ans[c]*a+b)%c==ans[c+1])
                          ^
foo.cpp:40:34: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
         printf("%d %d %d\n",x,a,b);
                                  ^
foo.cpp:40:34: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
foo.cpp:40:34: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]

信息

递交者
类型
递交
题目
P1965 夜夜的数据加强
语言
C++
递交时间
2016-02-17 11:47:17
评测时间
2016-02-17 11:47:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes