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_32245644_21976.cpp:2:21: error: expected unqualified-id before 'xor' token
 long long a[500005],xor;
                     ^
0_0_32245644_21976.cpp: In function 'int main()':
0_0_32245644_21976.cpp:9:17: error: expected primary-expression before 'xor' token
         for(i=2,xor=0;i<=n;i++)
                 ^
0_0_32245644_21976.cpp:9:20: error: expected primary-expression before '=' token
         for(i=2,xor=0;i<=n;i++)
                    ^
0_0_32245644_21976.cpp:12:13: error: expected primary-expression before 'xor' token
             xor=xor^a[i];
             ^
0_0_32245644_21976.cpp:12:16: error: expected primary-expression before '=' token
             xor=xor^a[i];
                ^
0_0_32245644_21976.cpp:12:17: error: expected primary-expression before 'xor' token
             xor=xor^a[i];
                 ^
0_0_32245644_21976.cpp:12:20: error: expected primary-expression before '^' token
             xor=xor^a[i];
                    ^
0_0_32245644_21976.cpp:14:23: error: expected primary-expression before 'xor' token
         printf("%lld",xor);
                       ^
0_0_32245644_21976.cpp:14:26: error: expected primary-expression before ')' token
         printf("%lld",xor);
                          ^


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-11-23 06:08:35, Gzip enabled