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_37665120_20339.cpp: In function 'int main()':
0_0_37665120_20339.cpp:137:14: error: expected unqualified-id before '[' token
   for (auto &[l, r, h]: qs) {
              ^
0_0_37665120_20339.cpp:137:14: error: expected ';' before '[' token
0_0_37665120_20339.cpp:137:15: error: 'l' was not declared in this scope
   for (auto &[l, r, h]: qs) {
               ^
0_0_37665120_20339.cpp:137:18: error: 'r' was not declared in this scope
   for (auto &[l, r, h]: qs) {
                  ^
0_0_37665120_20339.cpp:137:21: error: 'h' was not declared in this scope
   for (auto &[l, r, h]: qs) {
                     ^
0_0_37665120_20339.cpp: In lambda function:
0_0_37665120_20339.cpp:137:23: error: expected '{' before ':' token
   for (auto &[l, r, h]: qs) {
                       ^
0_0_37665120_20339.cpp: In function 'int main()':
0_0_37665120_20339.cpp:137:23: error: expected ';' before ':' token
0_0_37665120_20339.cpp:137:23: error: expected primary-expression before ':' token
0_0_37665120_20339.cpp:137:23: error: expected ')' before ':' token
0_0_37665120_20339.cpp:137:23: error: expected primary-expression before ':' token
0_0_37665120_20339.cpp:150:13: error: expected unqualified-id before '[' token
   for (auto [l, r, h]: qs) {
             ^
0_0_37665120_20339.cpp:150:13: error: expected ';' before '[' token
0_0_37665120_20339.cpp:150:14: error: 'l' was not declared in this scope
   for (auto [l, r, h]: qs) {
              ^
0_0_37665120_20339.cpp:150:17: error: 'r' was not declared in this scope
   for (auto [l, r, h]: qs) {
                 ^
0_0_37665120_20339.cpp:150:20: error: 'h' was not declared in this scope
   for (auto [l, r, h]: qs) {
                    ^
0_0_37665120_20339.cpp: In lambda function:
0_0_37665120_20339.cpp:150:22: error: expected '{' before ':' token
   for (auto [l, r, h]: qs) {
                      ^
0_0_37665120_20339.cpp: In function 'int main()':
0_0_37665120_20339.cpp:150:22: error: expected ';' before ':' token
0_0_37665120_20339.cpp:150:22: error: expected primary-expression before ':' token
0_0_37665120_20339.cpp:150:22: error: expected ')' before ':' token
0_0_37665120_20339.cpp:150:22: error: expected primary-expression before ':' token
0_0_37665120_20339.cpp: In instantiation of 'LazySegTree<Info, Tag>::LazySegTree(const std::vector<_RealType>&) [with Info = Info; Tag = int]':
0_0_37665120_20339.cpp:149:34:   required from here
0_0_37665120_20339.cpp:94:27: error: invalid use of 'auto'
   build(build, 1, 0, n - 1);
                           ^
0_0_37665120_20339.cpp: In instantiation of 'LazySegTree<Info, Tag>::LazySegTree(const std::vector<_RealType>&)::<lambda(auto:1, int, int, int)> [with auto:1 = LazySegTree<Info, Tag>::LazySegTree(const std::vector<_RealType>&) [with Info = Info; Tag = int]::<lambda(auto:1, int, int, int)>; Info = Info; Tag = int]':
0_0_37665120_20339.cpp:94:27:   required from 'LazySegTree<Info, Tag>::LazySegTree(const std::vector<_RealType>&) [with Info = Info; Tag = int]'
0_0_37665120_20339.cpp:149:34:   required from here
0_0_37665120_20339.cpp:92:10: error: 'pull' was not declared in this scope
    pull(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-29 19:02:02, Gzip enabled