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

Compile Error

squarerect.cpp:40:2: error: expected unqualified-id before ‘while’
40 | while(i<n){
| ^~~~~
squarerect.cpp:44:5: error: redefinition of ‘ll i’
44 | ll i=1;
| ^
squarerect.cpp:39:5: note: ‘ll i’ previously defined here
39 | ll i=1;
| ^
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
47 | i*=2;
| ^
squarerect.cpp:48:2: error: expected declaration before ‘}’ token
48 | }
| ^
squarerect.cpp:49:5: error: redefinition of ‘ll i’
49 | ll i=1;
| ^
squarerect.cpp:39:5: note: ‘ll i’ previously defined here
39 | ll i=1;
| ^
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
52 | i*=2;
|