QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#756623 | #415. 最小生成树 | ucup-team4777 | Compile Error | / | / | C++20 | 983b | 2024-11-16 21:14:54 | 2024-11-16 21:14:56 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void solve()’: answer.code:22:5: error: ‘vectotr’ was not declared in this scope 22 | vectotr<int> p(n + 1); | ^~~~~~~ answer.code:5:13: error: expected primary-expression before ‘long’ 5 | #define int long long | ^~~~ answer.code:22:13: note: in expansion of macro ‘int’ 22 | vectotr<int> p(n + 1); | ^~~ answer.code:23:36: error: ‘p’ was not declared in this scope 23 | for(int i = 1 ; i <= n ; i ++) p[i] = i; | ^ answer.code: In lambda function: answer.code:25:20: error: ‘p’ was not declared in this scope 25 | while(x != p[x]) x = p[x] = p[p[x]]; | ^ answer.code: In function ‘void solve()’: answer.code:5:13: error: expected ‘,’ or ‘;’ before ‘long’ 5 | #define int long long | ^~~~ answer.code:28:5: note: in expansion of macro ‘int’ 28 | int ans = 0; | ^~~ answer.code:32:13: error: ‘p’ was not declared in this scope 32 | p[v] = u; | ^ answer.code:33:13: error: ‘ans’ was not declared in this scope; did you mean ‘abs’? 33 | ans += w; | ^~~ | abs answer.code:36:13: error: ‘w’ was not declared in this scope 36 | cout << w << endl; | ^