Problem | cuberoot |
---|---|
User | AltheaZ |
Submission Time | 2023-06-30 10:26:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cuberoot.cpp: In function ‘int main()’:
cuberoot.cpp:8:2: error: ‘vector’ was not declared in this scope
8 | vector<int>cube(t);
| ^~~~~~
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:9: error: expected primary-expression before ‘int’
8 | vector<int>cube(t);
| ^~~
cuberoot.cpp:12:3: error: ‘cube’ was not declared in this scope
12 | cube[i]=(pow(raw,1.0/3.0)<<"\n");
| ^~~~
cuberoot.cpp:12:28: error: invalid operands of types ‘__gnu_cxx::__promote_2<int, double, double, double>::__type’ {aka ‘double’} and ‘const char [2]’ to binary ‘operator<<’
12 | cube[i]=(pow(raw,1.0/3.0)<<"\n");
| ~~~~~~~~~~~~~~~~^~~~~~
| | |
|