QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#852946 | #9733. Heavy-light Decomposition | ucup-team3862# | Compile Error | / | / | C++20 | 2.4kb | 2025-01-11 14:56:59 | 2025-01-11 14:57:04 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code:14:3: error: ISO C++ forbids declaration of ‘scc’ with no type [-fpermissive] 14 | scc(int n) { | ^~~ answer.code: In member function ‘int atcoder::<unnamed struct>::scc(int)’: answer.code:17:3: warning: no return statement in function returning non-void [-Wreturn-type] 17 | } | ^ answer.code: In member function ‘auto atcoder::<unnamed struct>::build()’: answer.code:22:35: error: expected ‘,’ or ‘;’ before ‘.’ token 22 | vi rep(_n), color(_n), dfn(_n). low(_n); | ^ answer.code: In lambda function: answer.code:27:7: error: ‘low’ was not declared in this scope; did you mean ‘pow’? 27 | low[u] = dfn[u] = ++nn; | ^~~ | pow answer.code: At global scope: answer.code:14:3: error: ‘int atcoder::<unnamed struct>::scc(int)’ invalid; an anonymous struct may only have public non-static data members [-fpermissive] 14 | scc(int n) { | ^~~ answer.code:18:8: error: ‘void atcoder::<unnamed struct>::adj(int, int)’ invalid; an anonymous struct may only have public non-static data members [-fpermissive] 18 | void adj(int u, int v) { | ^~~ answer.code:21:8: error: ‘auto atcoder::<unnamed struct>::build()’ invalid; an anonymous struct may only have public non-static data members [-fpermissive] 21 | auto build() { | ^~~~~ answer.code:12:14: error: member ‘std::vector<std::vector<int> > atcoder::<unnamed struct>::g’ with constructor not allowed in anonymous aggregate 12 | vector<vi> g; | ^ answer.code:12:14: error: member ‘std::vector<std::vector<int> > atcoder::<unnamed struct>::g’ with destructor not allowed in anonymous aggregate answer.code:12:14: error: member ‘std::vector<std::vector<int> > atcoder::<unnamed struct>::g’ with copy assignment operator not allowed in anonymous aggregate answer.code:52:2: error: abstract declarator ‘atcoder::<unnamed struct>’ used as declaration 52 | }; | ^ answer.code:115:2: error: expected ‘}’ at end of input 115 | } | ^ answer.code:10:19: note: to match this ‘{’ 10 | namespace atcoder { | ^ answer.code: In function ‘void atcoder::once()’: answer.code:55:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 55 | scanf("%d %d", &n, &m); | ~~~~~^~~~~~~~~~~~~~~~~ answer.code:61:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 61 | scanf("%d %d", &l, &r); | ~~~~~^~~~~~~~~~~~~~~~~ answer.code: In function ‘int atcoder::main()’: answer.code:112:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 112 | scanf("%d",&tes); | ~~~~~^~~~~~~~~~~