fork download
  1. #include <bits/stdc++.h>
  2.  
  3. #define ll long long
  4. #define el cout << '\n'
  5.  
  6. using namespace std;
  7.  
  8. mt19937_64 rd(chrono::steady_clock::now().time_since_epoch().count());
  9.  
  10. ll random(ll l, ll r)
  11. {
  12. return rd() % (r - l + 1) + l;
  13. }
  14. void makeTest()
  15. {
  16. ofstream cout("SCORE.INP");
  17. int t = 5;
  18. cout << t, el;
  19. while (t--)
  20. {
  21. int a = random(1, 100);
  22. int b = random(1, 100);
  23. cout << a << ' ' << b, el;
  24. }
  25. }
  26.  
  27. int main()
  28. {
  29. ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
  30. for (int i = 0; i <= 1e3; i++)
  31. {
  32. makeTest();
  33. system("SCORE.EXE");
  34. system("SCORE_TRAU.EXE");
  35. if (system("fc SCORE.OUT SCORE_TRAU.OUT"))
  36. {
  37. cerr << i << " WRONG\n";
  38. break;
  39. }
  40. cerr << i << " PASSED\n";
  41. }
  42. }
  43.  
Success #stdin #stdout #stderr 0.01s 5324KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
sh: 1: SCORE.EXE: not found
sh: 1: SCORE_TRAU.EXE: not found
sh: 1: fc: not found
0 WRONG