#include"bits/stdc++.h"
using namespace std;
int main()
{
// #ifndef ONLINE_JUDGE
// freopen("input.txt", "r", stdin);
// freopen("output.txt", "w", stdout);
// #endif
int x = 1;
while (x < 100) {
cout << x;
}
return 0;
}
Which flag or script should I add in Command Prompt while running this program such that it kills the process after some time(say 1 second) and doesn't hang my computer ?Actually I want to make a sublime-build
that kills the process say after t seconds but the timeout
in windows is used for waiting unlike the timeout
in linux
.