QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#322731 | #5015. 树 | locsey | Compile Error | / | / | C++20 | 1.5kb | 2024-02-07 16:23:17 | 2024-02-07 16:23:17 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
implementer.cpp: In function ‘void regduj260135279::init()’: implementer.cpp:32:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 32 | scanf("%d",&n); | ~~~~~^~~~~~~~~ implementer.cpp:45:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 45 | scanf("%d%d",&u,&v); | ~~~~~^~~~~~~~~~~~~~ answer.code: In function ‘void solve(std::vector<int>, std::vector<int>)’: answer.code:28:40: error: ‘ask’ was not declared in this scope 28 | for(int &x : b) Y.emplace_back(ask(x, A), x); | ^~~ answer.code: In function ‘void solver(int, int, int)’: answer.code:45:46: error: ‘ask’ was not declared in this scope 45 | for(int i = 2; i <= n; ++i) dep[i] = ask(i, {1}), G[dep[i]].push_back(i); | ^~~ answer.code:47:37: error: ‘answer’ was not declared in this scope 47 | for(int i = 2; i <= n; ++i) answer(prt[i], i); | ^~~~~~