0_0_39396514_27026.cpp: In function 'int main()':
0_0_39396514_27026.cpp:7:16: error: 'cin' was not declared in this scope
7 | while (cin >> n) {
| ^~~
0_0_39396514_27026.cpp:3:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
2 | #include <cmath>
+++ |+#include <iostream>
3 | using namespace std;
0_0_39396514_27026.cpp:16:25: error: 'cout' was not declared in this scope
16 | cout << a[i] << " ";
| ^~~~
0_0_39396514_27026.cpp:16:25: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
|