+ 1
Help with Sololearn complier
I'm using code with multi threading and it works on gdb online debugger, it's an online complier for cpp, but it doesn't work here. I'm also using other libraries too like Chrono, thread, iomanip, and atomic. I'm using cin.get() to stop the code too. https://sololearn.com/compiler-playground/cSSgl36ZvA6f/?ref=app
1 Antwort
+ 5
there's a time limit for code execution here in Sololearn. you can't run codes that's in an infinite loop or those that continuously wait for user input. Also, all inputs have to be provided through the input box and the displayed output is not a real console that you can interact and type inputs on.
so for your code, the libraries work, but it will always be stopped once it starts. it can't wait for user input while it's running.