pipes.cpp: In function 'void dfs(int)':
pipes.cpp:11:12: error: reference to 'tm' is ambiguous
11 | a[s] = tm++;
| ^~
In file included from /usr/include/time.h:39,
from /usr/include/c++/10/ctime:42,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:49,
from pipes.cpp:1:
/usr/include/x86_64-linux-gnu/bits/types/struct_tm.h:7:8: note: candidates are: 'struct tm'
7 | struct tm
| ^~
pipes.cpp:6:17: note: 'int tm'
6 | int a[M], d[M], tm = 1;
| ^~
pipes.cpp:14:12: error: reference to 'tm' is ambiguous
14 | d[s] = tm++;
| ^~
In file included from /usr/include/time.h:39,
from /usr/include/c++/10/ctime:42,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:49,
from pipes.cpp:1:
/usr/include/x86_64-linux-gnu/bits/types/struct_tm.h:7:8: note: candidates are: 'struct tm'
7 | struct tm
| ^~
pipes.cpp:6:17: note: 'int tm'
6 | int a[M], d[M], tm = 1;
| ^~
pipes.cpp: In function 'int main()':
pipes.cpp:50:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
50 | for (int i = 1; i <= n; i++) if (!vis[i]) dfs(i); vis = 0;
| ^~~
pipes.cpp:50:55: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
50 | for (int i = 1; i <= n; i++) if (!vis[i]) dfs(i); vis = 0;
| ^~~
pipes.cpp:51:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
51 | for (int i = 1; i <= n; i++) if (!vis[i]) dfs2(i); vis = 0;
| ^~~
pipes.cpp:51:56: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
51 | for (int i = 1; i <= n; i++) if (!vis[i]) dfs2(i); vis = 0;
| ^~~
pipes.cpp:52:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
52 | for (int i = 1; i <= n; i++) if (!vis[i]) dfs3(i); vis = 0;
| ^~~
pipes.cpp:52:56: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
52 | for (int i = 1; i <= n; i++) if (!vis[i]) dfs3(i); vis = 0;
| ^~~