| Problem | cuberoot |
|---|---|
| User | suzienguyen |
| Submission Time | 2026-02-16 22:45:56 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
cuberoot.cpp: In function ‘int bsearch(std::vector<int>, long long int, int, int)’:
cuberoot.cpp:9:11: error: invalid type argument of unary ‘*’ (have ‘int’)
9 | if (mid**3 == x){
| ^
cuberoot.cpp:12:15: error: invalid type argument of unary ‘*’ (have ‘int’)
12 | else if(mid**3 > x) {
| ^
cuberoot.cpp:13:29: error: expected primary-expression before ‘cubert’
13 | return bsearch(vector<int>cubert, long long x, int mid-1, int lo);
| ^~~~~~
cuberoot.cpp:13:37: error: expected primary-expression before ‘long’
13 | return bsearch(vector<int>cubert, long long x, int mid-1, int lo);
| ^~~~
cuberoot.cpp:13:50: error: expected primary-expression before ‘int’
13 | return bsearch(vector<int>cubert, long long x, int mid-1, int lo);
| ^~~