0_0_39690175_24595.cpp: In function 'int main()':
0_0_39690175_24595.cpp:3:11: error: 'cin' was not declared in this scope
3 | while(cin >> n){
| ^~~
0_0_39690175_24595.cpp:10:13: error: 'a' was not declared in this scope
10 | a[i] = x;
| ^
0_0_39690175_24595.cpp:15:16: error: 'a' was not declared in this scope
15 | if(a[i] % 2 == 1){
| ^
0_0_39690175_24595.cpp:19:14: error: 'cout' is not a member of 'std'
19 | std::cout << prod << std::endl;
| ^~~~
0_0_39690175_24595.cpp:1:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
+++ |+#include <iostream>
1 | int main() {
0_0_39690175_24595.cpp:19:35: error: 'endl' is not a member of 'std'
19 | std::cout << prod << std::endl;
| ^~~~
0_0_39690175_24595.cpp:1:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
+++ |+#include <ostream>
1 | int main() {
|