QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#150483#5580. Branch ManagerGuanYunchangCompile Error//C++20455b2023-08-25 17:48:122023-08-25 17:48:14

详细

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