pipes.cpp:27:1: error: expected initializer before 'int'
27 | int head[maxN], edgeCnt = 0;
| ^~~
pipes.cpp: In function 'void add_edge(int, int, int)':
pipes.cpp:32:5: error: 'edges' was not declared in this scope
32 | edges[edgeCnt] = {v, head[u], id};
| ^~~~~
pipes.cpp:32:11: error: 'edgeCnt' was not declared in this scope
32 | edges[edgeCnt] = {v, head[u], id};
| ^~~~~~~
pipes.cpp:32:26: error: 'head' was not declared in this scope; did you mean 'read'?
32 | edges[edgeCnt] = {v, head[u], id};
| ^~~~
| read
pipes.cpp: In function 'void dfs(int, int, int)':
pipes.cpp:38:18: error: 'head' was not declared in this scope; did you mean 'read'?
38 | for (int i = head[u]; i != -1; i = edges[i].nxt) {
| ^~~~
| read
pipes.cpp:38:40: error: 'edges' was not declared in this scope
38 | for (int i = head[u]; i != -1; i = edges[i].nxt) {
| ^~~~~
pipes.cpp: In function 'void solve()':
pipes.cpp:55:12: error: 'head' was not declared in this scope; did you mean 'read'?
55 | memset(head, -1, sizeof head);
| ^~~~
| read
pipes.cpp: In function 'int main()':
pipes.cpp:77:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
77 | freopen(task".inp", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
pipes.cpp:78:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
78 | freopen(task".out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~