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

Compile Error

cuberoot.cpp:5:5: error: cannot declare ‘::main’ to be a global variable
5 | int main{
| ^~~~
cuberoot.cpp:4:13: error: expected primary-expression before ‘long’
4 | #define int long long
| ^~~~
cuberoot.cpp:6:2: note: in expansion of macro ‘int’
6 | int l = 0, h = 1.000001;
| ^~~
cuberoot.cpp:4:13: error: expected ‘}’ before ‘long’
4 | #define int long long
| ^~~~
cuberoot.cpp:6:2: note: in expansion of macro ‘int’
6 | int l = 0, h = 1.000001;
| ^~~
cuberoot.cpp:5:9: note: to match this ‘{’
5 | int main{
| ^
cuberoot.cpp:7:2: error: expected unqualified-id before ‘while’
7 | while((h-1) > 1) {
| ^~~~~