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_33270769_21527.cpp:3:14: error: expected primary-expression before '=' token
 #define maxn = 10001;
              ^
0_0_33270769_21527.cpp:4:10: note: in expansion of macro 'maxn'
 int n, a[maxn*2], ans[maxn*2];
          ^
0_0_33270769_21527.cpp:3:21: error: expected ']' before ';' token
 #define maxn = 10001;
                     ^
0_0_33270769_21527.cpp:4:10: note: in expansion of macro 'maxn'
 int n, a[maxn*2], ans[maxn*2];
          ^
0_0_33270769_21527.cpp:4:15: error: expected unqualified-id before numeric constant
 int n, a[maxn*2], ans[maxn*2];
               ^
0_0_33270769_21527.cpp:4:15: error: expected constructor, destructor, or type conversion before numeric constant
0_0_33270769_21527.cpp:4:28: error: expected unqualified-id before numeric constant
 int n, a[maxn*2], ans[maxn*2];
                            ^
0_0_33270769_21527.cpp:4:28: error: expected constructor, destructor, or type conversion before numeric constant
0_0_33270769_21527.cpp: In function 'int main()':
0_0_33270769_21527.cpp:13:4: error: 'a' was not declared in this scope
    a[i]=a[i+n]=x-y;
    ^
0_0_33270769_21527.cpp:18:11: error: 'a' was not declared in this scope
    if(sum+a[i]>=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-07-03 12:14:30, Gzip enabled