deblo.cpp: In function 'void dfs(int, int)':
deblo.cpp:22:15: error: lvalue required as increment operand
22 | ++ans;
| ^~~
deblo.cpp: In function 'int main()':
deblo.cpp:44:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
44 | int n; scanf ("%d", &n);
| ~~~~~~^~~~~~~~~~
deblo.cpp:45:40: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
45 | for (int i = 1; i <= n; ++i) scanf ("%d", c + i);
| ~~~~~~^~~~~~~~~~~~~
deblo.cpp:47:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
47 | int u, v; scanf ("%d %d", &u, &v);
| ~~~~~~^~~~~~~~~~~~~~~~~