Problem | cuberoot |
---|---|
User | Kanish |
Submission Time | 2023-11-09 13:48:39 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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:8:20: error: expected initializer before ‘middle’
8 | long long testCbrt middle * middle * middle;
| ^~~~~~
cuberoot.cpp:9:5: error: ‘testCbrt’ was not declared in this scope
9 | if (testCbrt <= x) {
| ^~~~~~~~
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;
| ^~~~~~