Language: C++

#include <bits/stdc++.h>

#define SLAY ios_base::sync_with_stdio(0); cin.tie(NULL); cout.tie(0);
#define LL long long
#define PII pair<int , int>
#define PLL pair<long long , long long>
#define INPUT freopen("/Users/amrfahmy/Documents/Problem solving/CF/CF/input.txt", "r", stdin);
using namespace std;
 
const LL MOD = 1000000007;
LL arr[1000000];
LL b[1000];
LL n,q,c,cnt,mx,m,temp,k;
string str;



bool sortbysec(const pair<int,int> &a,const pair<int,int> &b){
    return (a.first < b.first);
}

int main()
{
    bool readfromfile=false; if(!readfromfile){SLAY} else{INPUT}
    
 

    cin>>n>>m;
    //for(int i = 0 ; i < n ; i++)cin>>arr[i];
   
    if(n==2 && m==3)cout<<1;
    if(n==1 && m==2)cout<<3;
    if(n==1 && m==3)cout<<2;

    return 0;
}
 

#include <bits/stdc++.h>

#define SLAY ios_base::sync_with_stdio(0); cin.tie(NULL); cout.tie(0);
#define LL long long
#define PII pair<int , int>
#define PLL pair<long long , long long>
#define INPUT freopen("/Users/amrfahmy/Documents/Problem solving/CF/CF/input.txt", "r", stdin);
using namespace std;
 
const LL MOD = 1000000007;
LL arr[1000000];
LL b[1000];
LL n,q,c,cnt,mx,m,temp,k;
string str;



bool sortbysec(const pair<int,int> &a,const pair<int,int> &b){
    return (a.first < b.first);
}

int main()
{
    bool readfromfile=false; if(!readfromfile){SLAY} else{INPUT}
    
 

    cin>>n>>m;
    //for(int i = 0 ; i < n ; i++)cin>>arr[i];
   
    if(n==2 && m==3)cout<<1;
    if(n==1 && m==2)cout<<3;
    if(n==1 && m==3)cout<<2;

    return 0;
}
 



Compiler output:
a.cc:48:10: error: redefinition of 'const long long int MOD'
   48 | const LL MOD = 1000000007;
      |          ^~~
a.cc:10:10: note: 'const long long int MOD' previously defined here
   10 | const LL MOD = 1000000007;
      |          ^~~
a.cc:49:4: error: redefinition of 'long long int arr [1000000]'
   49 | LL arr[1000000];
      |    ^~~
a.cc:11:4: note: 'long long int arr [1000000]' previously declared here
   11 | LL arr[1000000];
      |    ^~~
a.cc:50:4: error: redefinition of 'long long int b [1000]'
   50 | LL b[1000];
      |    ^
a.cc:12:4: note: 'long long int b [1000]' previously declared here
   12 | LL b[1000];
      |    ^
a.cc:51:4: error: redefinition of 'long long int n'
   51 | LL n,q,c,cnt,mx,m,temp,k;
      |    ^
a.cc:13:4: note: 'long long int n' previously declared here
   13 | LL n,q,c,cnt,mx,m,temp,k;
      |    ^
a.cc:51:6: error: redefinition of 'long long int q'
   51 | LL n,q,c,cnt,mx,m,temp,k;
      |      ^
a.cc:13:6: note: 'long long int q' previously declared here
   13 | LL n,q,c,cnt,mx,m,temp,k;
      |      ^
a.cc:51:8: error: redefinition of 'long long int c'
   51 | LL n,q,c,cnt,mx,m,temp,k;
      |        ^
a.cc:13:8: note: 'long long int c' previously declared here
   13 | LL n,q,c,cnt,mx,m,temp,k;
      |        ^
a.cc:51:10: error: redefinition of 'long long int cnt'
   51 | LL n,q,c,cnt,mx,m,temp,k;
      |          ^~~
a.cc:13:10: note: 'long long int cnt' previously declared here
   13 | LL n,q,c,cnt,mx,m,temp,k;
      |          ^~~
a.cc:51:14: error: redefinition of 'long long int mx'
   51 | LL n,q,c,cnt,mx,m,temp,k;
      |              ^~
a.cc:13:14: note: 'long long int mx' previously declared here
   13 | LL n,q,c,cnt,mx,m,temp,k;
      |              ^~
a.cc:51:17: error: redefinition of 'long long int m'
   51 | LL n,q,c,cnt,mx,m,temp,k;
      |                 ^
a.cc:13:17: note: 'long long int m' previously declared here
   13 | LL n,q,c,cnt,mx,m,temp,k;
      |                 ^
a.cc:51:19: error: redefinition of 'long long int temp'
   51 | LL n,q,c,cnt,mx,m,temp,k;
      |                   ^~~~
a.cc:13:19: note: 'long long int temp' previously declared here
   13 | LL n,q,c,cnt,mx,m,temp,k;
      |                   ^~~~
a.cc:51:24: error: redefinition of 'long long int k'
   51 | LL n,q,c,cnt,mx,m,temp,k;
      |                        ^
a.cc:13:24: note: 'long long int k' previously declared here
   13 | LL n,q,c,cnt,mx,m,temp,k;
      |                        ^
a.cc:52:8: error: redefinition of 'std::string str'
   52 | string str;
      |        ^~~
a.cc:14:8: note: 'std::string str' previously declared here
   14 | string str;
      |        ^~~
a.cc:56:6: error: redefinition of 'bool sortbysec(const std::pair<int, int>&, const std::pair<int, int>&)'
   56 | bool sortbysec(const pair<int,int> &a,const pair<int,int> &b){
      |      ^~~~~~~~~
a.cc:18:6: note: 'bool sortbysec(const std::pair<int, int>&, const std::pair<int, int>&)' previously defined here
   18 | bool sortbysec(const pair<int,int> &a,const pair<int,int> &b){
      |      ^~~~~~~~~
a.cc:60:5: error: redefinition of 'int main()'
   60 | int main()
      |     ^~~~
a.cc:22:5: note: 'int main()' previously defined here
   22 | int main()
      |     ^~~~