Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <cstring>
- using namespace std;
- ifstream fin("date.in");
- ifstream fin2("date.out");
- char s1[10000], s2[10000];
- int k, p;
- int main()
- {
- while (fin != NULL)
- {
- fin.getline(s1, 10000);
- fin2.getline(s2, 10000);
- p++;
- if (!strcmp(s1, s2))
- {
- k++;
- }
- else
- {
- cout << p << " " << s1;
- cout << " - RAU ";
- cout << s2;
- cout << endl;
- }
- }
- if (k == p)
- {
- cout << " 10 cu STELUTA!";
- }else
- {
- cout << " Ai facut bine " << k << " / " << p;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement