Submission #419895

# Submission time Handle Problem Language Result Execution time Memory
419895 2021-06-07T16:12:57 Z Rahat_Khan_Pathan Cluedo (IOI10_cluedo) C++17
Compilation error
0 ms 0 KB
/*
||-----------------------------------||
||        Rahat Khan Pathan          ||
||      BGC Trust University         ||
||       Department of CSE           ||
||-----------------------------------||
*/
#include<bits/stdc++.h>
#define ll long long int
#define pub push_back
#define pi 3.14159265359
#define vll vector<ll>
#define All(X) (X).begin(),(X).end()
#define Unique(X) (X).erase(unique(All(X)),(X).end()))
#define fast ios_base::sync_with_stdio(0); cin.tie(0);
#define pi pair<ll,ll>
#define vpair vector<pair<ll,ll> >
#define yes cout<<"YES"<<endl
#define no cout<<"NO"<<endl
#define minus cout<<-1<<endl
using namespace std;
void Solve()
{
    ll i,j,k,x;
    for(i=1;i<=6;i++)
    {
        for(j=1;j<=10;j++)
        {
            for(k=1;k<=6;k++)
            {
                x=Theory(i,j,k);
                if(x==0)
                    return;
            }
        }
    }
}
int main()
{
    Solve();
    return 0;
}

Compilation message

cluedo.cpp:16: warning: "pi" redefined
   16 | #define pi pair<ll,ll>
      | 
cluedo.cpp:11: note: this is the location of the previous definition
   11 | #define pi 3.14159265359
      | 
cluedo.cpp: In function 'void Solve()':
cluedo.cpp:31:19: error: 'Theory' was not declared in this scope
   31 |                 x=Theory(i,j,k);
      |                   ^~~~~~