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_38348818_20817.cpp: In function 'int bfs()':
0_0_38348818_20817.cpp:36:14: error: expected unqualified-id before '[' token
         auto [r, c, sc, vis] = q.front();
              ^
0_0_38348818_20817.cpp:38:13: error: 'r' was not declared in this scope
         if (r == m && c == n)
             ^
0_0_38348818_20817.cpp:38:23: error: 'c' was not declared in this scope
         if (r == m && c == n)
                       ^
0_0_38348818_20817.cpp:40:28: error: 'sc' was not declared in this scope
             ans = max(ans, sc);
                            ^
0_0_38348818_20817.cpp:45:22: error: 'r' was not declared in this scope
             int nr = r + nxt[i][0];
                      ^
0_0_38348818_20817.cpp:46:22: error: 'c' was not declared in this scope
             int nc = c + nxt[i][1];
                      ^
0_0_38348818_20817.cpp:49:17: error: 'vis' was not declared in this scope
             if (vis[cd]) continue;
                 ^
0_0_38348818_20817.cpp:50:13: error: 'vis' was not declared in this scope
             vis.set(cd);
             ^
0_0_38348818_20817.cpp:51:31: error: 'sc' was not declared in this scope
             q.emplace(nr, nc, sc + mp[nr][nc], vis);
                               ^


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-16 21:17:06, Gzip enabled