F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_29421222_16017.cpp:13:13: error: 'maxn' was not declared in this scope
 int n, k, a[maxn], sum[maxn], ans, L, R;
             ^
0_0_29421222_16017.cpp:13:24: error: 'maxn' was not declared in this scope
 int n, k, a[maxn], sum[maxn], ans, L, R;
                        ^
0_0_29421222_16017.cpp:14:7: error: 'maxn' was not declared in this scope
 int q[maxn], p[maxn], ft, rr;
       ^
0_0_29421222_16017.cpp:14:16: error: 'maxn' was not declared in this scope
 int q[maxn], p[maxn], ft, rr;
                ^
0_0_29421222_16017.cpp: In function 'int main()':
0_0_29421222_16017.cpp:24:50: error: 'a' was not declared in this scope
         for(int i = 1; i <= n; ++i) scanf("%d", &a[i]);
                                                  ^
0_0_29421222_16017.cpp:25:36: error: 'a' was not declared in this scope
         for(int i = 1; i < k; ++i) a[n+i] = a[i];
                                    ^
0_0_29421222_16017.cpp:26:9: error: 'sum' was not declared in this scope
         sum[0] = a[n];
         ^
0_0_29421222_16017.cpp:26:18: error: 'a' was not declared in this scope
         sum[0] = a[n];
                  ^
0_0_29421222_16017.cpp:28:29: error: 'INF' was not declared in this scope
         ft = rr = 0; ans = -INF;
                             ^
0_0_29421222_16017.cpp:29:9: error: 'q' was not declared in this scope
         q[rr++] = sum[0]; p[rr-1] = 0;
         ^
0_0_29421222_16017.cpp:29:27: error: 'p' was not declared in this scope
         q[rr++] = sum[0]; p[rr-1] = 0;
                           ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-01 09:32:20, Gzip enabled