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

Compile Error

cuberoot.cpp: In function ‘int32_t main()’:
cuberoot.cpp:6:16: error: conflicting declaration ‘long long int l’
6 | long long int l = 0;
| ^
cuberoot.cpp:5:8: note: previous declaration as ‘int l’
5 | int h, l, x;
| ^
cuberoot.cpp:8:15: error: expected initializer before ‘-’ token
8 | while (int h - 1 > l){
| ^
cuberoot.cpp:8:14: error: expected ‘)’ before ‘-’ token
8 | while (int h - 1 > l){
| ~ ^~
| )
cuberoot.cpp:8:22: error: expected ‘;’ before ‘)’ token
8 | while (int h - 1 > l){
| ^
| ;
cuberoot.cpp:17:2: error: expected ‘}’ at end of input
17 | }
| ^
cuberoot.cpp:4:15: note: to match this ‘{’
4 | int32_t main(){
| ^