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_36146622_23475.cpp: In function 'void brute()':
0_0_36146622_23475.cpp:84:13: error: expected unqualified-id before '[' token
   for (auto [l, r, id] : qry) {
             ^
0_0_36146622_23475.cpp:84:13: error: expected ';' before '[' token
0_0_36146622_23475.cpp:84:14: error: 'l' was not declared in this scope
   for (auto [l, r, id] : qry) {
              ^
0_0_36146622_23475.cpp:84:17: error: 'r' was not declared in this scope
   for (auto [l, r, id] : qry) {
                 ^
0_0_36146622_23475.cpp:84:20: error: 'id' was not declared in this scope
   for (auto [l, r, id] : qry) {
                    ^
0_0_36146622_23475.cpp: In lambda function:
0_0_36146622_23475.cpp:84:24: error: expected '{' before ':' token
   for (auto [l, r, id] : qry) {
                        ^
0_0_36146622_23475.cpp: In function 'void brute()':
0_0_36146622_23475.cpp:84:24: error: expected ';' before ':' token
0_0_36146622_23475.cpp:84:24: error: expected primary-expression before ':' token
0_0_36146622_23475.cpp:84:24: error: expected ')' before ':' token
0_0_36146622_23475.cpp:84:24: error: expected primary-expression before ':' token
0_0_36146622_23475.cpp: In function 'int main()':
0_0_36146622_23475.cpp:118:15: error: expected unqualified-id before '[' token
     for (auto [ai, p] : pos) {
               ^
0_0_36146622_23475.cpp:118:15: error: expected ';' before '[' token
0_0_36146622_23475.cpp:118:16: error: 'ai' was not declared in this scope
     for (auto [ai, p] : pos) {
                ^
0_0_36146622_23475.cpp:118:20: error: 'p' was not declared in this scope
     for (auto [ai, p] : pos) {
                    ^
0_0_36146622_23475.cpp: In lambda function:
0_0_36146622_23475.cpp:118:23: error: expected '{' before ':' token
     for (auto [ai, p] : pos) {
                       ^
0_0_36146622_23475.cpp: In function 'int main()':
0_0_36146622_23475.cpp:118:23: error: expected ';' before ':' token
0_0_36146622_23475.cpp:118:23: error: expected primary-expression before ':' token
0_0_36146622_23475.cpp:118:23: error: expected ')' before ':' token
0_0_36146622_23475.cpp:118:23: error: expected primary-expression before ':' token
0_0_36146622_23475.cpp:136:14: error: expected unqualified-id before '[' token
         auto [l, r, id] = qry[j];
              ^
0_0_36146622_23475.cpp:140:13: error: 'id' was not declared in this scope
         ans[id] = x[r] ^ x[l - 1];
             ^
0_0_36146622_23475.cpp:140:21: error: 'r' was not declared in this scope
         ans[id] = x[r] ^ x[l - 1];
                     ^
0_0_36146622_23475.cpp:140:28: error: 'l' was not declared in this scope
         ans[id] = x[r] ^ x[l - 1];
                            ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-10 04:00:59, Gzip enabled