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 1409. Two Gangsters

whats wrong?????
Posted by shubham 8 Jul 2014 00:57
#include<stdio.h>

void main()
{
    int harry, larry;
    int sum;
    int harryleft, larryleft;

    scanf("%d%d", harry, larry);
    sum = (harry + larry)-1;
    harryleft = sum - harry;
    larryleft = sum - larry;
    printf("%d%d", harryleft, larryleft);

        return 0;
}
Re: whats wrong?????
Posted by Ealham Al Musabbir 1 May 2015 10:39
Here's the necessary changes:
int main()

scanf("%d%d", &harry, &larry);