Problem eight
User MaryMapleMan
Submission Time 2025-06-16 22:36:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eight.cpp: In function ‘int main()’:
eight.cpp:5:2: error: ‘cin’ was not declared in this scope
5 | 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:14:2: error: ‘cout’ was not declared in this scope
14 | cout << count;
| ^~~~
eight.cpp:14:2: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?