Problem omnomnom
User AlphanumericUsername
Submission Time 2023-01-11 16:34:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

omnomnom.cpp: In function ‘long long int dfs(long long int, bool)’:
omnomnom.cpp:11:18: error: invalid types ‘long long int[long long int]’ for array subscript
11 | if(!node[it]) ret += max(dfs(it, 0), dfs(it, 1));
| ^
omnomnom.cpp:15:18: error: invalid types ‘long long int[long long int]’ for array subscript
15 | if(!node[it]) ret += dfs(it, 0);
| ^
omnomnom.cpp: In function ‘int32_t main()’:
omnomnom.cpp:34:29: error: too many arguments to function ‘long long int dfs(long long int, bool)’
34 | ans = max(ans, dfs(1, 0,-1));
| ^
omnomnom.cpp:6:5: note: declared here
6 | int dfs(int node, bool t) {
| ^~~
omnomnom.cpp:36:29: error: too many arguments to function ‘long long int dfs(long long int, bool)’
36 | ans = max(ans, dfs(1, 1,-1));
| ^
omnomnom.cpp:6:5: note: declared here