Problem givingtree
User yuzhe
Submission Time 2026-06-23 11:19:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

givingtree.cpp: In function ‘int main()’:
givingtree.cpp:7:7: error: ‘i’ was not declared in this scope
7 | for (i = 1; i <= a; i++) {
| ^
givingtree.cpp:9:14: error: ‘j’ was not declared in this scope
9 | for (j = 1; j <= a; j++) {
| ^
givingtree.cpp: At global scope:
givingtree.cpp:20:1: error: expected declaration before ‘}’ token
20 | }
| ^