Problem givingtree
User Jaffia
Submission Time 2026-06-23 11:20:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

givingtree.cpp: In function ‘void printRow(int, int, bool)’:
givingtree.cpp:15:12: error: a function-definition is not allowed here before ‘{’ token
15 | int main() {
| ^
givingtree.cpp:34:1: error: expected ‘}’ at end of input
34 | }
| ^
givingtree.cpp:4:68: note: to match this ‘{’
4 | void printRow(int totalWidth, int currentWidth, bool isHollowBody) {
| ^