Edit: I did write output file ↵
↵
![Here](https://i.loli.net/2020/11/19/u9pvYn32PKLkI8U.png)↵
↵
I've been doing some past USACO Gold problems lately, but I have met some troubles regarding submission. Although my program outputs the correct answer, it keeps telling me that the answer is incorrect. I've met these kind of troubles before, so I thought its just a format issue. But no matter how I adjust the way I output the answer, it doesn't work. ↵
↵
For example, I have tried ↵
``` cout << ans << "\n"; ```↵
``` cout << ans << endl; ```↵
``` cout << ans << " "; ```↵
``` cout << ans; ```↵
but non of them works. ↵
↵
Here are two screenshots: ↵
↵
![USACO 2015 G DEC](https://i.loli.net/2020/11/19/iZV6C9tGqRkvs8W.png)↵
![USACO 2016 G JAN](https://i.loli.net/2020/11/19/BPl1tLSJVdWv3fx.png)↵
↵
Can someone please help me with that? I just don't want to run into these kind of troubles during real contest lol. Thanks!
↵
![Here](https://i.loli.net/2020/11/19/u9pvYn32PKLkI8U.png)↵
↵
I've been doing some past USACO Gold problems lately, but I have met some troubles regarding submission. Although my program outputs the correct answer, it keeps telling me that the answer is incorrect. I've met these kind of troubles before, so I thought its just a format issue. But no matter how I adjust the way I output the answer, it doesn't work. ↵
↵
For example, I have tried ↵
``` cout << ans << "\n"; ```↵
``` cout << ans << endl; ```↵
``` cout << ans << " "; ```↵
``` cout << ans; ```↵
but non of them works. ↵
↵
Here are two screenshots: ↵
↵
![USACO 2015 G DEC](https://i.loli.net/2020/11/19/iZV6C9tGqRkvs8W.png)↵
![USACO 2016 G JAN](https://i.loli.net/2020/11/19/BPl1tLSJVdWv3fx.png)↵
↵
Can someone please help me with that? I just don't want to run into these kind of troubles during real contest lol. Thanks!