pipes.cpp: In function 'void solve()':
pipes.cpp:61:33: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
61 | if(!par2.par[i])dfs(i , 0);
| ^
pipes.cpp:28:24: note: initializing argument 2 of 'void dfs(int&, int&)'
28 | void dfs(int &u , int &p){
| ~~~~~^
pipes.cpp: In function 'int main()':
pipes.cpp:71:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
71 | freopen(_ "inp", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
pipes.cpp:72:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
72 | freopen(_ "out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~