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_37795236_15278.cpp: In function 'void solve()':
0_0_37795236_15278.cpp:47:10: error: expected unqualified-id before '[' token
     auto [time, type, cost, id] = que.top();
          ^
0_0_37795236_15278.cpp:49:9: error: 'type' was not declared in this scope
     if(!type) {
         ^
0_0_37795236_15278.cpp:50:20: error: 'id' was not declared in this scope
       int idx = in[id];
                    ^
0_0_37795236_15278.cpp:55:50: error: 'cost' was not declared in this scope
       if(cnt[tmp.id] == 0) last[tmp.id] = time + cost;
                                                  ^
0_0_37795236_15278.cpp:56:28: error: 'cost' was not declared in this scope
       else last[tmp.id] += cost;
                            ^
0_0_37795236_15278.cpp:59:36: error: 'cost' was not declared in this scope
       que.emplace(last[tmp.id], 0, cost, id);
                                    ^
0_0_37795236_15278.cpp:59:42: error: 'id' was not declared in this scope
       que.emplace(last[tmp.id], 0, cost, id);
                                          ^


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-26 13:11:31, Gzip enabled