Problem diamond
User xd490
Submission Time 2025-11-27 20:08:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

diamond.cpp: In function ‘int main()’:
diamond.cpp:13:38: error: ‘cnt2’ was not declared in this scope; did you mean ‘cnt’?
13 | for (int c = 0; c < spaces - cnt2; c++) {
| ^~~~
| cnt
diamond.cpp:24:38: error: ‘cnt2’ was not declared in this scope; did you mean ‘cnt’?
24 | for (int c = 0; c < spaces - cnt2; c++) {
| ^~~~
| cnt