Problem cuberoot
User youwoahh
Submission Time 2026-01-05 21:19:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cuberoot.cpp: In function ‘int main()’:
cuberoot.cpp:20:17: error: ‘cube’ was not declared in this scope
20 | if (cube<=n) {
| ^~~~
cuberoot.cpp:21:24: error: ‘mid’ was not declared in this scope
21 | answer=mid;
| ^~~
cuberoot.cpp:24:23: error: ‘mid’ was not declared in this scope
24 | right=mid-1;
| ^~~
cuberoot.cpp:28:15: error: ‘answer’ was not declared in this scope
28 | cout<<answer<<endl;
| ^~~~~~
cuberoot.cpp: At global scope:
cuberoot.cpp:31:5: error: expected unqualified-id before ‘return’
31 | return 0;
| ^~~~~~
cuberoot.cpp:32:1: error: expected declaration before ‘}’ token
32 | }
| ^