Problem givingtree
User caslyn
Submission Time 2026-06-23 11:35:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

givingtree.cpp:10:32: error: empty character constant
10 | for(int j=0;j<w-2;j++) cout<<'';
| ^~
givingtree.cpp:19:34: error: empty character constant
19 | for(int j=0;j<spaces;j++)cout<<'';
| ^~
givingtree.cpp: In function ‘void printRect(int, int, int, bool)’:
givingtree.cpp:8:3: error: ‘else’ without a previous ‘if’
8 | }else{
| ^~~~
givingtree.cpp: At global scope:
givingtree.cpp:15:1: error: expected declaration before ‘}’ token
15 | }
| ^