Problem | wiring |
---|---|
User | WH8 |
Submission Time | 2024-11-20 11:30:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
wiring.cpp: In function ‘void dfs2(long long int)’:
wiring.cpp:54:11: error: expected ‘;’ before ‘if’
54 | gen.pb(x)
| ^
| ;
55 | if (a[x] != gen.front()) dfs(a[x]);
| ~~
wiring.cpp: In function ‘void solve(std::vector<long long int>)’:
wiring.cpp:15:11: error: ‘second’ was not declared in this scope
15 | #define s second
| ^~~~~~
wiring.cpp:59:6: note: in expansion of macro ‘s’
59 | if (s.size() == 1) return;
| ^
wiring.cpp: In function ‘int32_t main()’:
wiring.cpp:15:11: error: could not convert ‘second’ from ‘std::set<long long int>’ to ‘std::vector<long long int>’
15 | #define s second
| ^~~~~~
| |
| std::set<long long int>
wiring.cpp:90:9: note: in expansion of macro ‘s’
90 | solve(s);
| ^