Submission #5657688


Source Code Expand

Copy
#include<iostream>
using namespace std;

int main() {
  int a, b;
  cin >> a >>b;
  if((a+b) % 2 = 0) {
    cout << "Even" <<endl;
  } else {
    cout << "Odd" <<endl;
  }
  return 0;
}

Submission Info

Submission Time
Task ABC086A - Product
User nkiyo
Language C++14 (GCC 5.4.1)
Score 0
Code Size 197 Byte
Status

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:7:16: error: lvalue required as left operand of assignment
   if((a+b) % 2 = 0) {
                ^