| Problem | cuberoot |
|---|---|
| User | sthe2nd |
| Submission Time | 2026-06-25 15:54:34 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
cuberoot.cpp: In function ‘int main()’:
cuberoot.cpp:14:21: error: assignment of function ‘std::ios_base& std::right(std::ios_base&)’
14 | int left=1; right = 1e6;
| ~~~~~~^~~~~
cuberoot.cpp:16:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | while (left < right) {
| ^~~~~
cuberoot.cpp:17:19: error: invalid operands of types ‘long long int’ and ‘std::ios_base&(std::ios_base&)’ to binary ‘operator-’
17 | int mid = (left-right)/2;
| ~~~~^~~~~~
| | |
| | std::ios_base&(std::ios_base&)
| long long int
cuberoot.cpp:26:11: error: assignment of function ‘std::ios_base& std::right(std::ios_base&)’
26 | right = mid;
| ~~~~~~^~~~~