Problem cuberoot
User chlq3x
Submission Time 2026-06-25 16:39:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cuberoot.cpp: In function ‘int main()’:
cuberoot.cpp:3:13: error: expected ‘,’ or ‘;’ before ‘long’
3 | #define int long long
| ^~~~
cuberoot.cpp:14:3: note: in expansion of macro ‘int’
14 | int r = 1e6+1
| ^~~
cuberoot.cpp:16:15: error: ‘r’ was not declared in this scope
16 | while (1 <= r)
| ^
cuberoot.cpp:23:5: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
23 | ans = mid;
| ^~~
| abs
cuberoot.cpp:27:11: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
27 | cout << ans << "\n"
| ^~~
| abs