Problem cuberoot
User Jaysonwee22
Submission Time 2026-06-25 15:32:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cuberoot.cpp: In function ‘int main()’:
cuberoot.cpp:13:6: error: ‘t’ was not declared in this scope
13 | if(t == x) {
| ^
cuberoot.cpp:15:13: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
15 | return; //terminate the function
| ^~~~~~
cuberoot.cpp:16:20: error: ‘y’ was not declared in this scope
16 | } else if (y < x) {
| ^
cuberoot.cpp:20:1: error: expected ‘}’ at end of input
20 | }
| ^
cuberoot.cpp:4:11: note: to match this ‘{’
4 | int main(){
| ^