#include<iostream>
using namespace std;
int main()
{
int hash, opp, i, j, c = 0;
//cout<<"enter hasmat army number and opponent number\n";
while(cin>>hash>>opp)
{
cout<<opp-hash<<endl;
}
}
time limit for this problem: 3.000 seconds how can i verify and test this condition?
i'm submitting this to a computer online, how exactly can i know run time error? should i calculate run time and memory?
explain me how to check runtime and memory in c++ in linux, i'm using gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9).