Problem | cuberoot |
---|---|
User | yqiiiiiii |
Submission Time | 2025-06-19 14:14:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cuberoot.cpp: In function ‘int main()’:
cuberoot.cpp:9:18: error: expected ‘;’ before ‘if’
9 | y = pow(x, 1/3)
| ^
| ;
10 | if(y*3 == x){
| ~~
cuberoot.cpp:12:4: error: ‘else’ without a previous ‘if’
12 | }else{
| ^~~~
cuberoot.cpp:16:1: error: expected ‘}’ at end of input
16 | }
| ^
cuberoot.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^