Problem cuberoot
User DoubleShaurya
Submission Time 2024-02-11 11:20:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cuberoot.cpp: In function ‘int main()’:
cuberoot.cpp:6:2: error: ‘vector’ was not declared in this scope
6 | vector <long long> v;
| ^~~~~~
cuberoot.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
cuberoot.cpp:6:10: error: expected primary-expression before ‘long’
6 | vector <long long> v;
| ^~~~
cuberoot.cpp:12:3: error: ‘v’ was not declared in this scope
12 | v.push_back(num);
| ^
cuberoot.cpp:17:19: error: ‘v’ was not declared in this scope
17 | while (j*j*j != v[i]) {
| ^