QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#535143 | #9224. Express Eviction | ucup-team4685 | Compile Error | / | / | C++14 | 5.0kb | 2024-08-27 20:47:57 | 2024-08-27 20:47:58 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main()’: answer.code:65:17: error: missing template arguments before ‘S’ 65 | std::vector S(n, std::vector<int>(m)); | ^ answer.code:68:13: error: ‘S’ was not declared in this scope 68 | S[i][j] = (s[i][j] == '#'); | ^ answer.code:72:17: error: missing template arguments before ‘dp’ 72 | std::vector dp(n + 1, std::vector(m + 1, std::vector(n + 1, std::vector(m + 1, -1)))); | ^~ answer.code:74:17: error: missing template arguments before ‘cost’ 74 | std::vector cost(n + 1, std::vector(m + 1, std::array<int, 4>{})); | ^~~~ answer.code:74:68: error: expected primary-expression before ‘)’ token 74 | std::vector cost(n + 1, std::vector(m + 1, std::array<int, 4>{})); | ^ answer.code:99:29: error: ‘cost’ was not declared in this scope; did you mean ‘cosl’? 99 | cost[x][y][dir] += S[ax][ay]; | ^~~~ | cosl answer.code:99:48: error: ‘S’ was not declared in this scope 99 | cost[x][y][dir] += S[ax][ay]; | ^ answer.code:107:17: error: missing template arguments before ‘dis’ 107 | std::vector dis(n + 1, std::vector(m + 1, std::vector(n + 1, std::vector(m + 1, -1)))); | ^~~ answer.code:113:22: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 113 | auto [d, x, y] = pq.pop(); | ^ answer.code:115:21: error: ‘dis’ was not declared in this scope; did you mean ‘div’? 115 | if (dis[sx][sy][x][y] != -1) { | ^~~ | div answer.code:118:17: error: ‘dis’ was not declared in this scope; did you mean ‘div’? 118 | dis[sx][sy][x][y] = d; | ^~~ | div answer.code:126:34: error: ‘cost’ was not declared in this scope; did you mean ‘cosl’? 126 | pq.push({d + cost[x][y][dir], nx, ny}, cost[x][y][dir]); | ^~~~ | cosl answer.code:137:14: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 137 | auto [d, x, y, a, b] = pq.pop(); | ^ answer.code:139:13: error: ‘dp’ was not declared in this scope; did you mean ‘d’? 139 | if (dp[x][y][a][b] != -1) { | ^~ | d answer.code:143:9: error: ‘dp’ was not declared in this scope; did you mean ‘d’? 143 | dp[x][y][a][b] = d; | ^~ | d answer.code:155:26: error: ‘cost’ was not declared in this scope; did you mean ‘cosl’? 155 | pq.push({d + cost[x][y][dir], nx, ny, a, b}, cost[x][y][dir]); | ^~~~ | cosl answer.code:168:25: error: ‘dis’ was not declared in this scope; did you mean ‘div’? 168 | int c = dis[x][y][nx][ny]; | ^~~ | div answer.code:170:26: error: ‘S’ was not declared in this scope 170 | c -= S[ax][ay]; | ^