Problem | primepie |
---|---|
User | Tracxr |
Submission Time | 2023-03-09 20:21:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
primepie.cpp:4:9: error: ‘pair’ does not name a type
4 | typedef pair<int,int> ii;
| ^~~~
primepie.cpp:5:9: error: ‘vector’ does not name a type
5 | typedef vector<int> vi;
| ^~~~~~
primepie.cpp:6:9: error: ‘vector’ does not name a type
6 | typedef vector<bool> vb;
| ^~~~~~
primepie.cpp:7:9: error: ‘vector’ does not name a type
7 | typedef vector<ii> vii;
| ^~~~~~
primepie.cpp: In function ‘ll amountEaten(int)’:
primepie.cpp:14:2: error: ‘vector’ was not declared in this scope
14 | vector<bool> is_prime(n+1, true);
| ^~~~~~
primepie.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include "primepie.h";
+++ |+#include <vector>
2 | using namespace std;
primepie.cpp:14:9: error: expected primary-expression before ‘bool’
14 | vec