Submission #13443855


Source Code Expand

Copy
#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  cin >> a >> b;
  if((a+b)/4!=0)cout << "No";
  else if(x-(a+b)/4%2==0&&y-(a+b)/4%2==0)cout << "Yes";
  else cout << "No";
  cout << endl;
}

Submission Info

Submission Time
Task B - Colored Balls
User Nagaemon
Language C++14 (GCC 5.4.1)
Score 0
Code Size 218 Byte
Status

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:7:11: error: ‘x’ was not declared in this scope
   else if(x-(a+b)/4%2==0&&y-(a+b)/4%2==0)cout << "Yes";
           ^
./Main.cpp:7:27: error: ‘y’ was not declared in this scope
   else if(x-(a+b)/4%2==0&&y-(a+b)/4%2==0)cout << "Yes";
                           ^