QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#150483 | #5580. Branch Manager | GuanYunchang | Compile Error | / | / | C++20 | 455b | 2023-08-25 17:48:12 | 2023-08-25 17:48:14 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code:2:1: error: ‘vector’ does not name a type 2 | vector<int> g[N]; | ^~~~~~ answer.code:3:1: error: ‘queue’ does not name a type 3 | queue<int> q; | ^~~~~ answer.code: In function ‘void dfs(int)’: answer.code:5:12: error: ‘q’ was not declared in this scope 5 | if(q.size()&&q.front()==u) { | ^ answer.code:9:20: error: ‘g’ was not declared in this scope 9 | for(auto x:g[u]) { | ^ answer.code:11:20: error: ‘q’ was not declared in this scope 11 | if(q.size()&&q.front()==u) { | ^ answer.code: In function ‘void solve()’: answer.code:19:9: error: ‘cin’ was not declared in this scope 19 | cin>>n>>m; | ^~~ answer.code:23:17: error: ‘g’ was not declared in this scope 23 | g[a].push_back(b); | ^ answer.code:25:38: error: ‘g’ was not declared in this scope 25 | for(int i=1; i<=n; i++) sort(g[i].begin(),g[i].end()); | ^ answer.code:25:33: error: ‘sort’ was not declared in this scope; did you mean ‘short’? 25 | for(int i=1; i<=n; i++) sort(g[i].begin(),g[i].end()); | ^~~~ | short answer.code:29:17: error: ‘q’ was not declared in this scope 29 | q.push(x); | ^ answer.code:32:9: error: ‘cout’ was not declared in this scope 32 | cout<<ans; | ^~~~