Problem cuberoot
User gordonlu
Submission Time 2023-10-20 07:50:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cuberoot.cpp: In function ‘int main()’:
cuberoot.cpp:7:2: error: ‘vector’ was not declared in this scope
7 | vector<int> nums(n);
| ^~~~~~
cuberoot.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 |
cuberoot.cpp:7:9: error: expected primary-expression before ‘int’
7 | vector<int> nums(n);
| ^~~
cuberoot.cpp:10:3: error: ‘nums’ was not declared in this scope
10 | nums[i] = cbrt(temp);
| ^~~~
cuberoot.cpp:10:13: error: ‘cbrt’ was not declared in this scope
10 | nums[i] = cbrt(temp);
| ^~~~
cuberoot.cpp:12:22: error: ‘vect’ was not declared in this scope
12 | for (int i = 0; i < vect.size(); i++) {
| ^~~~
cuberoot.cpp:13:11: error: ‘nums’ was not declared in this scope
13 | co