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_37561673_25642.cpp: In function 'std::pair<int, int> split(int, int, int)':
0_0_37561673_25642.cpp:83:14: error: expected unqualified-id before '[' token
         auto [l, r] = split(tr[p].ch[0], i, add);
              ^
0_0_37561673_25642.cpp:84:23: error: 'r' was not declared in this scope
         tr[p].ch[0] = r;
                       ^
0_0_37561673_25642.cpp:86:17: error: 'l' was not declared in this scope
         return {l, p};
                 ^
0_0_37561673_25642.cpp:86:21: error: could not convert '{<expression error>, p}' from '<brace-enclosed initializer list>' to 'std::pair<int, int>'
         return {l, p};
                     ^
0_0_37561673_25642.cpp:88:14: error: expected unqualified-id before '[' token
         auto [l, r] = split(tr[p].ch[1], i, pos + 1);
              ^
0_0_37561673_25642.cpp:89:23: error: 'l' was not declared in this scope
         tr[p].ch[1] = l;
                       ^
0_0_37561673_25642.cpp:91:20: error: 'r' was not declared in this scope
         return {p, r};
                    ^
0_0_37561673_25642.cpp:91:21: error: could not convert '{p, <expression error>}' from '<brace-enclosed initializer list>' to 'std::pair<int, int>'
         return {p, r};
                     ^
0_0_37561673_25642.cpp: In function 'int main()':
0_0_37561673_25642.cpp:134:14: error: expected unqualified-id before '[' token
         auto [ta, tb] = split(rt, l - 1);
              ^
0_0_37561673_25642.cpp:135:14: error: expected unqualified-id before '[' token
         auto [tc, td] = split(tb, r - l);
              ^
0_0_37561673_25642.cpp:137:24: error: 'tc' was not declared in this scope
             cout << tr[tc].sum << "\n";
                        ^
0_0_37561673_25642.cpp:142:22: error: expected unqualified-id before '[' token
                 auto [sa, sb] = split(rt, l - k - 1);
                      ^
0_0_37561673_25642.cpp:143:22: error: expected unqualified-id before '[' token
                 auto [sc, sd] = split(sb, r - l);
                      ^
0_0_37561673_25642.cpp:144:34: error: 'ta' was not declared in this scope
                 rt = merge(merge(ta, sc), td);
                                  ^
0_0_37561673_25642.cpp:144:38: error: 'sc' was not declared in this scope
                 rt = merge(merge(ta, sc), td);
                                      ^
0_0_37561673_25642.cpp:144:43: error: 'td' was not declared in this scope
                 rt = merge(merge(ta, sc), td);
                                           ^
0_0_37561673_25642.cpp:146:22: error: expected unqualified-id before '[' token
                 auto [sa, sb] = split(rt, l - k - 1);
                      ^
0_0_37561673_25642.cpp:147:22: error: expected unqualified-id before '[' token
                 auto [sc, sd] = split(sb, k - 1);
                      ^
0_0_37561673_25642.cpp:149:37: error: 'sc' was not declared in this scope
                 vector<int> doubles{sc};
                                     ^
0_0_37561673_25642.cpp:149:39: error: no matching function for call to 'std::vector<int>::vector(<brace-enclosed initializer list>)'
                 vector<int> doubles{sc};
                                       ^
0_0_37561673_25642.cpp:149:39: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_37561673_25642.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:401:9: note: template<class _InputIterator, class> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&)
         vector(_InputIterator __first, _InputIterator __last,
         ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:401:9: note:   template argument deduction/substitution failed:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:373:7: note: std::vector<_Tp, _Alloc>::vector(std::initializer_list<_Tp>, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]
       vector(initializer_list<value_type> __l,
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:373:7: note:   no known conversion for argument 1 from '<type error>' to 'std::initializer_list<int>'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:348:7: note: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]
       vector(vector&& __rv, const allocator_type& __m)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:348:7: note:   candidate expects 2 arguments, 1 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:339:7: note: std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]
       vector(const vector& __x, const allocator_type& __a)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:339:7: note:   candidate expects 2 arguments, 1 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:335:7: note: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]
       vector(vector&& __x) noexcept
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:335:7: note:   no known conversion for argument 1 from '<type error>' to 'std::vector<int>&&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:318:7: note: std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
       vector(const vector& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:318:7: note:   no known conversion for argument 1 from '<type error>' to 'const std::vector<int>&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:289:7: note: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long long unsigned int; std::vector<_Tp, _Alloc>::value_type = int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]
       vector(size_type __n, const value_type& __value,
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:289:7: note:   candidate expects 3 arguments, 1 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:277:7: note: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long long unsigned int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]
       vector(size_type __n, const allocator_type& __a = allocator_type())
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:277:7: note:   no known conversion for argument 1 from '<type error>' to 'std::vector<int>::size_type {aka long long unsigned int}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:264:7: note: std::vector<_Tp, _Alloc>::vector(const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]
       vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:264:7: note:   no known conversion for argument 1 from '<type error>' to 'const allocator_type& {aka const std::allocator<int>&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:253:7: note: std::vector<_Tp, _Alloc>::vector() [with _Tp = int; _Alloc = std::allocator<int>]
       vector()
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:253:7: note:   candidate expects 0 arguments, 1 provided
0_0_37561673_25642.cpp:154:25: error: 'ta' was not declared in this scope
                         ta = merge(ta, doubles[j]);
                         ^
0_0_37561673_25642.cpp:156:26: error: expected unqualified-id before '[' token
                     auto [x, y] = split(sc, sz % k - 1);
                          ^
0_0_37561673_25642.cpp:157:21: error: 'ta' was not declared in this scope
                     ta = merge(ta, x);
                     ^
0_0_37561673_25642.cpp:157:36: error: 'x' was not declared in this scope
                     ta = merge(ta, x);
                                    ^
0_0_37561673_25642.cpp:159:28: error: 'ta' was not declared in this scope
                 rt = merge(ta, td);
                            ^
0_0_37561673_25642.cpp:159:32: error: 'td' was not declared in this scope
                 rt = merge(ta, td);
                                ^
0_0_37561673_25642.cpp:162:18: error: expected unqualified-id before '[' token
             auto [oa, ob] = split(orig, l - 1);
                  ^
0_0_37561673_25642.cpp:163:18: error: expected unqualified-id before '[' token


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:23:58, Gzip enabled