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);
^
|