ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 2001. Mathematicians and Berries

C++ What's wrong with my code?
Posted by zimozi 20 Jul 2015 12:16
#include <iostream>
using namespace std;
int main()
{
int a[3],b[3];
for (int i = 0;i<3;i++)
{cin>>a[i]>>b[i];
}
cout<<a[0]-a[2]<<b[0]-b[1];
return 0;
}
Re: C++ What's wrong with my code?
Posted by Egor 15 Sep 2015 01:24
You forgot the space.
Re: C++ What's wrong with my code?
Posted by Pavel Gordeev 5 Oct 2015 12:55
Where am I must write the space? Only in output?
Re: C++ What's wrong with my code?
Posted by Exeption !!! 14 Jan 2016 00:40
between ans1 << " " << ans2;