Problem primepie
User dragons
Submission Time 2023-02-11 08:52:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

primepie.cpp:6:1: error: ‘vector’ does not name a type
6 | vector<ll> primes;
| ^~~~~~
primepie.cpp: In function ‘long long int amountEaten(int)’:
primepie.cpp:14:7: error: ‘primes’ was not declared in this scope
14 | primes.push_back(i);
| ^~~~~~
primepie.cpp:19:8: error: ‘primes’ was not declared in this scope
19 | ans+=primes[i];
| ^~~~~~
primepie.cpp:21:3: error: ‘cout’ was not declared in this scope
21 | cout<<ans<<"\n";
| ^~~~
primepie.cpp:2:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
1 | #include "primepie.h"
+++ |+#include <iostream>
2 | using namespace std;