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_37561691_8126.cpp: In function 'std::pair<int, int> split(int, int, int)':
0_0_37561691_8126.cpp:61:14: error: expected unqualified-id before '[' token
         auto [l, r] = split(ch[p][0], i, add);
              ^
0_0_37561691_8126.cpp:62:20: error: 'r' was not declared in this scope
         ch[p][0] = r;
                    ^
0_0_37561691_8126.cpp:64:17: error: 'l' was not declared in this scope
         return {l, p};
                 ^
0_0_37561691_8126.cpp:64:21: error: could not convert '{<expression error>, p}' from '<brace-enclosed initializer list>' to 'std::pair<int, int>'
         return {l, p};
                     ^
0_0_37561691_8126.cpp:66:14: error: expected unqualified-id before '[' token
         auto [l, r] = split(ch[p][1], i, pos + 1);
              ^
0_0_37561691_8126.cpp:67:20: error: 'l' was not declared in this scope
         ch[p][1] = l;
                    ^
0_0_37561691_8126.cpp:69:20: error: 'r' was not declared in this scope
         return {p, r};
                    ^
0_0_37561691_8126.cpp:69:21: error: could not convert '{p, <expression error>}' from '<brace-enclosed initializer list>' to 'std::pair<int, int>'
         return {p, r};
                     ^


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-25 16:40:24, Gzip enabled