Problem diamond
User itchydeez
Submission Time 2023-11-10 13:33:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

diamond.cpp: In function ‘int main()’:
diamond.cpp:7:10: error: expected ‘;’ before ‘for’
7 | b=2*i+1
| ^
| ;
8 | for (int g=0;g<n-i-1;g++){
| ~~~
diamond.cpp:8:16: error: ‘g’ was not declared in this scope
8 | for (int g=0;g<n-i-1;g++){
| ^
diamond.cpp:13:25: error: expected ‘;’ before ‘)’ token
13 | for (int deez=0;deez<b){
| ^
| ;
diamond.cpp:14:13: error: expected ‘;’ before ‘}’ token
14 | cout<<"*"
| ^
| ;
15 | }
| ~
diamond.cpp:16:13: error: expected ‘;’ before ‘}’ token
16 | cout<<"\n"
| ^
| ;
17 | }
| ~