Problem cuberoot
User kashsinghal
Submission Time 2023-11-09 13:36:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cuberoot.cpp: In function ‘int32_t main()’:
cuberoot.cpp:4:13: error: expected initializer before ‘long’
4 | #define int long long
| ^~~~
cuberoot.cpp:8:2: note: in expansion of macro ‘int’
8 | int l = 0, h = 1000001;
| ^~~
cuberoot.cpp:9:9: error: ‘h’ was not declared in this scope
9 | while (h-l > 1) {
| ^
cuberoot.cpp:9:11: error: ‘l’ was not declared in this scope
9 | while (h-l > 1) {
| ^
cuberoot.cpp:12:18: error: ‘x’ was not declared in this scope
12 | if (testCbrt <=x) {
| ^
cuberoot.cpp:20:3: error: expected ‘}’ at end of input
20 | }
| ^
cuberoot.cpp:6:17: note: to match this ‘{’
6 | int32_t main () {
| ^