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 1639. Chocolate 2

where error?????
Posted by Kirill 23 Dec 2011 16:22
#include<iostream>
using namespace std;
int main()
{
    int a,m,n,;
    cin>>m>>n;
    a=(m*n)%2;
    if (a==0) cout<<"[:=[first]";
    else if (a==1) cout<<"[second]=:]";
}
Re: where error?????
Posted by Vlad 7 Jan 2012 09:27
запятая после n
Re: where error?????
Posted by alexProgrammer 20 Apr 2012 18:12
и a=(m*n-1)%2;