Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- int main()
- {
- using namespace std;
- int lenght;
- cin >> lenght;
- vector<int> arr1;
- for (int i = 0; i < lenght; ++i)
- {
- int n;
- cin >> n;
- arr1.push_back(n);
- }
- vector<int> arr2;
- cin >> lenght;
- for (int i = 0; i < lenght; ++i)
- {
- int n;
- cin >> n;
- arr2.push_back(n);
- }
- if (arr1 == arr2)
- cout << "equal";
- else
- cout << "not equal";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment