agrawal-d / cph

Makes judging, compiling, and downloading problems for competitive programming easy.
https://agrawal-d.github.io/cph
GNU General Public License v3.0
819 stars 135 forks source link

Slow running code --> usually TLE #508

Open ducminh25 opened 1 day ago

ducminh25 commented 1 day ago

Just a "normal" C++ program, but the cph runs it in such a really long time, that it usually shows "SIGTERM - Time Limit Exceeded". Here's an example: image (The issue isn't solved by not ticking the "Set Online Judge")

Here's the setting for Cph > Language > Cpp: image

Extension Version: v2024.11.1730722547

VS Code Version: 1.95.3

Browser Version: Edge 131.0.2903.51 (Official build) (64-bit)

Operating System: Windows 11 24H2, 64 bit

agrawal-d commented 1 day ago

Try running without any c++ flags and see if it works.

ducminh25 commented 5 hours ago

Try running without any c++ flags and see if it works.

It works, actually. However, I'm a student, learning Competitive Programming. Therefore, those flags are somewhat important to me, as it's used by the Judging Program (I'm in Viet Nam). Anyway, thanks for the solution!