Problem factories
User LCJLY
Submission Time 2022-12-22 14:50:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

factories.cpp:53:5: error: expected initializer before ‘if’
53 | if (visited[x]) return;
| ^~
factories.cpp:54:5: error: ‘visited’ does not name a type
54 | visited[x] = 1;
| ^~~~~~~
factories.cpp:55:5: error: expected unqualified-id before ‘for’
55 | for (int k = 0; k < LOGN; ++k) {
| ^~~
factories.cpp:55:21: error: ‘k’ does not name a type
55 | for (int k = 0; k < LOGN; ++k) {
| ^
factories.cpp:55:31: error: expected unqualified-id before ‘++’ token
55 | for (int k = 0; k < LOGN; ++k) {
| ^~
factories.cpp:59:5: error: expected unqualified-id before ‘for’
59 | for (auto it:adj[x]) {
| ^~~
factories.cpp:66:1: error: expected declaration before ‘}’ token
66 | }
| ^
factories.cpp: In function ‘void Init(int32_t, int32_t*, int32_t*, int32_t*)’:
factories.cpp:196:3: