I'm just gonna start off with a bug that I found, but could not recreate.
-I was messing around with chrono
-To simulate a delay, I just made a big 1mill loop.
-I get a completely different outcome
-It was some random program, I cant remember it, but it just did something like 6 questions like "size of well[z0]:" (I think I put in a char instead of a int for one, and I think that might made it so that there was no outcome).
Has anyone else have a story like this with the shell?
To simulate a delay, I just made a big 1mill loop.
Which was thrown out by the compiler because it is not doing anything.
It was some random program, I cant remember it, but it just did something like 6 questions like "size of well[z0]:" (I think I put in a char instead of a int for one, and I think that might made it so that there was no outcome)
And you broke your program. It is program problem, not shell one.
And note that every online compiler has limits on machine time each program can claim. If you exceed it program will be terminated.
No, MiiNiPaa.
This is a cpp.sh bug.
At times it gives you somebody else's program, randomly. Trying some more times will *hopefully* give back your program.
There was another topic about that somewhere in the lounge. http://www.cplusplus.com/forum/lounge/143448/
That "v02" in the link seems suspicious... I recall that we used to have a v2.cplusplus.com for a while when the forums were updated. Maybe twicker made it? I would have thought it'd be easier to use an existing site like ideone.com.
Which one? I don't see Ideone providing any API to use it externally, Coliru ask to not abuse API and maybe this site can create to many requests, other sites does not have any info on API too.
@MiiNiPaa: first time button is clicked, could simply submit a POST request to ideone as it does itself, and then cache the result page. There's also an API but I don't know much about it and I think it's not free.
Downloading of content from the ideone.com website using any user agent other than a visual or text-based web browser, downloading of content from ideone.com in bulk using automated processes, and selective parsing and post-processing of content retrieved from ideone.com, are expressly forbidden.
I think that's meant for website downloaders mainly.
Let me also remember you POST requests are not for downloads in the HTTP standard, but selective parsing and postprocessing denial means one really shouldn't be looking at how it works.