Submission #6413942


Source Code Expand

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main(int argc, char *argv[]) {
  ios::sync_with_stdio(false);
	cin.tie(nullptr);
	cout.tie(nullptr);

  int x,y;cin>>x>>y;

  int a[]={1,3,5,7,8,10,12};
  int b[]={4,6,9,11};

  int t=0;
  for(int i=0;i<n;i++){
    if(a[i]==x||a[i]==y){
      t++;
    }
  }
  if(t==2){cout<<"Yes"<<endl;return 0;}
  t=0;
  for(int i=0;i<n;i++){
    if(b[i]==x||b[i]==y){
      t++;
    }
  }
  if(t==2){cout<<"Yes"<<endl;return 0;}
  cout<<"No"<<endl;

  return 0;
}

Submission Info

Submission Time
Task A - Grouping
User kerotan
Language C++14 (GCC 5.4.1)
Score 0
Code Size 556 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main(int, char**)’:
./Main.cpp:16:17: error: ‘n’ was not declared in this scope
   for(int i=0;i<n;i++){
                 ^
./Main.cpp:23:17: error: ‘n’ was not declared in this scope
   for(int i=0;i<n;i++){
                 ^