Problem cuberoot
User potatoed78
Submission Time 2025-06-19 15:40:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cuberoot.cpp: In function ‘int main()’:
cuberoot.cpp:17:31: error: expected ‘,’ or ‘;’ before ‘ans’
17 | long long l=0,r=num+1 ans;
| ^~~
cuberoot.cpp:22:5: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
22 | ans = mid;
| ^~~
| abs
cuberoot.cpp:28:17: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
28 | cout << ans << "\n";
| ^~~
| abs