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_17172697_24407.cpp:5:12: error: array bound is not an integer constant before ']' token
 int  a[maxn];
            ^
0_0_17172697_24407.cpp: In function 'void solve()':
0_0_17172697_24407.cpp:11:25: error: 'a' was not declared in this scope
             scanf("%d",&a[i]);
                         ^
0_0_17172697_24407.cpp:16:15: error: 'a' was not declared in this scope
         ans^=(a[i]+a[j]);
               ^
0_0_17172697_24407.cpp:19:35: error: 'a' was not declared in this scope
         for(int i=1;i<x;i++)ans^=(a[x]+a[i])^(y+a[i]);
                                   ^
0_0_17172697_24407.cpp:20:38: error: 'a' was not declared in this scope
         for(int i=x+1;i<=n;i++)ans^=(a[x]+a[i])^(y+a[i]);
                                      ^
0_0_17172697_24407.cpp:21:9: error: 'a' was not declared in this scope
         a[x]=y;
         ^


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-06-17 04:47:17, Gzip enabled