Problem cuberoot
User Anonymous35V
Submission Time 2023-11-09 11:58: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:8: note: previous declaration as ‘int l’
5 | int h, l, x;
| ^
cuberoot.cpp:6:19: error: conflicting declaration ‘long long int h’
6 | long long l = 0, h = 100000;
| ^
cuberoot.cpp:5:5: note: previous declaration as ‘int h’
5 | int h, l, 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:4:11: note: to match this ‘{’
4 | int main(){
| ^