Problem cuberoot
User Kanish
Submission Time 2023-11-09 13:52:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cuberoot.cpp: In function ‘int32_t main()’:
cuberoot.cpp:5:11: error: expected unqualified-id before numeric constant
5 | long long 1 = 0, h = 1000001;
| ^
cuberoot.cpp:6:8: error: ‘h’ was not declared in this scope
6 | while (h - 1 > 1) {
| ^
cuberoot.cpp:9:17: error: ‘x’ was not declared in this scope
9 | if (testCbrt <= x) {
| ^
cuberoot.cpp:10:5: error: lvalue required as left operand of assignment
10 | 1 = middle;
| ^~~~~~