| Problem | cuberoot |
|---|---|
| User | jamallikestocode |
| Submission Time | 2026-01-13 20:33:39 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
cuberoot.cpp: In function ‘int main()’:
cuberoot.cpp:8:5: error: ‘vector’ was not declared in this scope
8 | vector<int> square_root;
| ^~~~~~
cuberoot.cpp:3:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
2 | #include <cmath>
+++ |+#include <vector>
3 | using namespace std;
cuberoot.cpp:8:12: error: expected primary-expression before ‘int’
8 | vector<int> square_root;
| ^~~
cuberoot.cpp:12:13: error: no match for ‘operator<<’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘double’)
12 | cin << num;
| ~~~ ^~ ~~~
| | |
| | double
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/9/bits/basic_string.h:48,
from /usr/include/c++/