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_38318265_7354.cpp: In function 'void MosAlgorithm::mo()':
0_0_38318265_7354.cpp:54:18: error: expected unqualified-id before '[' token
             auto [id, l, r] = ques[k];
                  ^
0_0_38318265_7354.cpp:56:24: error: 'r' was not declared in this scope
             while (i < r) insert(a[++i], res);
                        ^
0_0_38318265_7354.cpp:57:24: error: 'r' was not declared in this scope
             while (i > r) remove(a[i--], res);
                        ^
0_0_38318265_7354.cpp:58:24: error: 'l' was not declared in this scope
             while (j < l) remove(a[j++], res);
                        ^
0_0_38318265_7354.cpp:59:24: error: 'l' was not declared in this scope
             while (j > l) insert(a[--j], res);
                        ^
0_0_38318265_7354.cpp:61:17: error: 'id' was not declared in this scope
             ans[id] = res;
                 ^


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 02:34:33, Gzip enabled