Problem | primepie |
---|---|
User | Tracxr |
Submission Time | 2023-03-09 20:22:39 |
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:17:2: error: ‘vector’ was not declared in this scope
17 | vector<bool> is_prime(n+1, true);
| ^~~~~~
primepie.cpp:13:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
12 | #include "primepie.h"
+++ |+#include <vector>
13 | using namespace std;
primepie.cpp:17:9: error: expected primary-expression before ‘bool’
17 | vec