#include <iostream>
#include <vector>
using namespace std;
signed main() {
const int n = 10;
vector<int> a(n);
for(auto &i:a) cin >> i;
int k;
cin >> k;
int ans = 0;
cout << "array:\n";
for(auto &i: a){
cout << i << " ";
ans += i == k;
}
if(ans == 0) cout << "\nthere are no such element in current array";
else cout << "\nlast entry: " << ans;
#include <iostream>
#include <vector>
using namespace std;
signed main() {
const int n = 10;
vector<int> a(n);
for(auto &i:a) cin >> i;
int k;
cin >> k;
int ans = 0;
cout << "array:\n";
for(auto &i: a){
cout << i << " ";
ans += i == k;
}
if(ans == 0) cout << "\nthere are no such element in current array";
else cout << "\nlast entry: " << ans;
}