Problem diamond
User Haocheng
Submission Time 2024-11-07 14:40:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

diamond.cpp: In function ‘int main()’:
diamond.cpp:17:17: error: ‘i’ was not declared in this scope
17 | for(int j=0; j<i;j++) cout<< ' ';
| ^
diamond.cpp:18:21: error: ‘i’ was not declared in this scope
18 | for(int j=0; j<(-2*i)+(2*n-1); j++) cout<<'*';
| ^