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_38161332_1974.cpp: In function 'int bfs(int, std::vector<int>&, std::vector<bool>&, int, int)':
0_0_38161332_1974.cpp:10:8: error: expected unqualified-id before '[' token
   auto [tim, u] = q.front(); q.pop();
        ^
0_0_38161332_1974.cpp:11:7: error: 'u' was not declared in this scope
   vis[u] = true;
       ^
0_0_38161332_1974.cpp:13:11: error: 'tim' was not declared in this scope
    return tim;
           ^
0_0_38161332_1974.cpp:16:53: error: 'tim' was not declared in this scope
   if (v >= 1 && v <= n && !vis[v]) q.push(make_pair(tim+1, v));
                                                     ^
0_0_38161332_1974.cpp:18:53: error: 'tim' was not declared in this scope
   if (v >= 1 && v <= n && !vis[v]) q.push(make_pair(tim+1, v));
                                                     ^


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-12-05 04:46:14, Gzip enabled