Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <string>
- #include <cctype>
- using namespace std;
- void ReadSentences(vector<string>& sentence1Words, vector<string>& sentence2Words, int wordCount) {
- for (int i = 0; i < wordCount; i++) {
- cin>>sentence1Words[i];
- }
- for (int i = 0; i < wordCount; i++) {
- cin>>sentence2Words[i];
- }
- }
- int main() {
- vector<string> firstSentence(20);
- vector<string> secondSentence(20);
- int wordCount;
- int i;
- cin >> wordCount;
- ReadSentences(firstSentence, secondSentence, wordCount);
- for (i = 0; i < wordCount; i++) {
- if (firstSentence[i] != secondSentence[i]) {
- cout << firstSentence[i] << " " << secondSentence[i] << endl;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement