
-----------------------------------
Panphobia
Thu Feb 28, 2013 5:19 pm

C++ Standard Input Help
-----------------------------------
I am doing this question on an online judging website http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=94&page=show_problem&problem=996 , and I was doing it in java, but no matter what I did it was always a runtime error, when I followed all guidelines, now I switched to c++, my understand is that you need to subtract the two values and take the absolute value, is this wrong, is my standard input wrong, what is wrong? #include 
using namespace std;
int main() {
    int a,b;
    while(cin >>a>>b){
        cin>>a>>b;
        cout 