Submission #725683

#TimeUsernameProblemLanguageResultExecution timeMemory
725683kyanl9Cluedo (IOI10_cluedo)C++14
Compilation error
0 ms0 KiB
#include "grader.h" #include "cluedo.h" #include <bits/stdc++.h> #define pb push_back #define mp make_pair #define F first #define S second using namespace std; typedef long long ll; typedef pair<int,int> pii; void solve(){ int c=-1; vector<int> vect,mid; for(int i=1;i<=6;i++){ int v=Theory(i,i,i); if(v==3) c=i; if(v<=2) vect.pb(i); } for(int i=7;i<=10;i++){ if(Theory(c,i,c)!=3) mid.pb(i); } if(int(mid.size()==0)){ if(int(vect.size())==3){ Theory(vect[0],vect[1],vect[2]); Theory(vect[0],vect[2],vect[1]); Theory(vect[1],vect[0],vect[2]); Theory(vect[1],vect[2],vect[0]); Theory(vect[2],vect[1],vect[0]); Theory(vect[2],vect[0],vect[1]); } else if(int(vect.size()==1)) return; else{ Theory(vect[0],vect[0],vect[1]); Theory(vect[0],vect[1],vect[1]); Theory(vect[1],vect[0],vect[0]); Theory(vect[1],vect[1],vect[0]); Theory(vect[1],vect[0],vect[1]); Theory(vect[0],vect[1],vect[0]); } } else{ if(int(vect.size()==2)){ Theory(vect[0],mid[0],vect[1]); Theory(vect[1],mid[0],vect[0]); } else{ Theory(vect[1],mid[0],vect[1]); Theory(vect[0],mid[0],vect[0]); } } }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccRWsv86.o: in function `main':
grader.c:(.text.startup+0x49): undefined reference to `Solve()'
collect2: error: ld returned 1 exit status