Problem diamond
User Skyblur7
Submission Time 2025-03-24 14:17:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

diamond.cpp: In function ‘int main()’:
diamond.cpp:23:21: error: expected ‘}’ at end of input
23 | cout << endl;
| ^
diamond.cpp:16:38: note: to match this ‘{’
16 | for (int i = n - 1; i >= 1; i--) {
| ^
diamond.cpp:23:21: error: expected ‘}’ at end of input
23 | cout << endl;
| ^
diamond.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^