Problem collaboration
User leyi
Submission Time 2025-01-02 23:09:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collaboration.cpp:3:12: error: expected initializer before ‘long’
3 | #define ll long long
| ^~~~
collaboration.cpp:11:1: note: in expansion of macro ‘ll’
11 | ll sz[maxn];
| ^~
collaboration.cpp: In function ‘void dfs(int, int)’:
collaboration.cpp:16:2: error: ‘sz’ was not declared in this scope; did you mean ‘s’?
16 | sz[x] = 1;
| ^~
| s
collaboration.cpp:19:3: error: ‘dep’ was not declared in this scope
19 | dep[i] = dep[x]+1;
| ^~~
collaboration.cpp:20:25: error: no matching function for call to ‘std::set<std::pair<int, int> >::insert(<brace-enclosed initializer list>)’
20 | s[i].insert({dep[i],1});
| ^
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from collaboration.cpp:1:
/usr/include/c++/9/bits/stl_set.h:509:7: no