QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#209508 | #6638. Treelection | ZhaoZiLong | Compile Error | / | / | C++14 | 994b | 2023-10-10 15:26:53 | 2023-10-10 15:26:53 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘void solve()’: answer.code:39:12: error: too few arguments to function ‘void dfs(int, int)’ 39 | dfs(1); | ~~~^~~ answer.code:8:6: note: declared here 8 | void dfs(int x,int father){ | ^~~ answer.code:47:12: error: ‘f’ was not declared in this scope 47 | if(f[i]==1) minn[i]=1; | ^ answer.code:47:14: error: ‘i’ was not declared in this scope 47 | if(f[i]==1) minn[i]=1; | ^ answer.code:52:46: error: ‘mn’ was not declared in this scope; did you mean ‘yn’? 52 | if(siz[i]>res||(siz[i]==res&&mn[i])) printf("1"); | ^~ | yn answer.code:34:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 34 | scanf("%d",&n); | ~~~~~^~~~~~~~~ answer.code:36:28: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 36 | int x;scanf("%d",&x); | ~~~~~^~~~~~~~~ answer.code: In function ‘int main()’: answer.code:59:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 59 | scanf("%d",&T); | ~~~~~^~~~~~~~~