QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#305982 | #5403. 树数术 | alch07# | Compile Error | / | / | C++20 | 1.1kb | 2024-01-16 07:47:28 | 2024-07-04 03:19:00 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:6:1: error: ‘vector’ does not name a type 6 | vector <int> v [750000]; | ^~~~~~ answer.code: In function ‘void dfs(int, int, int)’: answer.code:14:24: error: ‘v’ was not declared in this scope 14 | for(int i = 0; i < v[x].size(); i++){ | ^ answer.code: In function ‘int main()’: answer.code:50:9: error: ‘v’ was not declared in this scope 50 | v[a].push_back(b); | ^ answer.code:53:8: error: too few arguments to function ‘void dfs(int, int, int)’ 53 | dfs(1, 0); | ~~~^~~~~~ answer.code:11:6: note: declared here 11 | void dfs(int x, int p, int d){ | ^~~