| Problem | employee | 
|---|---|
| User | laurenpak | 
| Submission Time | 2024-02-21 21:01:53 | 
| Score | 0 | 
| Max Time | N/A | 
| Max Memory | N/A | 
Owl Get a Life
 employee.cpp: In function ‘int height(int)’:
employee.cpp:7:13: error: ‘parent’ was not declared in this scope
    7 |     if(i == parent[i]) return heights[i] = 1;
      |             ^~~~~~
employee.cpp:9:41: error: ‘heights’ cannot be used as a function
    9 |         heights[i] = 1+heights(bosses[i]);}
      |                                         ^
employee.cpp: In function ‘int main()’:
employee.cpp:21:20: error: ‘heights’ cannot be used as a function
   21 |     cout<<heights(n);
      |                    ^