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_39580866_7448.cpp: In function 'void solve()':
0_0_39580866_7448.cpp:23:12: error: 'LL' was not declared in this scope; did you mean 'ULL'?
   23 |     vector<LL> a(n), b(n), res(n);
      |            ^~
      |            ULL
0_0_39580866_7448.cpp:23:14: error: template argument 1 is invalid
   23 |     vector<LL> a(n), b(n), res(n);
      |              ^
0_0_39580866_7448.cpp:23:14: error: template argument 2 is invalid
0_0_39580866_7448.cpp:25:42: error: invalid types 'int[int]' for array subscript
   25 |     for (int i = 0; i < n; i ++) cin >> a[i] >> b[i];
      |                                          ^
0_0_39580866_7448.cpp:25:50: error: invalid types 'int[int]' for array subscript
   25 |     for (int i = 0; i < n; i ++) cin >> a[i] >> b[i];
      |                                                  ^
0_0_39580866_7448.cpp:27:37: error: invalid types 'int[int]' for array subscript
   27 |     for (int i = 0; i < n; i ++) res[i] = (a[i] ^ b[i]) & 1;
      |                                     ^
0_0_39580866_7448.cpp:27:45: error: invalid types 'int[int]' for array subscript
   27 |     for (int i = 0; i < n; i ++) res[i] = (a[i] ^ b[i]) & 1;
      |                                             ^
0_0_39580866_7448.cpp:27:52: error: invalid types 'int[int]' for array subscript
   27 |     for (int i = 0; i < n; i ++) res[i] = (a[i] ^ b[i]) & 1;
      |                                                    ^
0_0_39580866_7448.cpp:32:15: error: expected ';' before 'tmp'
   32 |             LL tmp = res[(i + n - 1) % n] & ((1 << k) - 1);
      |               ^~~~
      |               ;
0_0_39580866_7448.cpp:33:15: error: expected ';' before 'u'
   33 |             LL u = (a[i] ^ tmp) + (b[i] ^ tmp);
      |               ^~
      |               ;
0_0_39580866_7448.cpp:34:16: error: invalid types 'int[int]' for array subscript
   34 |             res[i] ^= u & (1 << k);
      |                ^
0_0_39580866_7448.cpp:34:23: error: 'u' was not declared in this scope
   34 |             res[i] ^= u & (1 << k);
      |                       ^
0_0_39580866_7448.cpp:36:45: error: invalid types 'int[int]' for array subscript
   36 |     for (int i = 0; i < n; i ++) cout << res[i] << endl;
      |                                             ^


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-09-20 09:31:01, Gzip enabled