pipes.cpp: In function 'void solve()':
pipes.cpp:66:42: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
66 | if(par1.par[i] == -1)dfs(i , 0 , -1);
| ^~
pipes.cpp:29:34: note: initializing argument 3 of 'void dfs(int&, int, int&)'
29 | void dfs(int &c, int depth, int &par){
| ~~~~~^~~
pipes.cpp: In function 'int main()':
pipes.cpp:76:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
76 | freopen(_ "inp", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
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(_ "out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~