Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- ifstream ifs("com.txt");
- ofstream out("results.txt");
- int count_tests;
- ifs >> count_tests;
- for (int k = 0; k < count_tests; k++)
- {
- cout << endl;
- int y;
- int true_ans[M];
- for (int j = 0; j < M; j++)
- {
- cout << answers[j] << " ";
- out << answers[j] << " ";
- }
- out << endl;
- for (int j = 0; j < M; j++)
- {
- ifs >> y;
- true_ans[j] = y;
- out << y << " ";
- }
- out << endl;
- for (int j = 0; j < M; j++)
- {
- if (true_ans[j] != answers[j])
- out << "WA" << j << " ";
- else
- out << "1 ";
- }
- out << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment