| Problem | cuberoot |
|---|---|
| User | suzienguyen |
| Submission Time | 2026-02-16 22:53:33 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
cuberoot.cpp: In function ‘int main()’:
cuberoot.cpp:42:20: error: request for member ‘size’ in ‘t’, which is of non-class type ‘int’
42 | for (int i=0; i<t.size(); i++){
| ^~~~
cuberoot.cpp:43:30: error: invalid types ‘int[int]’ for array subscript
43 | ans[i] = bsearch(cubert,t[i],hi,lo);
| ^
cuberoot.cpp:45:17: error: no match for ‘operator<’ (operand types are ‘int’ and ‘std::vector<long long int>’)
45 | for (int i=0; i<T; i++){
| ~^~
| | |
| | std::vector<long long int>
| int
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,<