Problem squarerect
User Xiaoyang
Submission Time 2023-12-26 14:07:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

squarerect.cpp:39:2: error: ‘i’ does not name a type; did you mean ‘fi’?
39 | i=1;
| ^
| fi
squarerect.cpp:40:2: error: expected unqualified-id before ‘while’
40 | while(i<n){
| ^~~~~
squarerect.cpp:44:2: error: ‘i’ does not name a type; did you mean ‘fi’?
44 | i=1;
| ^
| fi
squarerect.cpp:45:2: error: expected unqualified-id before ‘while’
45 | while(i<n)
| ^~~~~
squarerect.cpp:47:6: error: ‘i’ does not name a type; did you mean ‘fi’?
47 | i*=2;
| ^
| fi
squarerect.cpp:48:2: error: expected declaration before ‘}’ token
48 | }
| ^
squarerect.cpp:49:2: error: ‘i’ does not name a type; did you mean ‘fi’?
49 | i=1;
| ^
| fi
squarerect.cpp:50:2: error: expected unqualified-id before ‘while’
50 | while(i<n)
| ^~~~~
squarerect.cpp:52:6: error: ‘i’ does not name a type; did y