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_37561690_32277.cpp: In function 'std::pair<int, int> split(int, int, int)':
0_0_37561690_32277.cpp:61:14: error: expected unqualified-id before '[' token
         auto [l, r] = split(ch[p][0], i, add);
              ^
0_0_37561690_32277.cpp:62:20: error: 'r' was not declared in this scope
         ch[p][0] = r;
                    ^
0_0_37561690_32277.cpp:64:17: error: 'l' was not declared in this scope
         return {l, p};
                 ^
0_0_37561690_32277.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_37561690_32277.cpp:66:14: error: expected unqualified-id before '[' token
         auto [l, r] = split(ch[p][1], i, pos + 1);
              ^
0_0_37561690_32277.cpp:67:20: error: 'l' was not declared in this scope
         ch[p][1] = l;
                    ^
0_0_37561690_32277.cpp:69:20: error: 'r' was not declared in this scope
         return {p, r};
                    ^
0_0_37561690_32277.cpp:69:21: error: could not convert '{p, <expression error>}' from '<brace-enclosed initializer list>' to 'std::pair<int, int>'
         return {p, r};
                     ^
0_0_37561690_32277.cpp: In function 'int main()':
0_0_37561690_32277.cpp:112:14: error: expected unqualified-id before '[' token
         auto [ta, tb] = split(rt, l - 1);
              ^
0_0_37561690_32277.cpp:113:14: error: expected unqualified-id before '[' token
         auto [tc, td] = split(tb, r - l);
              ^
0_0_37561690_32277.cpp:115:25: error: 'tc' was not declared in this scope
             cout << sum[tc] << "\n";
                         ^
0_0_37561690_32277.cpp:120:22: error: expected unqualified-id before '[' token
                 auto [sa, sb] = split(rt, l - k - 1);
                      ^
0_0_37561690_32277.cpp:121:22: error: expected unqualified-id before '[' token
                 auto [sc, sd] = split(sb, r - l);
                      ^
0_0_37561690_32277.cpp:122:34: error: 'ta' was not declared in this scope
                 rt = merge(merge(ta, sc), td);
                                  ^
0_0_37561690_32277.cpp:122:38: error: 'sc' was not declared in this scope
                 rt = merge(merge(ta, sc), td);
                                      ^
0_0_37561690_32277.cpp:122:43: error: 'td' was not declared in this scope
                 rt = merge(merge(ta, sc), td);
                                           ^
0_0_37561690_32277.cpp:124:22: error: expected unqualified-id before '[' token
                 auto [sa, sb] = split(rt, l - k - 1);
                      ^
0_0_37561690_32277.cpp:125:22: error: expected unqualified-id before '[' token
                 auto [sc, sd] = split(sb, k - 1);
                      ^
0_0_37561690_32277.cpp:128:21: error: 'ta' was not declared in this scope
                     ta = merge(ta, sc);
                     ^
0_0_37561690_32277.cpp:128:36: error: 'sc' was not declared in this scope
                     ta = merge(ta, sc);
                                    ^
0_0_37561690_32277.cpp:130:21: error: 'sc' was not declared in this scope
                     sc = merge(sc, sc);
                     ^
0_0_37561690_32277.cpp:132:25: error: 'ta' was not declared in this scope
                         ta = merge(ta, sc);
                         ^
0_0_37561690_32277.cpp:135:26: error: expected unqualified-id before '[' token
                     auto [x, y] = split(sc, sz % k - 1);
                          ^
0_0_37561690_32277.cpp:136:21: error: 'ta' was not declared in this scope
                     ta = merge(ta, x);
                     ^
0_0_37561690_32277.cpp:136:36: error: 'x' was not declared in this scope
                     ta = merge(ta, x);
                                    ^
0_0_37561690_32277.cpp:138:28: error: 'ta' was not declared in this scope
                 rt = merge(ta, td);
                            ^
0_0_37561690_32277.cpp:138:32: error: 'td' was not declared in this scope
                 rt = merge(ta, td);
                                ^
0_0_37561690_32277.cpp:141:18: error: expected unqualified-id before '[' token
             auto [oa, ob] = split(orig, l - 1);
                  ^
0_0_37561690_32277.cpp:142:18: error: expected unqualified-id before '[' token
             auto [oc, od] = split(ob, r - l);
                  ^
0_0_37561690_32277.cpp:143:30: error: 'ta' was not declared in this scope
             rt = merge(merge(ta, oc), td);
                              ^
0_0_37561690_32277.cpp:143:34: error: 'oc' was not declared in this scope
             rt = merge(merge(ta, oc), td);
                                  ^
0_0_37561690_32277.cpp:143:39: error: 'td' was not declared in this scope
             rt = merge(merge(ta, oc), td);
                                       ^


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:43:22, Gzip enabled