@ddavidtran said in C++ Solution not working on LeetCode but works on IDE:
Anyone know what's wrong with my code?
You should know. The error message told you.
@ManuelP I did not get an error message but I figured it out. Thank you anyways.
@ManuelP Then it must be something with my compiler settings within CLion.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.