Problem diamond
User boaznumberd5555
Submission Time 2025-01-22 01:57:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

diamond.cpp: In function ‘int main()’:
diamond.cpp:3:9: error: ‘cin’ was not declared in this scope
3 | int n; cin>>n;
| ^~~
diamond.cpp:9:14: error: ‘cout’ was not declared in this scope
9 | if(j+i>n) cout<<'*';
| ^~~~
diamond.cpp:11:9: error: ‘cout’ was not declared in this scope
11 | else cout<<' ';
| ^~~~
diamond.cpp:15:26: error: ‘cout’ was not declared in this scope
15 | for(int j=i; j>1; j--) cout<<'*';
| ^~~~
diamond.cpp:17:3: error: ‘cout’ was not declared in this scope
17 | cout<<"\n";
| ^~~~
diamond.cpp:25:14: error: ‘cout’ was not declared in this scope
25 | if(j+i>n) cout<<'*';
| ^~~~
diamond.cpp:27:9: error: ‘cout’ was not declared in this scope
27 | else cout<<' ';
| ^~~~
diamond.cpp:31:26: error: ‘c