Problem cuberoot
User AndyChen
Submission Time 2026-03-27 13:36:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cuberoot.cpp: In function ‘int main()’:
cuberoot.cpp:13:18: error: ‘class std::vector<int>’ has no member named ‘length’
13 | for (int i; i<b.length;i++){
| ^~~~~~
cuberoot.cpp:25:15: error: expected ‘}’ at end of input
25 | cout << mid1;
| ^
cuberoot.cpp:13:29: note: to match this ‘{’
13 | for (int i; i<b.length;i++){
| ^
cuberoot.cpp:25:15: error: expected ‘}’ at end of input
25 | cout << mid1;
| ^
cuberoot.cpp:5:12: note: to match this ‘{’
5 | int main() {
| ^