QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#399635 | #8236. Snake Move | ucup-team1849# | Compile Error | / | / | C++14 | 2.6kb | 2024-04-26 16:22:55 | 2024-04-26 16:22:56 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:9:17: warning: overflow in conversion from ‘long int’ to ‘int’ changes value from ‘4557430888798830399’ to ‘1061109567’ [-Woverflow] 9 | const int inf = 0x3f3f3f3f3f3f3f3f; | ^~~~~~~~~~~~~~~~~~ answer.code: In function ‘void solve()’: answer.code:25:12: error: missing template arguments before ‘need’ 25 | vector need(n + 1 , vector<int>(m + 1 , 0)); | ^~~~ answer.code:26:12: error: missing template arguments before ‘vis’ 26 | vector vis(n + 1 , vector<bool>(m + 1 , false)); | ^~~ answer.code:32:9: error: ‘need’ was not declared in this scope 32 | need[si][sj] = k - i + 1; | ^~~~ answer.code:42:14: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 42 | auto [x , y , w , len] = q.top(); | ^ answer.code:44:12: error: ‘vis’ was not declared in this scope 44 | if(vis[x][y]) continue; | ^~~ answer.code:45:9: error: ‘vis’ was not declared in this scope 45 | vis[x][y] = 1; | ^~~ answer.code:52:16: error: ‘need’ was not declared in this scope 52 | if(need[nx][ny] > w + 1) | ^~~~