Problem cuberoot
User Anonymous35V
Submission Time 2023-11-09 12:00:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cuberoot.cpp: In function ‘int main()’:
cuberoot.cpp:6:16: error: conflicting declaration ‘long long int l’
6 | long long int l = 0, h = 100000;
| ^
cuberoot.cpp:5:8: note: previous declaration as ‘int l’
5 | int h, l, x;
| ^
cuberoot.cpp:6:23: error: conflicting declaration ‘long long int h’
6 | long long int l = 0, h = 100000;
| ^
cuberoot.cpp:5:5: note: previous declaration as ‘int h’
5 | int h, l, x;
| ^
cuberoot.cpp:7:15: error: expected initializer before ‘-’ token
7 | while (int h - 1 > l){
| ^
cuberoot.cpp:7:14: error: expected ‘)’ before ‘-’ token
7 | while (int h - 1 > l){
| ~ ^~
| )
cuberoot.cpp:7:22: error: expected ‘;’ before ‘)’ token
7 | while (int h - 1 > l){
| ^
| ;
cuberoot.cpp