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_39329441_24174.cpp: In function 'int main()':
0_0_39329441_24174.cpp:29:66: error: expected ';' before 'auto'
   29 |       for(int i=0;i<n;i++)scanf("%lld",&p[i]),M+=p[i]-1;M=(M+1)/2
      |                                                                  ^
      |                                                                  ;
   30 |       auto A=calc(p,n/2),B=calc(p+n/2,n-n/2);
      |       ~~~~                                                        
0_0_39329441_24174.cpp:32:21: error: 'A' was not declared in this scope
   32 |       reverse(begin(A),end(A));
      |                     ^
0_0_39329441_24174.cpp:34:17: error: 'B' was not declared in this scope
   34 |          for(;i<B.size()&&M-B[i].s-x.s>=0;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-11-22 11:04:11, Gzip enabled