Problem | cuberoot |
---|---|
User | Anonymous35V |
Submission Time | 2023-11-09 14:00:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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:15:3: error: expected ‘}’ before ‘else’
15 | else { h = middle;
| ^~~~
cuberoot.cpp:12:21: note: to match this ‘{’
12 | if (testCbrt <= x){
| ^
cuberoot.cpp:21:2: error: expected ‘}’ at end of input
21 | }
| ^
cuberoot.cpp:4:15: note: to match this ‘{’
4 | int32_t main(){
|