Problem cuberoot
User Anonymous35V
Submission Time 2023-11-09 11:57:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cuberoot.cpp: In function ‘int main()’:
cuberoot.cpp:6:12: error: conflicting declaration ‘long long int l’
6 | long long l = 0, h = 100000;
| ^
cuberoot.cpp:5:12: note: previous declaration as ‘int l’
5 | int t, l, h;
| ^
cuberoot.cpp:6:19: error: conflicting declaration ‘long long int h’
6 | long long l = 0, h = 100000;
| ^
cuberoot.cpp:5:15: note: previous declaration as ‘int h’
5 | int t, l, h;
| ^
cuberoot.cpp:10:19: error: ‘x’ was not declared in this scope
10 | if (testCbrt <= x){
| ^
cuberoot.cpp:14:20: error: expected ‘;’ before ‘return’
14 | cout << l << "\n"
| ^
| ;
15 | return 0;
| ~~~~~~
cuberoot.cpp:16:1: error: expected ‘}’ at end of input
16 | }
| ^
cuberoot.cpp