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_37818477_10772.cpp:23:17: error: 'split' function uses 'auto' type specifier without trailing return type
 auto split(int x){
                 ^
0_0_37818477_10772.cpp:23:17: note: deduced return type only available with -std=c++1y or -std=gnu++1y
0_0_37818477_10772.cpp: In function 'auto split(int)':
0_0_37818477_10772.cpp:26:10: error: expected unqualified-id before '[' token
     auto [l, r, val] = *it;
          ^
0_0_37818477_10772.cpp:27:36: error: 'l' was not declared in this scope
     odt.erase(it), odt.insert(Node(l, x - 1, val));
                                    ^
0_0_37818477_10772.cpp:27:46: error: 'val' was not declared in this scope
     odt.erase(it), odt.insert(Node(l, x - 1, val));
                                              ^
0_0_37818477_10772.cpp:28:31: error: 'r' was not declared in this scope
     return odt.insert(Node(x, r, val)).first;
                               ^
0_0_37818477_10772.cpp: In function 'void solve()':
0_0_37818477_10772.cpp:102:18: error: expected unqualified-id before '[' token
             auto [l, r, val] = *it;
                  ^
0_0_37818477_10772.cpp:103:13: error: 'val' was not declared in this scope
             val = c;
             ^
0_0_37818477_10772.cpp:108:13: error: 'l' was not declared in this scope
             l = itl->l, r = itr->l - 1;
             ^
0_0_37818477_10772.cpp:108:25: error: 'r' was not declared in this scope
             l = itl->l, r = itr->l - 1;
                         ^


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.000000(s) query 1, Server time : 2025-01-11 01:13:13, Gzip enabled