Problem diamond
User RandomCtfNoob
Submission Time 2025-07-09 17:17:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

diamond.cpp: In function ‘int main()’:
diamond.cpp:28:23: error: expected ‘}’ at end of input
28 | starr += 2*direction;
| ^
diamond.cpp:13:35: note: to match this ‘{’
13 | for(int i = 1; i <= (2*n)-1; i++){
| ^
diamond.cpp:28:23: error: expected ‘}’ at end of input
28 | starr += 2*direction;
| ^
diamond.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^