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_38566974_12164.cpp:2:10: error: expected primary-expression before '=' token
    2 | #define N=10100
      |          ^
0_0_38566974_12164.cpp:7:6: note: in expansion of macro 'N'
    7 | ll a[N];
      |      ^
0_0_38566974_12164.cpp: In function 'void Gauss()':
0_0_38566974_12164.cpp:15:29: error: 'a' was not declared in this scope
   15 |                         if (a[i] & j)break;
      |                             ^
0_0_38566974_12164.cpp:17:22: error: 'a' was not declared in this scope
   17 |                 swap(a[i], a[k]);
      |                      ^
0_0_38566974_12164.cpp: In function 'll Query(ll)':
0_0_38566974_12164.cpp:34:34: error: 'a' was not declared in this scope
   34 |                 if (k & 1)ans ^= a[i];
      |                                  ^
0_0_38566974_12164.cpp: In function 'int main()':
0_0_38566974_12164.cpp:49:52: error: 'a' was not declared in this scope
   49 |                 for (int i = 1; i <= n; i++)cin >> a[i];
      |                                                    ^


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-26 21:36:19, Gzip enabled