Problem | cousin |
---|---|
User | justin271828 |
Submission Time | 2024-12-19 18:41:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cousin.cpp: In function ‘int count_cousins(int, int)’:
cousin.cpp:61:3: error: expected ‘,’ or ‘;’ before ‘if’
61 | if (depth[revroot[r]] > depth[X]) hi = r-1;
| ^~
cousin.cpp:62:3: error: ‘else’ without a previous ‘if’
62 | else if (depth[revroot[r]] < depth[X]) lo = r+1;
| ^~~~