0_0_38891256_20456.cpp: In function 'int main()':
0_0_38891256_20456.cpp:9:9: error: 'cin' was not declared in this scope
9 | cin >> T;
| ^~~
0_0_38891256_20456.cpp:3:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
2 | #include <string>
+++ |+#include <iostream>
3 | using namespace std;
0_0_38891256_20456.cpp:36:25: error: 'cout' was not declared in this scope
36 | cout << a[i] << " ";
| ^~~~
0_0_38891256_20456.cpp:36:25: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_38891256_20456.cpp:38:17: error: 'cout' was not declared in this scope
38 | cout << endl;
| ^~~~
0_0_38891256_20456.cpp:38:17: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_38891256_20456.cpp:38:25: error: 'endl' was not declared in this scope
38 | cout << endl;
| ^~~~
0_0_38891256_20456.cpp:3:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
2 | #include <string>
+++ |+#include <ostream>
3 | using namespace std;
|