QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#870488 | #8623. Meta | ucup-team4478# | Compile Error | / | / | C++20 | 1.6kb | 2025-01-25 16:34:09 | 2025-01-25 16:34:17 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:1:1: error: ‘vector’ does not name a type 1 | vector<int> adj[N]; | ^~~~~~ answer.code:4:5: error: ‘vector’ does not name a type 4 | vector<int> dep,pt,hd,idx,sz,par,vis; | ^~~~~~ answer.code: In constructor ‘HLD::HLD(int)’: answer.code:8:9: error: ‘pt’ was not declared in this scope; did you mean ‘_t’? 8 | pt.assign(n,-1),hd.assign(n,-1),par.assign(n,-1); | ^~ | _t answer.code:8:25: error: ‘hd’ was not declared in this scope 8 | pt.assign(n,-1),hd.assign(n,-1),par.assign(n,-1); | ^~ answer.code:8:41: error: ‘par’ was not declared in this scope 8 | pt.assign(n,-1),hd.assign(n,-1),par.assign(n,-1); | ^~~ answer.code:9:9: error: ‘idx’ was not declared in this scope 9 | idx.assign(n,0),sz.assign(n,0),dep.assign(n,0),vis.assign(n,0); | ^~~ answer.code:9:25: error: ‘sz’ was not declared in this scope 9 | idx.assign(n,0),sz.assign(n,0),dep.assign(n,0),vis.assign(n,0); | ^~ answer.code:9:40: error: ‘dep’ was not declared in this scope 9 | idx.assign(n,0),sz.assign(n,0),dep.assign(n,0),vis.assign(n,0); | ^~~ answer.code:9:56: error: ‘vis’ was not declared in this scope 9 | idx.assign(n,0),sz.assign(n,0),dep.assign(n,0),vis.assign(n,0); | ^~~ answer.code: In member function ‘void HLD::dfs1(int, int)’: answer.code:17:9: error: ‘par’ was not declared in this scope; did you mean ‘pa’? 17 | par[v]=pa; | ^~~ | pa answer.code:18:9: error: ‘dep’ was not declared in this scope 18 | dep[v]=~pa?dep[pa]+1:0; | ^~~ answer.code:19:9: error: ‘sz’ was not declared in this scope 19 | sz[v]=vis[v]=1; | ^~ answer.code:19:15: error: ‘vis’ was not declared in this scope 19 | sz[v]=vis[v]=1; | ^~~ answer.code:20:19: error: ‘adj’ was not declared in this scope 20 | for(int u:adj[v]) if(u!=pa) { | ^~~ answer.code:22:16: error: ‘pt’ was not declared in this scope; did you mean ‘_t’? 22 | if(pt[v]==-1||sz[pt[v]]<sz[u]) | ^~ | _t answer.code: In member function ‘void HLD::dfs2(int, int, int)’: answer.code:30:9: error: ‘idx’ was not declared in this scope 30 | idx[v]=_t++,hd[v]=h; | ^~~ answer.code:30:21: error: ‘hd’ was not declared in this scope; did you mean ‘h’? 30 | idx[v]=_t++,hd[v]=h; | ^~ | h answer.code:31:14: error: ‘pt’ was not declared in this scope; did you mean ‘_t’? 31 | dfs2(pt[v],v,h); | ^~ | _t answer.code:32:19: error: ‘adj’ was not declared in this scope 32 | for(int u:adj[v]) if(u!=pa&&u!=pt[v]) { | ^~~ answer.code: In member function ‘void HLD::modify(int, int)’: answer.code:37:15: error: ‘hd’ was not declared in this scope 37 | while(hd[u]!=hd[v]) { | ^~ answer.code:38:16: error: ‘dep’ was not declared in this scope 38 | if(dep[hd[u]]<dep[hd[v]]) | ^~~ answer.code:39:17: error: ‘swap’ was not declared in this scope 39 | swap(u,v); | ^~~~ answer.code:41:15: error: ‘par’ was not declared in this scope 41 | u=par[hd[u]]; | ^~~ answer.code:43:12: error: ‘dep’ was not declared in this scope 43 | if(dep[u]<dep[v]) | ^~~ answer.code:44:13: error: ‘swap’ was not declared in this scope 44 | swap(u,v); | ^~~~ answer.code: In member function ‘int HLD::query(int, int)’: answer.code:49:15: error: ‘hd’ was not declared in this scope 49 | while(hd[u]!=hd[v]) { | ^~ answer.code:50:16: error: ‘dep’ was not declared in this scope 50 | if(dep[hd[u]]<dep[hd[v]]) | ^~~ answer.code:51:17: error: ‘swap’ was not declared in this scope 51 | swap(u,v); | ^~~~ answer.code:53:15: error: ‘par’ was not declared in this scope 53 | u=par[hd[u]]; | ^~~ answer.code:55:12: error: ‘dep’ was not declared in this scope 55 | if(dep[u]<dep[v]) | ^~~ answer.code:56:13: error: ‘swap’ was not declared in this scope 56 | swap(u,v); | ^~~~