| Problem | nprime |
|---|---|
| User | ChristianXander |
| Submission Time | 2026-06-24 14:47:46 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
nprime.cpp: In function ‘int main()’:
nprime.cpp:4:5: error: ‘ifstream’ was not declared in this scope
4 | ifstream in("PRIME.IN");
| ^~~~~~~~
nprime.cpp:1:1: note: ‘std::ifstream’ is defined in header ‘<fstream>’; did you forget to ‘#include <fstream>’?
+++ |+#include <fstream>
1 | using namespace std;
nprime.cpp:5:5: error: ‘ofstream’ was not declared in this scope
5 | ofstream out("PRIME.OUT");
| ^~~~~~~~
nprime.cpp:5:5: note: ‘std::ofstream’ is defined in header ‘<fstream>’; did you forget to ‘#include <fstream>’?
nprime.cpp:7:9: error: expected unqualified-id before ‘>>’ token
7 | int >> n;
| ^~
nprime.cpp:18:5: error: ‘out’ was not declared in this scope
18 | out << p;
| ^~~