Problem eight
User haiquan
Submission Time 2025-06-16 17:14:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eight.cpp: In function ‘int main()’:
eight.cpp:9:5: error: ‘cin’ was not declared in this scope
9 | cin >> N;
| ^~~
eight.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
eight.cpp:21:9: error: ‘cout’ was not declared in this scope
21 | cout << e;
| ^~~~
eight.cpp:21:9: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?