QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#782369 | #6306. Chase Game | ucup-team2454# | Compile Error | / | / | C++20 | 2.0kb | 2024-11-25 19:54:14 | 2024-11-25 19:54:16 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code:5:1: error: ‘vector’ does not name a type 5 | vector<int>g[maxn]; | ^~~~~~ answer.code:6:1: error: ‘queue’ does not name a type 6 | queue<int>que; | ^~~~~ answer.code: In function ‘void bfs(int*, int)’: answer.code:10:5: error: ‘que’ was not declared in this scope 10 | que.push(s); | ^~~ answer.code:15:23: error: ‘g’ was not declared in this scope 15 | for(int i=0;i<g[u].size();i++){ | ^ answer.code: At global scope: answer.code:32:1: error: ‘priority_queue’ does not name a type 32 | priority_queue<Node>q; | ^~~~~~~~~~~~~~ answer.code: In function ‘void dijkstra()’: answer.code:39:5: error: ‘q’ was not declared in this scope 39 | q.push((Node){1,0}); | ^ answer.code:46:23: error: ‘g’ was not declared in this scope 46 | for(int i=0;i<g[u.pos].size();i++){ | ^ answer.code: In function ‘int main()’: answer.code:69:5: error: ‘scanf’ was not declared in this scope; did you mean ‘can’? 69 | scanf("%d%d%d%d",&n,&m,&k,&d); | ^~~~~ | can answer.code:73:9: error: ‘g’ was not declared in this scope 73 | g[u].push_back(v); | ^ answer.code:77:5: error: ‘memset’ was not declared in this scope 77 | memset(vis,0,sizeof(vis)); | ^~~~~~ answer.code:1:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? +++ |+#include <cstring> 1 | answer.code:84:17: error: ‘min’ was not declared in this scope; did you mean ‘main’? 84 | ans=min(ans,dis[i]+calc(disn[i])); | ^~~ | main answer.code:85:5: error: ‘cout’ was not declared in this scope 85 | cout<<ans; | ^~~~ answer.code:1:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? +++ |+#include <iostream> 1 |