In hello 2018 round I wrote my submission to problem-C Party Lemonade, it ran well on geeksforgeeks c++14 compiler giving correct ans for test case 4 but the same code with same input gave wrong ans on codeforces c++14 compiler. why is it so.. mysubmission url:-http://mirror.codeforces.com/submissions/tibialAcorn98 submission no -34026659








Read this for most common causes. Didn't look at your code but I would guess that you have problems with floating point numbers.
http://mirror.codeforces.com/contest/913/submission/34037319
resubmitted your code with
long longvslong(which is 32 bit). Now it goes to test 7it still got WA so you have other bugs, but hopefully this helps
thank you farmersrice. but why did it gave correct ans for case 4 on other compilers.
because on some compilers,
longis 64 bit (but this is very rare), most other compilers,longis be 32 bit.long longis guaranteed 64 bit.