Problem cuberoot
User Anonymous35V
Submission Time 2023-11-09 14:02:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cuberoot.cpp: In function ‘int32_t main()’:
cuberoot.cpp:6:12: error: conflicting declaration ‘long long int l’
6 | long long l = 0;
| ^
cuberoot.cpp:5:8: note: previous declaration as ‘int l’
5 | int h, l, x;
| ^
cuberoot.cpp:9:23: error: expected primary-expression before ‘int’
9 | long long middle = (int h + 1 / 2);
| ^~~
cuberoot.cpp:9:23: error: expected ‘)’ before ‘int’
9 | long long middle = (int h + 1 / 2);
| ~^~~
| )
cuberoot.cpp:20:2: error: expected ‘}’ at end of input
20 | }
| ^
cuberoot.cpp:4:15: note: to match this ‘{’
4 | int32_t main(){
| ^