Problem cuberoot
User AndyChen
Submission Time 2026-03-02 17:46:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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