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_37710660_5651.cpp: In function 'void solve()':
0_0_37710660_5651.cpp:340:14: error: expected unqualified-id before '[' token
         auto [op, x, y] = qs[i];
              ^
0_0_37710660_5651.cpp:341:13: error: 'op' was not declared in this scope
         if (op == 1) continue;
             ^
0_0_37710660_5651.cpp:342:13: error: 'x' was not declared in this scope
         d[c[x]].push_back(i);
             ^
0_0_37710660_5651.cpp:362:18: error: expected unqualified-id before '[' token
             auto [op, x, y] = qs[qid];
                  ^
0_0_37710660_5651.cpp:363:17: error: 'x' was not declared in this scope
             val[x] += y;
                 ^
0_0_37710660_5651.cpp:363:23: error: 'y' was not declared in this scope
             val[x] += y;
                       ^
0_0_37710660_5651.cpp:369:14: error: expected unqualified-id before '[' token
         auto [op, x, y] = qs[qid];
              ^
0_0_37710660_5651.cpp:371:13: error: 'op' was not declared in this scope
         if (op == 0) {
             ^
0_0_37710660_5651.cpp:372:23: error: expected unqualified-id before '[' token
             for (auto [u, v, t] : oqs[qid]) {
                       ^
0_0_37710660_5651.cpp:372:23: error: expected ';' before '[' token
0_0_37710660_5651.cpp:372:24: error: 'u' was not declared in this scope
             for (auto [u, v, t] : oqs[qid]) {
                        ^
0_0_37710660_5651.cpp:372:27: error: 'v' was not declared in this scope
             for (auto [u, v, t] : oqs[qid]) {
                           ^
0_0_37710660_5651.cpp:372:30: error: 't' was not declared in this scope
             for (auto [u, v, t] : oqs[qid]) {
                              ^
0_0_37710660_5651.cpp: In lambda function:
0_0_37710660_5651.cpp:372:33: error: expected '{' before ':' token
             for (auto [u, v, t] : oqs[qid]) {
                                 ^
0_0_37710660_5651.cpp: In function 'void solve()':
0_0_37710660_5651.cpp:372:33: error: expected ';' before ':' token
0_0_37710660_5651.cpp:372:33: error: expected primary-expression before ':' token
0_0_37710660_5651.cpp:372:33: error: expected ')' before ':' token
0_0_37710660_5651.cpp:372:33: error: expected primary-expression before ':' token
0_0_37710660_5651.cpp:377:27: error: 'x' was not declared in this scope
                 if (fa[k][x] != 0 && rst.w[fa[k][x]] <= y) x = fa[k][x];
                           ^
0_0_37710660_5651.cpp:377:57: error: 'y' was not declared in this scope
                 if (fa[k][x] != 0 && rst.w[fa[k][x]] <= y) x = fa[k][x];
                                                         ^
0_0_37710660_5651.cpp:380:32: error: 'x' was not declared in this scope
             ll ans = fw.qr(out[x]) - fw.qr(in[x] - 1);
                                ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:71:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_37710660_5651.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _Iterator2 = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _Compare = build(std::vector<int>&)::<lambda(auto:1&, auto:2&)>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1846:27:   required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<build(std::vector<int>&)::<lambda(auto:1&, auto:2&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1884:70:   required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<build(std::vector<int>&)::<lambda(auto:1&, auto:2&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1970:55:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<build(std::vector<int>&)::<lambda(auto:1&, auto:2&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4716:78:   required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _Compare = build(std::vector<int>&)::<lambda(auto:1&, auto:2&)>]'
0_0_37710660_5651.cpp:259:6:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:121:46: error: invalid use of 'auto'
         { return bool(_M_comp(*__it1, *__it2)); }
                                              ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _Iterator2 = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _Compare = build(std::vector<int>&)::<lambda(auto:3&, auto:4&)>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1846:27:   required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<build(std::vector<int>&)::<lambda(auto:3&, auto:4&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1884:70:   required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<build(std::vector<int>&)::<lambda(auto:3&, auto:4&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1970:55:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<build(std::vector<int>&)::<lambda(auto:3&, auto:4&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4716:78:   required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _Compare = build(std::vector<int>&)::<lambda(auto:3&, auto:4&)>]'
0_0_37710660_5651.cpp:268:6:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:121:46: error: invalid use of 'auto'


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-11 08:16:08, Gzip enabled